Asp.net Javascript找到控件 [英] Asp.net Javascript find control
本文介绍了Asp.net Javascript找到控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
function updateValue()
{
var val1 = document .getElementById( < %=((TextBox)gvexpdepreview.FooterRow.FindControl( txtfooterrate ))。ClientID%> 。跨度>)值;
}
这里我想找到gridview文本框控件,它位于gridview编辑项目模板中..plz帮我
解决方案
看看这个 http: //www.nullskull.com/q/10332677/how-to-find--textbox-control-fro-gridview--using-javascript.aspx [ ^ ]
function updateValue()
{
var val1=document.getElementById("<%=((TextBox)gvexpdepreview.FooterRow.FindControl("txtfooterrate")).ClientID%>").value;
}
here i want to find gridview textbox control which is in gridview edit item template..plz help me
解决方案
Look at this http://www.nullskull.com/q/10332677/how-to-find--textbox-control-fro-gridview--using-javascript.aspx[^]
这篇关于Asp.net Javascript找到控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文