forked from cubika/OneCode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSourcePage.aspx
More file actions
53 lines (48 loc) · 1.72 KB
/
SourcePage.aspx
File metadata and controls
53 lines (48 loc) · 1.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="SourcePage.aspx.vb" Inherits="VBASPNETStripHtmlCode.Source" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title></title>
</head>
<script type="text/javascript">
function click_client() {
var text = document.getElementById('textDisplay');
var checkbox = document.getElementById('Checkbox1');
text.value = "这是一个客户端单击";
if (checkbox.checked == true) {
return true;
}
else {
//alert("a");
return false;
}
}
</script>
<script type="text/javascript">
function click_client2() {
var text = document.getElementById('textDisplay');
var checkbox = document.getElementById('Checkbox1');
text.value = "这是一个客户端单击";
if (checkbox.checked == true) {
return true;
}
else {
alert("a");
}
}
</script>
<body>
<form id="form1" runat="server">
<div>
大家好:<br />
<a href="http:\\www.microsoft.com" type="text/html">www.microsoft.com</a><br />
<a href="http:\\www.asp.net">www.asp.net</a><br />
<input type="text" id="textDisplay" runat="server" /><asp:Button id="Button1" runat="server" Text="提交"
OnClientClick="return click_client()" />
<input id="Checkbox1" type="checkbox" value="Check" /><br />
</div>
<img alt="Image/asp.jpg" src="Image/asp.jpg" />
<img alt="Image/asp.jpg" src="Image/asp.jpg" width="100"/>
</form>
</body>
</html>