错误:hidEventName在当前上下文中不存在

编程入门 行业动态 更新时间:2024-10-26 12:21:53
本文介绍了错误: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在当前上下文中不存在

本文发布于:2023-11-09 15:13:12,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1572700.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:上下文   中不   错误   hidEventName

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!