本文介绍了错误:hidEventName在当前上下文中不存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨..朋友.. 我想使用此字段
Hi.. friends.. I want to use this field
<asp:HiddenField ID="hidEventName" runat="server" />但是当我在代码文件中使用它时,它不会进来..所以..什么是解决方案.. 谢谢..
but when i use in code file it''s not come in.. so.. what is solution for that.. Thanks..
推荐答案朋友.. 您可以直接使用名称.. 进行访问 首先告诉我 您在哪里创建该hiddernfield.? 表示在gridview或外部. 您正在访问该字段的位置. 回复我,然后我将尝试给出解决方案 hi friend.. directly you can access that with the name .. first of all tell me where you create that hiddernfield.? means in gridview or outside. where you are accessing that field. reply me then i will try to give the solution
如果您尝试在hidedn字段(例如ID)中输入一些值,或者使用文本框来携带该信息 if u r trying to put some value in teh hidedn field like teh ID or so rather use the a text box to carry that information <div style="display:none;visibility:hidden;"> <asp:TextBox ID = "txthidden" runat = "server" /> </div>
更多推荐
错误:hidEventName在当前上下文中不存在
发布评论