Exforsys.com
 
Home Tutorials ASP.NET 2.0
 

ASP.NET DataBound Controls - Details View

 

ASP.NET DataBound Controls - Details View - Page 3

Page 3 of 3


.


.




19. Be sure the Yes, save this connection as check box is selected, and then click Next.


20. The wizard displays a page where you can specify what data you want to fetch from the database:


21. From the Name list under Table or View Options, select CourseDetails.



22. In the Columns box, check CourseId and CourseName.


23. Click Next.


24. Click Test Query to be sure that you are getting the data you want.



25. Click Finish.


26. The Choose Data Source dialog box is displayed, with the name of the data source control you have configured displayed.




27. From the Select a data field to display in the DropDownList list, select CourseName.


28. This specifies that the value of the CourseName field will be displayed as the text of the items in the drop-down list.


29. From the Select a data field for the value of the DropDownList list, select CourseId.


30. This specifies that when an item is selected, the CourseId field will be returned as the value of the item.


31. Click OK.


32. Before proceeding, test the drop-down list.


To test the drop-down list

1. Press CTRL+F5 to run the page.


2. When the page is displayed, examine the drop-down list.


3. Select a category to be sure that the list performs a post-back.





First Page: ASP.NET DataBound Controls - Details View


Read Next: ASP.NET : Using a Grid to Display Detail Information



 

 

Comments


s_w_eety said:

  nice article
November 18, 2007, 1:33 pm

shail nautiyal said:

  Good article..!!! keep it on guys..!!!

thank you very much for such simple explanation..!!!!
January 22, 2009, 5:27 am

basser said:

  How I can edit name of AutoGenerateEditButton?
March 3, 2009, 10:36 am

mangesh said:

  How to get a selected row from Grid View to Details View? I have connected GridView to Sqldatasource.
August 14, 2009, 8:01 am

Post Your Comment:

Members Please Login
Your Name:*
e-mail ID:(required for notification)*
Image Verification: 
 
 Subscribe    

Sponsored Links

 

Subscribe via RSS


Get Daily Updates via Subscribe to Exforsys Free Training via email


Get Latest Free Training Updates delivered directly to your Inbox...

Enter your email address:


 

Subscribe to Exforsys Free Training via RSS
 

 
Partners -  Privacy and Legal Policy -  Site News -  Contact   Sitemap  

Copyright © 2000 - 2009 exforsys.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape