Textbox, hidden, no value

M

Maurice Mertens

Hi,

having some troubles with a BOUND textbox.
The BOUND (text property) textbox is hidden on the form.
Just before I update the database I stopped the code in debug and when I
use me.C_ID.text it gives back the value "". When I make the control
visible it suddenly does have a value.

Can't a hidden textbox have a value then???




--
Met vriendelijke groet / With regards / Saludos,
Moviat Automatisering


Maurice Mertens
mauricem@moviat_KillSpamWordForEMail.nl

tel: +31 162 470 534
fax: +31 162 470 502
 
S

sam

Maurice,
That does not hold good. Hidden textbox can have values. It
would be easier to point out the bug if you could post the code which
is causing the problem. Besides, you can use HtmlInputHidden which is
specifically introduced to serve the purpose.

HTH,
Chris.
 
G

Guest

Hi
TextBox which is invisible would not be rendered to the client. And after a post back since it is recreated again it would not contain value before the Databinding

Probably you are using smilar code to hide your textbox
....
txtb.Visible=false
....
insted you may set the style -DISPLAY attribute to make it hiddedn at the client
style="DISPLAY: none"
....
hopefuly this would resolve your issue
regards Jatheesh
 

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

Top