How to use server side controls in client side

Showing Answers 1 - 1 of 1 Answers

Server side control can be used at client side using javascript. Here's how you can do ita. After you've created ur server controls and ur page, view the page in browserb. Do a view source and search for the control you want to access at client sidec. This control will have a different ID than the one you would have specified when defining it on the aspx paged. This id is the run time generated client ID, you can use this id in javascript functions to perform client side actions, by calling findControl and then passing this ide. If the control is a complex control like datagrid, all the rows will have the same client id suffixed by a counter, you just have to study the pattern and using a for loop you can traverse to any row within the datagrid as well.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions