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

How to validate the textbox in datagrid using javascript?

P: 16
Hi,

I have a textbox control in Footer Template within datagrid. I need to validate the textbox using client side javascript. When trying it, i got an error that the control not exist. I think the datagrid sets some unique id to the textbox at runtime.

Please help me how to do this ?

Thanks in advance.

Satees
Apr 5 '07 #1
Share this Question
Share on Google+
1 Reply


P: 67
Hi,

I have a textbox control in Footer Template within datagrid. I need to validate the textbox using client side javascript. When trying it, i got an error that the control not exist. I think the datagrid sets some unique id to the textbox at runtime.

Please help me how to do this ?

Thanks in advance.

Satees
Hi Statees,

You can check how the textbox is rendered, I mean the name of the textbox in the client side, by right clicking on the browser window and selecting View Source. You can use that name in your JavaScript. Hope this will help.
Apr 5 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.