87,904
社区成员
发帖
与我相关
我的任务
分享
<div id="region1" style="border:1px solid green;margin-top:10px;height:200px;">
<br />
服务器控件:
<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox><br />
<br />
客户端控件:
<input id="Text2" type="text" /><br />
<br />
服务器按钮<asp:Button ID="Button3" runat="server" Text="Button" /><br />
<br />
客户端按钮<input id="Button4" type="button" value="button" />
<input id="Submit2" type="submit" value="submit" />
</div>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href=" <%=basePath%>">
<title>My JSP 'index.jsp' starting page </title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
<script type="text/javascript">
window.onload = function(){
var oCon = document.getElementById('region1').getElementsByTagName("*");
for(var i=0;i<oCon.length;i++){
oCon[i].disabled = true;
}
}
</script>
</head>
<body>
<div id="region1" style="border:1px solid green;margin-top:10px;height:200px;">
<br />
服务器控件:
<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox><br />
<br />
客户端控件:
<input id="Text2" type="text" /><br />
<br />
服务器按钮<asp:Button ID="Button3" runat="server" Text="Button" /><br />
<br />
客户端按钮<input id="Button4" type="button" value="button" />
<input id="Submit2" type="submit" value="submit" />
</div>
</body>
</html>