Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Fetching Database Records in Form Fields!

Fetching Database Records in Form Fields!

Scheduled Pinned Locked Moved ASP.NET
helpcsharpasp-netdatabasetutorial
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    r_e_h_a_n
    wrote on last edited by
    #1

    My problem is that , i can connect database of all types, but how to fetch data from database in asp.net forms back, e.g i make a form in asp.net "FirstNanme TextField","RollNumber TextField","Class TextField" now when i enter data in these fields it will be successfully entered in the database. Now i want to fetch them in TextFields back from the database. mean i make a search field on my form and try to search some entries which user entered in database wehn i search for a specific name in search field it will be show in my form text fields, i'm not taking about datagrid o.k, (you can say when we signin in our yahoo id and see our specific profile in yahoo only the authenticated and specific user can show his dataentries in textfields in yahoo personal profile and can change his information), plz help me in this regard.Thx m.rehanmunir

    E 1 Reply Last reply
    0
    • R r_e_h_a_n

      My problem is that , i can connect database of all types, but how to fetch data from database in asp.net forms back, e.g i make a form in asp.net "FirstNanme TextField","RollNumber TextField","Class TextField" now when i enter data in these fields it will be successfully entered in the database. Now i want to fetch them in TextFields back from the database. mean i make a search field on my form and try to search some entries which user entered in database wehn i search for a specific name in search field it will be show in my form text fields, i'm not taking about datagrid o.k, (you can say when we signin in our yahoo id and see our specific profile in yahoo only the authenticated and specific user can show his dataentries in textfields in yahoo personal profile and can change his information), plz help me in this regard.Thx m.rehanmunir

      E Offline
      E Offline
      enjoycrack
      wrote on last edited by
      #2

      Hi there, Correct me if i misunderstand... So, just simply fetch data from DB (using SqlDataReader,...) Then, assign the value to the text fields (would be something like firstname.text = dr["firstname"]...) Hope this helps. << >>

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups