471,089 Members | 1,575 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,089 software developers and data experts.

Migration to 2.0: Textbox readonly problem

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

Jul 6 '06 #1
1 1715
Hi,

I've blogged a small bit about it

http://aspadvice.com/blogs/joteke/ar.../12/16409.aspx

--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
http://blogs.aspadvice.com/joteke

"Thierry" <th************@eur.crowncork.comwrote in message
news:11**********************@75g2000cwc.googlegro ups.com...
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

Jul 6 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by pv_kannan | last post: by
8 posts views Thread by tshad | last post: by
3 posts views Thread by Lyners | last post: by
2 posts views Thread by Eric | last post: by
4 posts views Thread by DS | last post: by
1 post views Thread by Bonggoy Cruz | last post: by
6 posts views Thread by Brandon McCombs | last post: by
10 posts views Thread by moondaddy | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.