> Did something change in 2.0 so that readonly text does not postback?
Yes:
http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=
102065
> is there a way to get around it?
Yes.
Instead of this:
<asp:TextBox ID="MyTextBox" runat="server" ReadOnly="True" />
do this:
<asp:TextBox ID="MyTextBox" runat="server" />
and in your code behind do this:
protected void Page_Load(object sender, EventArgs e)
{
MyTextBox.Attributes.Add("readonly", "readonly");
}

Signature
Mark Rae
ASP.NET MVP
http://www.markrae.net
John Walker - 28 Dec 2007 14:55 GMT
Awesome. Don't know why that works any different, but if it works then great.
Thanks!
> > Did something change in 2.0 so that readonly text does not postback?
>
[quoted text clipped - 19 lines]
> MyTextBox.Attributes.Add("readonly", "readonly");
> }