The following is a step by step instruction of how to bind a SqlDataSource control to a GridView:
1. Create a new project Web project in Visual Studio
2. Create a new .aspx page
3. Drag the "GridView" control from the "Toolbox" pane in the left hand side to the .aspx design surface
5. Click on the "Configure Data Source" link in the "SqlDataSource1" control. The "Configure Data Source" wizard is displayed. Then click on the "New Connection" button
6. The "Add Connection" wizard is displayed, type in your server name\sql instance in the "Server name:" drop down menu.
8. Click on the "Test Connection" to see if you could connect to the database
9. Click on the "OK" button to move on to the next step.
10. You will be taken back to the "Configure Data Source" screen. Click the "Next" button to move on to the next step.
11. Check the "Yes, save this connection as:" checkbox then click "Next" to move on to the next step
13. In the "Name:" dropdown list, select the "Products" table
14. Under "Columns" leave the checkbox "*" checked, then click on the "Next" button
15. On the "Test Query" screen click on the "Test Query" button to see the query execute and return the result in the preview pane. Then click "Finish" when you are done
16. Now that we have our SqlDataSource control configured. We want to bind it to the GridView1 control on our .aspx page. To perform this step, first you click on little ">" icon next to the GridView1 control. The "GridView Tasks" panel will open up.
17. Select "SqlDataSource1" from the "Choose Data Source" drop down list in the "GridView Tasks" panel.
18. You will see the "GridView1" control expand with the "Products" table columns
19. Hit Ctrl+F5 to run the application. Make sure you set the project and .aspx page as the startup project and start up page before you hit Ctrl + F5
Đặt vé tại phòng vé Aivivu, tham khảo
ReplyDeletemua ve may bay di my
mua vé máy bay về việt nam từ mỹ
bao giờ có chuyến bay từ đức về việt nam
chuyến bay từ nga về việt nam
chuyến bay từ anh về việt nam
mua vé máy bay giá rẻ từ pháp về việt nam
chuyen bay danh cho chuyen gia
it's actually better to add the repository hosted by Microsoft Write My Essay Uk and install it through the terminal because that insures that you get the latest version.
ReplyDeletepg slot รับฟรีเครดิต ผู้ให้บริการเกมสล็อตออนไลน์ ที่มาแรงที่สุด pg slot รับรองความคุ้มราคาจากถ้าเกิดคูณเริ่มจะมีความรู้สึกว่าของฟรีไม่มีในโลก บอกเลยว่าคุณคิดผิดแล้ว ด้วยเหตุว่าเว็บไซต์ของเราแจกจริงไม่ต้องแชร์
ReplyDeleteHi great reading yyour post
ReplyDelete