infragistics 获取 Rowedit 模板中下拉列表的 clientID
我有一个基础设施网络网格,其中有行编辑模板。 行编辑模板包含下拉列表。现在,当我更改下拉列表的选定索引时.. 我需要获取下拉列表的客户端ID.. 网络网格位于内容占位符中..
我正在使用以下代码..ctl00_ContentPlaceHolder1_webModGrid_ctl00_ddlScope
但
它给出错误..Microsoft
JScript 运行时错误:需要对象
i have a infragistics web grid which has row edit template.
Row edit template contains drop down list. Now when i change the selected index of drop down..
i need to get the client id of the drop down..
the web grid is in Content place holder..
i am using the below code..
ctl00_ContentPlaceHolder1_webModGrid_ctl00_ddlScope
but it is giving error..
Microsoft JScript runtime error: Object required
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以尝试使用开关“ClientIDMode”及其值 Static
http://msdn.microsoft.com/en-us/library/system.web.ui.clientidmode.aspx
you can try to use the switch 'ClientIDMode' and its value Static
http://msdn.microsoft.com/en-us/library/system.web.ui.clientidmode.aspx
可以通过以下方式评估所需控件(及其客户端标记对象)的 ClientID 属性:
否则,如果将 DropDownList 放入 INamingContainer,则可以从通过处理控件的 Init 事件并按以下方式使用 ClientScript.RegisterStartupScript 方法来隐藏页面的代码:
这有意义吗?
It is possible to evaluate the ClientID property of the required control (and its client-side tag object) in the following manner:
Otherwise, if the DropDownList is placed into the INamingContainer, it is possible to render the corresponding client-side object from the page’s code behind by handling the control’s Init event and using the ClientScript.RegisterStartupScript method in the following manner:
Does it make a sense?