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. Querystring

Querystring

Scheduled Pinned Locked Moved ASP.NET
question
8 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.
  • I Offline
    I Offline
    Illegal Operation
    wrote on last edited by
    #1

    Hi! I have a GridView on an aspx page that displays records. Below the GridView I have a TextBox that needs to display the value I select in the GridView I have already created a linkbutton that enables me to click on the record number but I cannot get the value into the textbox. How can I do this?

    Illegal Operation

    C P 2 Replies Last reply
    0
    • I Illegal Operation

      Hi! I have a GridView on an aspx page that displays records. Below the GridView I have a TextBox that needs to display the value I select in the GridView I have already created a linkbutton that enables me to click on the record number but I cannot get the value into the textbox. How can I do this?

      Illegal Operation

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

      I assume that you have the value on the querystring, hence the title of your question ? Read it from there and put it in your textbox.

      Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

      I 1 Reply Last reply
      0
      • C Christian Graus

        I assume that you have the value on the querystring, hence the title of your question ? Read it from there and put it in your textbox.

        Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

        I Offline
        I Offline
        Illegal Operation
        wrote on last edited by
        #3

        ok I get the ID from the querystring but I need to get the firstname and lastname for that record and put them in textboxes as well. I understand how to get the ID from the querystring but How can I iterate through the record and populate the values?

        Illegal Operation

        C N 2 Replies Last reply
        0
        • I Illegal Operation

          ok I get the ID from the querystring but I need to get the firstname and lastname for that record and put them in textboxes as well. I understand how to get the ID from the querystring but How can I iterate through the record and populate the values?

          Illegal Operation

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

          Oh - so you need to look up a record in the database to get the value ? Or you need to step over your data source to find it ?

          Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

          I 1 Reply Last reply
          0
          • C Christian Graus

            Oh - so you need to look up a record in the database to get the value ? Or you need to step over your data source to find it ?

            Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

            I Offline
            I Offline
            Illegal Operation
            wrote on last edited by
            #5

            yes. I have a record with ID, FirstName, LastName and Date and would like to populate a form when I click on the record ID.

            Illegal Operation

            C 1 Reply Last reply
            0
            • I Illegal Operation

              ok I get the ID from the querystring but I need to get the firstname and lastname for that record and put them in textboxes as well. I understand how to get the ID from the querystring but How can I iterate through the record and populate the values?

              Illegal Operation

              N Offline
              N Offline
              N a v a n e e t h
              wrote on last edited by
              #6

              All you need to do is just setting text box value, why not do it using JS? Hook a JS function which will execute when link button is clicked and get necessary values and assign to textbox.

              Navaneeth How to use google | Ask smart questions

              1 Reply Last reply
              0
              • I Illegal Operation

                yes. I have a record with ID, FirstName, LastName and Date and would like to populate a form when I click on the record ID.

                Illegal Operation

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

                ok, so, again, if it's a new form you populate, put the ID on the URL, and read the other data from the database. Simple.

                Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

                1 Reply Last reply
                0
                • I Illegal Operation

                  Hi! I have a GridView on an aspx page that displays records. Below the GridView I have a TextBox that needs to display the value I select in the GridView I have already created a linkbutton that enables me to click on the record number but I cannot get the value into the textbox. How can I do this?

                  Illegal Operation

                  P Offline
                  P Offline
                  praveen c byzan com
                  wrote on last edited by
                  #8

                  Hi, find the respective control in gridview using findcontrol method and then get the value of that control, cheers, praveen.

                  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