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. carry value through navigateurl

carry value through navigateurl

Scheduled Pinned Locked Moved ASP.NET
databasequestion
9 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.
  • T Offline
    T Offline
    terjk
    wrote on last edited by
    #1

    Well, I have a table with many rows and the records in each row is depending on the data in the Database. Each data is represented as hyperlink. Therefore, i create each hyperlink programmatically: Dim lbltime As New HyperLink lbltime.NavigateUrl = "MyBookingViewAll.aspx" When click on the link, instead of transfering to another page, I need to know the value of the row of information clicked. eg hyperlink text--> 09:00-10:00 when i click on this link, i should see the details of this record on another web form. Is this posible?

    M 1 Reply Last reply
    0
    • T terjk

      Well, I have a table with many rows and the records in each row is depending on the data in the Database. Each data is represented as hyperlink. Therefore, i create each hyperlink programmatically: Dim lbltime As New HyperLink lbltime.NavigateUrl = "MyBookingViewAll.aspx" When click on the link, instead of transfering to another page, I need to know the value of the row of information clicked. eg hyperlink text--> 09:00-10:00 when i click on this link, i should see the details of this record on another web form. Is this posible?

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

      You should use LinkButton instead of HyperLink and use its Click event to handle you jobs. You can store them in a database or in a file in your server and view them from another page. Mazy "I think that only daring speculation can lead us further and not accumulation of facts." - Albert Einstein

      T 2 Replies Last reply
      0
      • M Mazdak

        You should use LinkButton instead of HyperLink and use its Click event to handle you jobs. You can store them in a database or in a file in your server and view them from another page. Mazy "I think that only daring speculation can lead us further and not accumulation of facts." - Albert Einstein

        T Offline
        T Offline
        terjk
        wrote on last edited by
        #3

        So there is no other way out other than using Linkbutton?

        1 Reply Last reply
        0
        • M Mazdak

          You should use LinkButton instead of HyperLink and use its Click event to handle you jobs. You can store them in a database or in a file in your server and view them from another page. Mazy "I think that only daring speculation can lead us further and not accumulation of facts." - Albert Einstein

          T Offline
          T Offline
          terjk
          wrote on last edited by
          #4

          But I'm expected to use hyperlink. What to do?

          M 1 Reply Last reply
          0
          • T terjk

            But I'm expected to use hyperlink. What to do?

            M Offline
            M Offline
            Mazdak
            wrote on last edited by
            #5

            terjk wrote: But I'm expected to use hyperlink. What to do? Why you have to use that? It doesn't have the required events. And LinkButton has it. Mazy "I think that only daring speculation can lead us further and not accumulation of facts." - Albert Einstein

            T 1 Reply Last reply
            0
            • M Mazdak

              terjk wrote: But I'm expected to use hyperlink. What to do? Why you have to use that? It doesn't have the required events. And LinkButton has it. Mazy "I think that only daring speculation can lead us further and not accumulation of facts." - Albert Einstein

              T Offline
              T Offline
              terjk
              wrote on last edited by
              #6

              That means i got to add handler to each link button when i create them, right?Since i'm not using the controls but programmtically create them. dim lbtn as new linkbutton addhandler...

              M 1 Reply Last reply
              0
              • T terjk

                That means i got to add handler to each link button when i create them, right?Since i'm not using the controls but programmtically create them. dim lbtn as new linkbutton addhandler...

                M Offline
                M Offline
                Mazdak
                wrote on last edited by
                #7

                Yes. You have add each handler programmically. C# syntax:

                myLinkbtn.Click += new EventHandler(Button_Click);

                Mazy "I think that only daring speculation can lead us further and not accumulation of facts." - Albert Einstein

                T 1 Reply Last reply
                0
                • M Mazdak

                  Yes. You have add each handler programmically. C# syntax:

                  myLinkbtn.Click += new EventHandler(Button_Click);

                  Mazy "I think that only daring speculation can lead us further and not accumulation of facts." - Albert Einstein

                  T Offline
                  T Offline
                  terjk
                  wrote on last edited by
                  #8

                  .net syntax?

                  M 1 Reply Last reply
                  0
                  • T terjk

                    .net syntax?

                    M Offline
                    M Offline
                    Mazdak
                    wrote on last edited by
                    #9

                    terjk wrote: .net syntax? I think I've told you before, .net syntax is meaningless. Look into MSDN to find out equivalent syntax for VB.NET or other CPains maybe tell you. In MSDN you can look for different events for controls and see how it add it with VB.NET syntax. Mazy "I think that only daring speculation can lead us further and not accumulation of facts." - Albert Einstein

                    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