Click here to Skip to main content
16,012,015 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

I have a test.aspx file that contains six instance of user control uc1 that TagName is DASource as its id DASource1,DASource2,DASource3,DASource4,DASource5,DASource6 along with some other control on the page. The user control uc1 contains another user control uc2 that TagName is 'DADimension' along with a DropDown list box ddl1 and some other control inside a panel pnl1. The user control uc2 contains the GridView gv1.

Now my question is, how can I get the GridView gv1 element of each DASource using javascript on the page test.aspx when the client side event 'onchange' is fired by ddl1.

I need the solution very urgently. Please help.

Thanks & Regards
Nirbhay
Posted

1 solution

Hi Nirbhay,

GridView is a server side control and JavaScript doesn't know anything about GridView. Moreover GridView is rendered as a table element in the browser. So you should be ideally searching for table element in JavaScript.

Use
JavaScript
document.getElementById('gv1')
method of JavaScript to find the table element.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900