TextBox and ASPNET 2.0 Ajax Extensions

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.
 
D

David

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
 

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