Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Unable to Get t

Thread Tools

Unable to Get t

John Walker
Posts: n/a
On the postback I am trying to get data from a TextBox control in a
Datagrid. This works fine except when the textbox has been disabled using
JavaScript. Here's the code to reference the control and get the text:

Dim txt As TextBox = CType(dg.Items(iMisc).FindControl("txtCustomer"),
Dim sCustomer As String = txt.Text

txt.Text will be blank if the textbox was disabled. Here's the javascript:


Are we not allowed to use JavaScript to disable datagrid textbox controls if
we want to reference the text on a postback?

Thanks, John

Reply With Quote

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to access HDD / Windows unable to complete format rmundy Hardware 1 08-13-2010 08:57 AM
unable to capture all the HTML of my page,or I'm unable to save it to disk Jake Barnes Javascript 6 02-08-2006 02:38 PM
Unable to renew IP address/unable to connect to wireless network =?Utf-8?B?SmFzZXlCb3k=?= Wireless Networking 1 12-22-2005 04:28 AM
Unable to see machines on the ethernet; Unable to find printers =?Utf-8?B?Sm9obiBN?= Wireless Networking 1 06-07-2005 03:32 AM