|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
hiddenfield / htmlInputHidden ?Hi
Should we use hiddenfield control ie. <asp:hiddenfield ... /> or the htmlInputHidden <input id=... input="hidden" .../>? if we were going to use htmlInputHidden How do I declare a htmlInputHidden field manually in code-behind file ? TIA -- You can always use Page.RegisterHiddenField from code to add a hidden dynamically.
-Brock DevelopMentor http://staff.develop.com/ballen Show quoteHide quote > Hi > Should we use hiddenfield control ie. <asp:hiddenfield ... /> or the > htmlInputHidden <input id=... input="hidden" .../>? > if we were going to use htmlInputHidden > How do I declare a htmlInputHidden field manually in code-behind file > ? > TIA > If I wanted to use a server control, which one should I use in an *.aspx
file, then how do I define a reference to it in my code-behind file? TIA Show quoteHide quote "Brock Allen" <ballen@NOSPAMdevelop.com> wrote in message news:880192632541199915049856@msnews.microsoft.com... > You can always use Page.RegisterHiddenField from code to add a hidden dynamically. > > -Brock > DevelopMentor > http://staff.develop.com/ballen > > > > > Hi > > Should we use hiddenfield control ie. <asp:hiddenfield ... /> or the > > htmlInputHidden <input id=... input="hidden" .../>? > > if we were going to use htmlInputHidden > > How do I declare a htmlInputHidden field manually in code-behind file > > ? > > TIA > > > > > Thanks. I just get it working!
Show quoteHide quote "Brock Allen" <ballen@NOSPAMdevelop.com> wrote in message news:880192632541199915049856@msnews.microsoft.com... > You can always use Page.RegisterHiddenField from code to add a hidden dynamically. > > -Brock > DevelopMentor > http://staff.develop.com/ballen > > > > > Hi > > Should we use hiddenfield control ie. <asp:hiddenfield ... /> or the > > htmlInputHidden <input id=... input="hidden" .../>? > > if we were going to use htmlInputHidden > > How do I declare a htmlInputHidden field manually in code-behind file > > ? > > TIA > > > > >
Show quote
Hide quote
<dl> wrote in message news:%23EdDr7ybFHA.2796@TK2MSFTNGP10.phx.gbl... If you don't need a hidden field for client-side script, I would recommend > Thanks. I just get it working! > > "Brock Allen" <ballen@NOSPAMdevelop.com> wrote in message > news:880192632541199915049856@msnews.microsoft.com... >> You can always use Page.RegisterHiddenField from code to add a hidden > dynamically. >> >> -Brock >> DevelopMentor >> http://staff.develop.com/ballen >> >> >> >> > Hi >> > Should we use hiddenfield control ie. <asp:hiddenfield ... /> or the >> > htmlInputHidden <input id=... input="hidden" .../>? >> > if we were going to use htmlInputHidden >> > How do I declare a htmlInputHidden field manually in code-behind file >> > ? >> > TIA >> > >> >> >> > > using the ViewState to store data. Mythran |
|||||||||||||||||||||||