HighTechTalks DotNet Forums  

2.0 vs. 1.1 Read-Only Textbox/Findcontrol

ASP.net Data Grid Control microsoft.public.dotnet.framework.aspnet.datagridcontrol


Discuss 2.0 vs. 1.1 Read-Only Textbox/Findcontrol in the ASP.net Data Grid Control forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
John Walker
 
Posts: n/a

Default 2.0 vs. 1.1 Read-Only Textbox/Findcontrol - 12-26-2007 , 01:02 PM






Hi,
In asp.net 1.1 I use this bit of code to get the text from a textbox in a
datagrid on postback:

txtComments = CType(dgi.FindControl("txtComments"),
System.Web.UI.WebControls.TextBox)

We recently upgraded our application to the 2.0 .net framework and this code
no longer seems to work. It is a read-only textbox... the text is
added/changed with javascipt. When we set readonly = False, then we are able
to successfully view the added/changed text on postback. Did something
change in 2.0 so that readonly text does not postback? is there a way to get
around it?

Thanks,
John

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.