如:
<asp:TextBox ID="txtSubject" runat="server">aa</asp:TextBox>

第一次用服务器控件,原来他就是和input标签一样 !

 

 

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<script type="text/javascript" src="script/Jquery.js"></script>
<script type="text/javascript">
$(function () {
var str="";
var t1=document.getElementById("<%= TextBox1.ClientID").value;
var t2=$("#<%= TextBox1.ClientID%>").val();
alert(t1);
alert(t2);
})
</script>
</head>
<body>
<form id="form1" runat="server">
<asp:TextBox ID="TextBox1" runat="server">sdf</asp:TextBox>
<asp:TextBox ID="TextBox2" runat="server">sdf</asp:TextBox>
<asp:TextBox ID="TextBox3" runat="server">ee</asp:TextBox>
<asp:TextBox ID="TextBox4" runat="server">ee</asp:TextBox>
<asp:TextBox ID="TextBox5" runat="server">ee</asp:TextBox>
<input type="button" name="button" value="button"/>
</form>
</body>
</html>

 

最新文章

  1. 解决getElementsByClassName的兼容性问题
  2. Android Http请求
  3. C#输入输出重定向
  4. Codeforces 389A (最大公约数)
  5. IME 编程相关
  6. Android 时间格式的正则表达式
  7. 【风马一族_Android】手机与电脑通过adb进行连接
  8. 【Xamarin挖墙脚系列:使用Xamarin进行Hybrid应用开发】
  9. linux 命令c语言代码实现
  10. 朗科U903 低级格式化后,量产错误:read onlypage (控制器芯片群联2251-03)的解决方案
  11. MSSQL row_number简单使用语法
  12. 关于WM_ERASEBKGND和WM_PAINT的深刻理解
  13. Java I/O---概述
  14. Python 基础【二】 下
  15. 你不知道的JavaScript--Item4 基本类型和基本包装类型(引用类型)
  16. 服务消费者Feign和Ribbon的区别
  17. fzyzojP1635 -- 平均值
  18. numpy通用函数
  19. C++实现对文件中各单词词频的统计及其代码优化
  20. python之类和对象

热门文章

  1. Git笔记之初识vi编辑器
  2. 1_jenkins环境搭建
  3. 无线网卡在 MAC 系统下的安装与使用过程
  4. zip unzip tar 压缩解压
  5. scala中的高阶函数
  6. [Network Architecture]ResNext论文笔记(转)
  7. 【Network architecture】Rethinking the Inception Architecture for Computer Vision(inception-v3)论文解析
  8. 【网络结构】GoogLeNet inception-v1:Going deeper with convolutions论文笔记
  9. 【ML数学知识】极大似然估计
  10. 锁(3)-- DB锁