badrhino
asked on
Binding to a Drop Down box with a sql server datasource
I'm starting to play with JQuery a little and I would like to bind data from a sql server to a drop down box (just to learn how). The code behind has to be in vb.net.
I have looked at several examples on the web but they either C# or vb.net and don't work/aren't complete. Does anyone know of a good walkthrough that I can play with?
Thanks in advanced!
I have looked at several examples on the web but they either C# or vb.net and don't work/aren't complete. Does anyone know of a good walkthrough that I can play with?
Thanks in advanced!
ASKER
This works great for server side code, but how do you do it with JQuery?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Perfect. Thanks!
Approach 1 . Binding dropdown using vb.net
Open in new window
Approach 2 : Using SqlDatasource control .Binding Dropdown using SqlDatasource control without codebehind .
http://asp-net-example.blogspot.in/2008/12/aspnet-sqldatasource-example-using.html
Sqldatasource connectionstring parameter is configured in web.config file .
Open in new window
More Info Regarding Connection string ,
http://msdn.microsoft.com/en-us/library/ms178411(v=vs.100).aspx
Meeran03