Click here to Skip to main content
15,892,298 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want to make menu which is dynamically operated from database.
i use jquery and css and now i want to use C# coding in HTML page in VS2008.
Posted
Comments
BobJanova 17-Jan-12 5:41am    
I'm not entirely sure what you're asking but you really don't want to be building a menu client-side using AJAX and database lookups. That's going to cause a lot of unnecessary load on your server.

1 solution

for getting data from database you can use a static web method decalare code behind side and call it from jquery with the help of ajax call..

in side the web method write the code to get the menu items from database and return that collection of menu items

after successful call of that web method you can access that return data to for your menu....

How to call a c# function using jquery and Ajax in asp.net page...?[^]
 
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