Textbox, hidden, no value

  • Thread starter Thread starter Maurice Mertens
  • Start date Start date
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
 
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.
 
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
 
Back
Top