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. asp:label databinding

asp:label databinding

Scheduled Pinned Locked Moved ASP.NET
databasehelptutorialquestion
6 Posts 4 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.
  • Y Offline
    Y Offline
    ybasha
    wrote on last edited by
    #1

    Hi there, i need your help in displaying particular field from the database to the label for ex: condiser the below is page and it contain label Title need to display titile field from the database subject need to display subject field from the database. etc... any suggestion or code snippet so i can know how to get the bind data in the label? or any other suggestion. pls revert back as soon as possible. Thanx in advance....

    C K 2 Replies Last reply
    0
    • Y ybasha

      Hi there, i need your help in displaying particular field from the database to the label for ex: condiser the below is page and it contain label Title need to display titile field from the database subject need to display subject field from the database. etc... any suggestion or code snippet so i can know how to get the bind data in the label? or any other suggestion. pls revert back as soon as possible. Thanx in advance....

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Why would you need to do anything more than set the text if it's only one label ?

      Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

      Y 1 Reply Last reply
      0
      • C Christian Graus

        Why would you need to do anything more than set the text if it's only one label ?

        Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

        Y Offline
        Y Offline
        ybasha
        wrote on last edited by
        #3

        no i want it to be dynamic the page will fetch data from the database each record is one page.

        A 1 Reply Last reply
        0
        • Y ybasha

          no i want it to be dynamic the page will fetch data from the database each record is one page.

          A Offline
          A Offline
          Amit Agarrwal
          wrote on last edited by
          #4

          if u just want to display the field value into the label then read the database and use the label.text property to show the data, what's the problem, let me know if i'm interpreting wrong.

          1 Reply Last reply
          0
          • Y ybasha

            Hi there, i need your help in displaying particular field from the database to the label for ex: condiser the below is page and it contain label Title need to display titile field from the database subject need to display subject field from the database. etc... any suggestion or code snippet so i can know how to get the bind data in the label? or any other suggestion. pls revert back as soon as possible. Thanx in advance....

            K Offline
            K Offline
            kirthikirthi
            wrote on last edited by
            #5

            HI May it will help you Label1.Text = rdr("Title").ToString()

            asdfasdfasdfasdfasdfasdfasdfasdfasdfasdf

            Y 1 Reply Last reply
            0
            • K kirthikirthi

              HI May it will help you Label1.Text = rdr("Title").ToString()

              asdfasdfasdfasdfasdfasdfasdfasdfasdfasdf

              Y Offline
              Y Offline
              ybasha
              wrote on last edited by
              #6

              No thanx i solve the problem using datagrid...

              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