VS.net doesn't recognize the input component of type hidden

E

el bilo

I want to send some data to the client for some client
side processing.

I tried to do this by creating an input container of type
hidden:

<input type="hidden" id="test" name="test" value=""
runat="server">

but when I try to set the value in the codebehind the
complier rejects it as being an undefined object.

Is there a way to do this without having to create a
custom web component?

-Larry
 
A

Alessandro Zifiglio

You might be missing the declaration in your code behind. For you to be able
to access that element you need to declare it first :
Public test As HtmlInputHidden

and then access it :
test.Value = "bla"
 
L

Larry

I didn't relaize I needed the specific declaration in the code behind.
Thanks for your help/

-Larry
 

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

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top