TextBox and ASPNET 2.0 Ajax Extensions

  • Thread starter Thread starter David
  • Start date Start date
D

David

Hello everyone,

I am having problems with the TextBox.Text property.
In a nutshell, I am creating a TextBox dynamically. When user selects
this text box, an Ajax Extension Calendar control shows up. After
selecting date and submitting the form, for some reason the TextBox.Text
does not return any value, but if you try Request.Form[TextBox] you can
read the date selected. I have noticed this also with ASPNET1.0 when a
Javascript changes the value of a TextBox, unless you change the value
manually, the value is lost. Is there a setting or workaround to this
problem that you guys know of?

Thanks in advance for your assistance

David P.E.
 
Hello again,

Never mind. I just realized that the textbox was set to ReadOnly from
the code behind using the TextBox.ReadOnly property.

What I did was set the Readonly attribute (TextBox.Attribute["ReadOnly"]
= "true" and it is working well now.

Thanks,

David
 
Back
Top