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. Hyperlink in Grid View

Hyperlink in Grid View

Scheduled Pinned Locked Moved ASP.NET
css
6 Posts 3 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.
  • S Offline
    S Offline
    seemamltn
    wrote on last edited by
    #1

    I have the following hyperlink in my GridView. I want two values to be passed on to another aspx page when I click on hyperlink. In My proxy.aspx page I did the following to get the values. But it giving me Mary LastName=Miller But the output should be Mary Miller string yourValue = (Request.QueryString["FirstName"]); string yourValue2 = (Request.QueryString["LastName"]); this.Label1.Text = Convert.ToString(yourValue + yourValue2);

    seema

    T O 4 Replies Last reply
    0
    • S seemamltn

      I have the following hyperlink in my GridView. I want two values to be passed on to another aspx page when I click on hyperlink. In My proxy.aspx page I did the following to get the values. But it giving me Mary LastName=Miller But the output should be Mary Miller string yourValue = (Request.QueryString["FirstName"]); string yourValue2 = (Request.QueryString["LastName"]); this.Label1.Text = Convert.ToString(yourValue + yourValue2);

      seema

      T Offline
      T Offline
      ToddHileHoffer
      wrote on last edited by
      #2

      I haven't used the format string but perhaps "Proxy.aspx?FirstName={0}&LastName={1}"

      I didn't get any requirements for the signature

      1 Reply Last reply
      0
      • S seemamltn

        I have the following hyperlink in my GridView. I want two values to be passed on to another aspx page when I click on hyperlink. In My proxy.aspx page I did the following to get the values. But it giving me Mary LastName=Miller But the output should be Mary Miller string yourValue = (Request.QueryString["FirstName"]); string yourValue2 = (Request.QueryString["LastName"]); this.Label1.Text = Convert.ToString(yourValue + yourValue2);

        seema

        O Offline
        O Offline
        orsini
        wrote on last edited by
        #3

        this is a image button inside a formview, but the concept is the same for template fields in gridview, i hope this is what you are looking for, this link pass two values on the string to the next page. where i read them "pid" in this case is the field returne fron the database, you just have to make it twice, for name and last name instead imagtype=3

        1 Reply Last reply
        0
        • S seemamltn

          I have the following hyperlink in my GridView. I want two values to be passed on to another aspx page when I click on hyperlink. In My proxy.aspx page I did the following to get the values. But it giving me Mary LastName=Miller But the output should be Mary Miller string yourValue = (Request.QueryString["FirstName"]); string yourValue2 = (Request.QueryString["LastName"]); this.Label1.Text = Convert.ToString(yourValue + yourValue2);

          seema

          O Offline
          O Offline
          orsini
          wrote on last edited by
          #4

          O 1 Reply Last reply
          0
          • O orsini

            O Offline
            O Offline
            orsini
            wrote on last edited by
            #5

            i hope i can post the code now, ImageButton ID="ImageButton3" runat="server" ImageAlign="AbsMiddle" ImageUrl="~/images/update_1.gif" PostBackUrl='<%# "product_imageupdte.aspx?pid=" + Eval("pid", "{0}") + "&" + "imgtype=3" %>'/>

            1 Reply Last reply
            0
            • S seemamltn

              I have the following hyperlink in my GridView. I want two values to be passed on to another aspx page when I click on hyperlink. In My proxy.aspx page I did the following to get the values. But it giving me Mary LastName=Miller But the output should be Mary Miller string yourValue = (Request.QueryString["FirstName"]); string yourValue2 = (Request.QueryString["LastName"]); this.Label1.Text = Convert.ToString(yourValue + yourValue2);

              seema

              O Offline
              O Offline
              orsini
              wrote on last edited by
              #6

              i hope i can post the code now, ImageButton ID="ImageButton3" runat="server" ImageAlign="AbsMiddle" ImageUrl="~/images/update_1.gif" PostBackUrl='<%# "product_imageupdte.aspx?pid=" + Eval("pid", "{0}") + "&" + "imgtype=3" %>'/>

              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