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. sharing information between two pages

sharing information between two pages

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

    Hello Friends! Actually I have a page which contain record in a grid view. I want to put the button. after clicking the button that details available on grid view will be exactly appeard on next page. please solve it. thanx

    A C 2 Replies Last reply
    0
    • V varsh12

      Hello Friends! Actually I have a page which contain record in a grid view. I want to put the button. after clicking the button that details available on grid view will be exactly appeard on next page. please solve it. thanx

      A Offline
      A Offline
      Abhijit Jana
      wrote on last edited by
      #2

      If the data is not so much heavy , just put the data in a session variable and retrieve it on other pages .

      cheers, Abhijit CodeProject MVP My Blog :Abhijit's World of .Net

      1 Reply Last reply
      0
      • V varsh12

        Hello Friends! Actually I have a page which contain record in a grid view. I want to put the button. after clicking the button that details available on grid view will be exactly appeard on next page. please solve it. thanx

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

        The obvious way to do this is to make both pages controls and then let viewstate handle it. Of course, if all you want is for the second page to show the data of a grid view row, and nothing else, then just link to a page with an id in the URL that you use to pull the data from the DB. This is ASP.NET 101, so I hope you're a beginner doing a course and not being paid for your work.

        Christian Graus Driven to the arms of OSX by Vista.

        M V 2 Replies Last reply
        0
        • C Christian Graus

          The obvious way to do this is to make both pages controls and then let viewstate handle it. Of course, if all you want is for the second page to show the data of a grid view row, and nothing else, then just link to a page with an id in the URL that you use to pull the data from the DB. This is ASP.NET 101, so I hope you're a beginner doing a course and not being paid for your work.

          Christian Graus Driven to the arms of OSX by Vista.

          M Offline
          M Offline
          mr_muskurahat
          wrote on last edited by
          #4

          there are several ways to achieve this using sessions,querystrings and gridview built in hyperlink field add it and give destination url your selected row values will be passed to next page automatically in the form of querystring.

          umerumerumer

          1 Reply Last reply
          0
          • C Christian Graus

            The obvious way to do this is to make both pages controls and then let viewstate handle it. Of course, if all you want is for the second page to show the data of a grid view row, and nothing else, then just link to a page with an id in the URL that you use to pull the data from the DB. This is ASP.NET 101, so I hope you're a beginner doing a course and not being paid for your work.

            Christian Graus Driven to the arms of OSX by Vista.

            V Offline
            V Offline
            varsh12
            wrote on last edited by
            #5

            thanx a lot: Actually It is first to me to use session or query string so, i couldn't get what am i do. If ppssible ,then please guide me through some code or guidance

            B 1 Reply Last reply
            0
            • V varsh12

              thanx a lot: Actually It is first to me to use session or query string so, i couldn't get what am i do. If ppssible ,then please guide me through some code or guidance

              B Offline
              B Offline
              Brij
              wrote on last edited by
              #6

              For Session Check this link[^] for Querystring Check this link[^]

              Cheers!! Brij

              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