如何获取RadNumericText BOx ClientID的动态创建一个. [英] How to get RadNumericText BOx ClientID of a dynamically created one..?
本文介绍了如何获取RadNumericText BOx ClientID的动态创建一个.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
RadNumericText rntb=new RadNumericText();
string cid=rntb.ClientID;
我尝试了上面的代码,但无法获得所需的结果,即ClientID
i tried the above piece of code but not able to get the requiered result i.e ClientID
推荐答案
检查这些链接,
find-the-client-id-of-dynamically-created-controls [ ^ ]
http://forums.asp.net/t/1636969.aspx/1 [ ^ ]
http://www.dotnetspider.com/forum/194878-Get-ClientID-动态创建的Textbox.aspx [ ^ ]
http://www.justskins.com/forums/dynamically-created-user-controls- 98216.html [ ^ ]
希望对您有所帮助.
Hi,
check these links,
finding-the-client-id-of-dynamically-created-controls[^]
http://forums.asp.net/t/1636969.aspx/1[^]
http://www.dotnetspider.com/forum/194878-Get-ClientID-Dynamically-Created-Textbox.aspx[^]
http://www.justskins.com/forums/dynamically-created-user-controls-98216.html[^]
hope it helps.
我认为您需要先指定控件的ID(已在链接中指定).然后,只有您可以获得该控件的客户端ID.试试这个:
As I think you need to specify the ID of the control first(Already specified in the link). Then only you can get the client id of that control. Try this:
RadNumericText rntb=new RadNumericText();
rntb.ID = "rntbMoney";
string cid=rntb.ClientID;
--Amit
--Amit
这篇关于如何获取RadNumericText BOx ClientID的动态创建一个.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文