»Dotnet Ads
»Message Boards
Message Boards
Dotnet Books
»Member Details
Register
Login
LogOut
Submit Code
Submit Jobs
Submit Projects
»Competition
Community
Winners
Prizes
Write For Us
Members
»Other Resources
Links
Dotnet Resources
|
how to use server side controls in client sideServer 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.
|