Classic ASP BasicsFor beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
Is there a way to work around this or is there any other solution to this problem?
foreach (DataGridItem DG_Item in DataGrid1)
text1 = ((TextBox)DG_item.FindControl("TextBox1")).Text;
I think you're better off asking these kind of .NET questions in an ASP.NET forum. This for is for classic ASP, not ASP.NET.
Anyway, I think that disabled controls do not participate in postback. That is, the browser doesn't add them to the form collection when it submits the page. You can set the textbox to ReadOnly instead. This will prohibit the user from changing the value, while the field will still be submitted.
Everyone is unique, except for me.
While typing this post, I was listening to: Loose Joints by This Mortal Coil (Track 5 from the album: Blood)