开发者

how to connect sql and asp.net

开发者 https://www.devze.com 2023-01-17 18:51 出处:网络
am running the asp.net application...am enhancing the already developed project..i want to create the horizontal menus through which i should get the menu items from the database so that if any change

am running the asp.net application...am enhancing the already developed project..i want to create the horizontal menus through which i should get the menu items from the database so that if any changes i have to made in future i can up开发者_如何学JAVAdate in database alone not in the application,,,i dont know how to give link and where to code for this...someone help me out...how to connect the database and the asp.net application...thanks in advance..


check the link

Connect to SQL Server Using SQL Authentication in ASP.NET 2.0


The first: In database you create table menu in table menu have 4 colums 1. ID int identity primary key, 2. Name(50) not null, 3. Images(200), 4. Description (100), The second: You have connect string. if you don't know connect string you google with keyword "connect string" and go to box "SQL Server" and then put out connect string. .Often connect their string in the file declarations global.asax And then in file website you created or datalist and gridview to collect data from sql server.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号