how to retrieve data from database and display in webform

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • arunkumarcts
    New Member
    • Oct 2011
    • 1

    how to retrieve data from database and display in webform

    i am currently working on a project in which i have created 3 separate tables in sql, and now i have to retrieve the data from the table using single field , and i want to display the details of table in webform applications.

    kindly help me in this regard with some demo or code behind that.
  • kadghar
    Recognized Expert Top Contributor
    • Apr 2007
    • 1302

    #2
    1) Open an SQLConnection
    2) Write a query in an SQLDataAdapter
    3) Fill a DataSet with your DataAdapter
    4) Bind de DataSet to a GridView (in your webform)

    Use the DATA and the DATA.SQLClient libraries.

    Comment

    • Frinavale
      Recognized Expert Expert
      • Oct 2006
      • 9749

      #3
      Please review the following articles that outline how to use a database:
      Database tutorial Part 1
      Database tutorial Part 2

      -Frinny

      Comment

      Working...