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
csharpasp-nettutorial
9 Posts 7 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.
  • N Offline
    N Offline
    niki_nilu
    wrote on last edited by
    #1

    how to pass the values form one webform to another webform. using querystring. i am using asp.net with c#

    Gayatri

    E B D 3 Replies Last reply
    0
    • N niki_nilu

      how to pass the values form one webform to another webform. using querystring. i am using asp.net with c#

      Gayatri

      E Offline
      E Offline
      eyeseetee
      wrote on last edited by
      #2

      This is so basic: From: Page.aspx?var To: string QSvar = (Request.QueryString["var"]);

      N 1 Reply Last reply
      0
      • N niki_nilu

        how to pass the values form one webform to another webform. using querystring. i am using asp.net with c#

        Gayatri

        B Offline
        B Offline
        Bardy85
        wrote on last edited by
        #3

        For multiple use: Pagename.aspx?Temp1=Value1?Temp2=Value2?Temp3=Value3

        M N L 3 Replies Last reply
        0
        • B Bardy85

          For multiple use: Pagename.aspx?Temp1=Value1?Temp2=Value2?Temp3=Value3

          M Offline
          M Offline
          Manas Bhardwaj
          wrote on last edited by
          #4

          Bardy85 wrote:

          Pagename.aspx?Temp1=Value1?Temp2=Value2?Temp3=Value3

          Should be like this

          Pagename.aspx?Temp1=Value1&Temp2=Value2&Temp3=Value3

          :)

          Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.

          1 Reply Last reply
          0
          • B Bardy85

            For multiple use: Pagename.aspx?Temp1=Value1?Temp2=Value2?Temp3=Value3

            N Offline
            N Offline
            niki_nilu
            wrote on last edited by
            #5

            its not work. the type name 'aspx' does not exist in the type 'NewScore' this type error come.

            Gayatri

            1 Reply Last reply
            0
            • E eyeseetee

              This is so basic: From: Page.aspx?var To: string QSvar = (Request.QueryString["var"]);

              N Offline
              N Offline
              neilmajithia
              wrote on last edited by
              #6

              or if you are using a form on the page, set the post method to "GET" eg

              the querystring name will correspond to to the name of the inputs for this example it would be ?something=sometext

              1 Reply Last reply
              0
              • B Bardy85

                For multiple use: Pagename.aspx?Temp1=Value1?Temp2=Value2?Temp3=Value3

                L Offline
                L Offline
                Lost User
                wrote on last edited by
                #7

                :wtf:

                Bardy85 wrote:

                Pagename.aspx?Temp1=Value1?Temp2=Value2?Temp3=Value3

                Thjis is the correct way Pagename.aspx?Temp1=Value1&Temp2=Value2&Temp3=Value3

                The Developer - CEH

                N 1 Reply Last reply
                0
                • L Lost User

                  :wtf:

                  Bardy85 wrote:

                  Pagename.aspx?Temp1=Value1?Temp2=Value2?Temp3=Value3

                  Thjis is the correct way Pagename.aspx?Temp1=Value1&Temp2=Value2&Temp3=Value3

                  The Developer - CEH

                  N Offline
                  N Offline
                  niki_nilu
                  wrote on last edited by
                  #8

                  In my Project there were 3 master page. one for login second for Menu third for All WebForms like NewScore. i want Login name in all masterpages. and when login is valid then second menu page will be open. when we click on menu page then webform open that webform i want login name. pls help me its urgent.

                  Gayatri

                  1 Reply Last reply
                  0
                  • N niki_nilu

                    how to pass the values form one webform to another webform. using querystring. i am using asp.net with c#

                    Gayatri

                    D Offline
                    D Offline
                    D4ever
                    wrote on last edited by
                    #9

                    but the very simplest way instead of using querystring u can use Page1.aspx session("value")="Hi" & use this session on another page Like Page2.aspx TextBox1.text=session("value")

                    Darshana Pathak

                    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