Home All Groups Group Topic Archive Search About
Author
11 Jun 2005 4:33 PM
dl
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

--

Author
12 Jun 2005 12:53 AM
Brock Allen
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
>
Author
12 Jun 2005 8:38 AM
dl
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
> >
>
>
>
Author
12 Jun 2005 9:12 AM
dl
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
> >
>
>
>
Author
13 Jun 2005 6:22 PM
Mythran
Show quote Hide quote
<dl> wrote in message news:%23EdDr7ybFHA.2796@TK2MSFTNGP10.phx.gbl...
> 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
>> >
>>
>>
>>
>
>

If you don't need a hidden field for client-side script, I would recommend
using the ViewState to store data.

Mythran