How pass the datagrid controls to javascript function

  • Thread starter Thread starter RemaChenthil
  • Start date Start date
R

RemaChenthil

Hello,
I have a datagrid which has textbox controls.
In the save button (not in the datagrid) I have to do validation
for these controls in DataGrid.
My question is how to pass this control name to javascript and how to
handle this in javascript.

I'm trying in different ways which are not working.

I'm expecting help from any one out there

Thank you.

Regards
Rechen
 
Hello Rechen,
Any Web control enherited from WebControl class (like TextBox
and DataGrid) have a property called ClientID which gets the ID of the
control when it is rendered to the client so you can access them using any
client side code.


Regards,
Mohamed Sharaf
MEA Developer Support Center
ITWorx on behalf Microsoft EMEA GTSC
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top