hiddenfield / htmlInputHidden ?

G

Guest

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

--
 
B

Brock Allen

You can always use Page.RegisterHiddenField from code to add a hidden dynamically.
 
G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top