We are using java script to create dropdown box dinamically by clicking button. And we want to show the contents in those dropdown box from database. Is it possible??? If possile then how??? We are using C# in background and ASP.NET in the frontend.

1) Use C# to retrive your data from database
2) Store data in session
3) In the page call your session and pass your data to JavaScript

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.