摘要: parent.document.getElementById("ctl00_ContentPlaceHolder1_txt_name").value="";ASP.NET获取ID总结:1、用户控件中的服务器控件:这个时候Javascript捕获控件ID的时候要加上用户控件的名称,例如:服务器控件名:txtName;用户控件名:RegisterUser;那么Javascript得到控件ID的方式应该是:varid=document.getElementById("RegisterUser1_txt_name");2、页面中存在母版页:( 阅读全文
posted @ 2013-09-18 15:44 Follow-your-heart 阅读(390) 评论(0) 推荐(0) 编辑