Migration to 2.0: Textbox readonly problem

T

Thierry

Hi,
We are currently upgrading our .Net web apps from framework 1.1 to 2.0
Everything is going quite smoothly except a bug with textbox value not
rendered when having propery readonly=true on the ASCX side.
explaination:
<asp:textbox id="TBDate" runat=server readonly=true></asp:textbox>
after the upgrade to Framework 2.0, the value of this textbox is always
empty string
TBDate.value always equals ""

The workaround we found is to set up the property on the vb side:
TBDate.Attributes.add("readonly", "readonly")
then the TBDate.value is well rendered on the postback...

Did anyboby encounter the same problem?
Does anybody has an explaination?

Cheers,

Thierry
 

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,983
Messages
2,570,187
Members
46,747
Latest member
jojoBizaroo

Latest Threads

Top