how to bind data to textboxes from database(sql server).

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chandana Devabhaktuni
    New Member
    • Oct 2006
    • 1

    how to bind data to textboxes from database(sql server).

    Hello and Hi to everyone,

    This is chandana, i have a doubt which i am mentioning here.

    We can retrive or bind data to datagrid from database(sql server) and also we can insert data and can make modifications.

    In the same way how to retrive or bind data from database(sql server) to textboxes and to other controls that are placed in a table or placed simply on a form or page and how to make modificatons like inserting the values in the fields into database etc.

    This is related to .net, plz can any one answer. want the answer in vb.net, c#.net and asp.net(vb & c#)

    thanks & regards,
    chandana
  • mdaRock
    New Member
    • Nov 2006
    • 26

    #2
    Best Practice to understand the issue is to create a new project in VS2005 no matter what is the langauge and open a database in the server explorer add a datasource - follow the wizard then here is the trick:

    in the dataset tab and after opening your form click on the desire table node and from the combo select detail and drag it to the form

    finally check the component and the textboxes properties.

    Regards.


    Originally posted by chandana Devabhaktuni
    Hello and Hi to everyone,

    This is chandana, i have a doubt which i am mentioning here.

    We can retrive or bind data to datagrid from database(sql server) and also we can insert data and can make modifications.

    In the same way how to retrive or bind data from database(sql server) to textboxes and to other controls that are placed in a table or placed simply on a form or page and how to make modificatons like inserting the values in the fields into database etc.

    This is related to .net, plz can any one answer. want the answer in vb.net, c#.net and asp.net(vb & c#)

    thanks & regards,
    chandana

    Comment

    • binujeesman
      New Member
      • Nov 2006
      • 1

      #3
      u can see the eg below
      http://www.homeandlear n.co.uk/NET/nets12p12.html

      Comment

      Working...