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. Creating Hyperlink and fetching by fetching data from database

Creating Hyperlink and fetching by fetching data from database

Scheduled Pinned Locked Moved ASP.NET
announcementdatabase
5 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.
  • L Offline
    L Offline
    lalit14
    wrote on last edited by
    #1

    I m Developing website..... In website, i have to update Latest News .... For this, i created a table in database and i have field News Heading and News Path(Path means web Address)..................... What i have to do is to fetch "News Heading" from database and have to display it on the webpage, and "News Heading" must act like hyperlink, and it will take webaddress from database ...... I hope you got what m trying to say......!! Thanks in Advance Regards Lalit Manik

    M P 2 Replies Last reply
    0
    • L lalit14

      I m Developing website..... In website, i have to update Latest News .... For this, i created a table in database and i have field News Heading and News Path(Path means web Address)..................... What i have to do is to fetch "News Heading" from database and have to display it on the webpage, and "News Heading" must act like hyperlink, and it will take webaddress from database ...... I hope you got what m trying to say......!! Thanks in Advance Regards Lalit Manik

      M Offline
      M Offline
      meeram395
      wrote on last edited by
      #2

      1. First, get the url count from db and create as much as links dynamically you want. 2. Assign the text and url address appropriately. Hope this helps. :)

      Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.

      1 Reply Last reply
      0
      • L lalit14

        I m Developing website..... In website, i have to update Latest News .... For this, i created a table in database and i have field News Heading and News Path(Path means web Address)..................... What i have to do is to fetch "News Heading" from database and have to display it on the webpage, and "News Heading" must act like hyperlink, and it will take webaddress from database ...... I hope you got what m trying to say......!! Thanks in Advance Regards Lalit Manik

        P Offline
        P Offline
        praveen_Knight
        wrote on last edited by
        #3

        Hi, It would be better if you type the code, so it might be easy for us to tell whats wrong with it or what u find difficult. Solution: Fetch What news has to be shown from database and then assign to text property of a Link Button.

        L 1 Reply Last reply
        0
        • P praveen_Knight

          Hi, It would be better if you type the code, so it might be easy for us to tell whats wrong with it or what u find difficult. Solution: Fetch What news has to be shown from database and then assign to text property of a Link Button.

          L Offline
          L Offline
          lalit14
          wrote on last edited by
          #4

          Hey Thanks to both But suppose in DB there r 20 entries then for this i have to create 20 LinkButtons or Hyperlinks..... So it will get complicated. 1) I want to do is that first we write coding for calculating the number of entries in Db table. 2) Then corresponds to that entries, it will generate that number of link buttons.. Isnt it?

          B 1 Reply Last reply
          0
          • L lalit14

            Hey Thanks to both But suppose in DB there r 20 entries then for this i have to create 20 LinkButtons or Hyperlinks..... So it will get complicated. 1) I want to do is that first we write coding for calculating the number of entries in Db table. 2) Then corresponds to that entries, it will generate that number of link buttons.. Isnt it?

            B Offline
            B Offline
            benams
            wrote on last edited by
            #5

            you can use the repeater control.

            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