Hiddenfield在asp.net中使用 [英] Hiddenfield use in asp.net
本文介绍了Hiddenfield在asp.net中使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在asp.net中使用表单中的隐藏字段控件??????用一个简单的例子解释一下?
How to use hidden-field control in form at asp.net?????? explain with one simple example?
推荐答案
把它放在aspx页面中
< input type =隐藏id =h1runat =servervalue =0/>
代码隐藏页面
string strVal = h1.Value.ToString();
put it in aspx page
<input type="hidden" id="h1" runat="server" value="0" />
in code behind page
string strVal = h1.Value.ToString();
我刚刚制作了这个vdeo .....希望你会受益...祝你玩得愉快.....
http://www.youtube.com/watch?v=LAHkjpZxTiM [ ^ ]
I've made this vdeo, just now..... Hope you will be benefited ... Have a nice time.....
http://www.youtube.com/watch?v=LAHkjpZxTiM[^]
这篇关于Hiddenfield在asp.net中使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文