Click here to Skip to main content
15,905,508 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
in my asp.net application ,i want to load grid by javascript.
i passed 'department id' into javascrpit function .according to 'dep id'i have to load grid with employees of that department from javascript function. how can acess grid client id from script. can i execute querry from script ? how can i assign querry into grid ?
Posted
Comments
Nathan St 7-Oct-10 10:19am    
You'll probably need to provide code samples of what you're trying to do in order to make your question easier to answer.

From what you've written so far, you're probably looking for "json", but that's just a guess :)

You can not execute querry from script, but you can use ajax for it.
 
Share this answer
 
can i execute querry from script ?
Well, executing query means you need to talk to server. Thus, your real question or need here is to talk to server from client side. You can use Javascript to do it.
1. Ajax
2. Page method
3. Webservice
Try any of above methods and get back data on client side. Bind the html recieved to datagrid.

how can i assign querry into grid ?
Don't know what you are saying/asking here. But based on overall question, assigning some query to grid would not populate it at runtime.
 
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