By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,393 Members | 1,405 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,393 IT Pros & Developers. It's quick & easy.

get Textbox Value in datagrid using JavaScript

P: n/a
Hi, All:

I have a datagrid that embedded 3 textbox using TemplateColumn. When
the user key in value in the first textbox, I need to check to see if
this value is between the the values in other 2 textboxes. I know I can
postback to server side and using datagrid findcontrol to get values of
these 3 textboxes and compare them. But it kind of combersome cause
every change in textbox 1 I need send back to server.

My question is how can I get other 2 textboxes values in the same row
of textbox1 using Javascript? I am using onChange function for
textbox1. Is it doable? any example?

Thanks a lot
-Rockdale

Jun 6 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
This example is for grid view, but you should be able to use it for DataGrid
as well.

http://www.netomatix.com/development...ideAccess.aspx

"rockdale" <ro************@gmail.com> wrote in message
news:11**********************@y43g2000cwc.googlegr oups.com...
Hi, All:

I have a datagrid that embedded 3 textbox using TemplateColumn. When
the user key in value in the first textbox, I need to check to see if
this value is between the the values in other 2 textboxes. I know I can
postback to server side and using datagrid findcontrol to get values of
these 3 textboxes and compare them. But it kind of combersome cause
every change in textbox 1 I need send back to server.

My question is how can I get other 2 textboxes values in the same row
of textbox1 using Javascript? I am using onChange function for
textbox1. Is it doable? any example?

Thanks a lot
-Rockdale

Jun 6 '06 #2

P: n/a
Thank you. It is helpful
Winista wrote:
This example is for grid view, but you should be able to use it for DataGrid
as well.

http://www.netomatix.com/development...ideAccess.aspx

"rockdale" <ro************@gmail.com> wrote in message
news:11**********************@y43g2000cwc.googlegr oups.com...
Hi, All:

I have a datagrid that embedded 3 textbox using TemplateColumn. When
the user key in value in the first textbox, I need to check to see if
this value is between the the values in other 2 textboxes. I know I can
postback to server side and using datagrid findcontrol to get values of
these 3 textboxes and compare them. But it kind of combersome cause
every change in textbox 1 I need send back to server.

My question is how can I get other 2 textboxes values in the same row
of textbox1 using Javascript? I am using onChange function for
textbox1. Is it doable? any example?

Thanks a lot
-Rockdale


Jun 6 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.