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? urgent

Querystring? urgent

Scheduled Pinned Locked Moved ASP.NET
10 Posts 7 Posters 2 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.
  • K Offline
    K Offline
    Karthick_gc
    wrote on last edited by
    #1

    Hi friends, In my application i want to send datas from one form to other using Querystring. I dont know how to send multiple datas. I send it seperated by comma. But it will be sended as a single data. the code is xmlHttp.open("GET","ResponserFile.aspx?sendData=" + id,nam,cel ,true); CAn anyone correct it?

    A A R C L 5 Replies Last reply
    0
    • K Karthick_gc

      Hi friends, In my application i want to send datas from one form to other using Querystring. I dont know how to send multiple datas. I send it seperated by comma. But it will be sended as a single data. the code is xmlHttp.open("GET","ResponserFile.aspx?sendData=" + id,nam,cel ,true); CAn anyone correct it?

      A Offline
      A Offline
      Abhishek Sur
      wrote on last edited by
      #2

      use ResponserFile.aspx?id=3&name=nam&cell=cell Now from server side get the data using

      Request.QueryString["id"]
      Request.QueryString["name"]
      Request.QueryString["cell"]

      Abhishek Sur My Latest Articles Basics on LINQ and Lambda Expressions
      Create .NET Templates

      K 1 Reply Last reply
      0
      • A Abhishek Sur

        use ResponserFile.aspx?id=3&name=nam&cell=cell Now from server side get the data using

        Request.QueryString["id"]
        Request.QueryString["name"]
        Request.QueryString["cell"]

        Abhishek Sur My Latest Articles Basics on LINQ and Lambda Expressions
        Create .NET Templates

        K Offline
        K Offline
        Karthick_gc
        wrote on last edited by
        #3

        Hi, I write it as u mention. But it does not work. xmlHttp.open("GET","ResponserFile.aspx?id=3&name=nam&cell=cell,true) Can u correct it ? Pls..

        Z 1 Reply Last reply
        0
        • K Karthick_gc

          Hi friends, In my application i want to send datas from one form to other using Querystring. I dont know how to send multiple datas. I send it seperated by comma. But it will be sended as a single data. the code is xmlHttp.open("GET","ResponserFile.aspx?sendData=" + id,nam,cel ,true); CAn anyone correct it?

          A Offline
          A Offline
          anilpal
          wrote on last edited by
          #4

          Hi, Can i know frm where ur trying to send the query string vale?

          Regards Anil Pal

          K 1 Reply Last reply
          0
          • A anilpal

            Hi, Can i know frm where ur trying to send the query string vale?

            Regards Anil Pal

            K Offline
            K Offline
            Karthick_gc
            wrote on last edited by
            #5

            Actually i used it in Ajax. I send it to server side page for inserting datas in a table. I want to know how to send multiple datas? can u tell?

            A 1 Reply Last reply
            0
            • K Karthick_gc

              Hi friends, In my application i want to send datas from one form to other using Querystring. I dont know how to send multiple datas. I send it seperated by comma. But it will be sended as a single data. the code is xmlHttp.open("GET","ResponserFile.aspx?sendData=" + id,nam,cel ,true); CAn anyone correct it?

              R Offline
              R Offline
              RyanMorris
              wrote on last edited by
              #6

              Hi Karthick_gc, Have you tried doing it like this:

              xmlHttp.open("GET","ResponserFile.aspx?id=" + id + "&name=" + nam + "&cell=" + cel + "&bool=true");

              I'm assuming that id, nam and cel are variables. Then to retrieve the data on the form you would use:

              Request.QueryString["id"]
              Request.QueryString["name"]
              Request.QueryString["cell"]
              Request.QueryString["bool"]

              I hope this helps. Ryan

              1 Reply Last reply
              0
              • K Karthick_gc

                Hi, I write it as u mention. But it does not work. xmlHttp.open("GET","ResponserFile.aspx?id=3&name=nam&cell=cell,true) Can u correct it ? Pls..

                Z Offline
                Z Offline
                Zia Ul Haq Soofi
                wrote on last edited by
                #7

                you are using a comma before true, this is not correct. The correct string will be like: xmlHttp.open("GET","ResponserFile.aspx?id=3&name=nam&cell=cell&var=true") in the above syntax id, name, cell, var are variables that will be called by: Request.Querystring("id") etc.... & is user to join two variable so be careful to use values.

                Be a part of solution, rather then be a part of problem

                1 Reply Last reply
                0
                • K Karthick_gc

                  Actually i used it in Ajax. I send it to server side page for inserting datas in a table. I want to know how to send multiple datas? can u tell?

                  A Offline
                  A Offline
                  anilpal
                  wrote on last edited by
                  #8

                  Hi ResponserFile.aspx?id=3&name=nam&cell=cell I think u r using correct format to send the multiple data through query. May be problem in syntax of calling in ajax. Can u provide the exact error whcih u r receiving. R u workking in VS 2003?

                  Regards Anil Pal

                  1 Reply Last reply
                  0
                  • K Karthick_gc

                    Hi friends, In my application i want to send datas from one form to other using Querystring. I dont know how to send multiple datas. I send it seperated by comma. But it will be sended as a single data. the code is xmlHttp.open("GET","ResponserFile.aspx?sendData=" + id,nam,cel ,true); CAn anyone correct it?

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

                    Buy a book and read it, or learn to use google, instead of making stuff up.

                    Christian Graus Driven to the arms of OSX by Vista. "I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )

                    1 Reply Last reply
                    0
                    • K Karthick_gc

                      Hi friends, In my application i want to send datas from one form to other using Querystring. I dont know how to send multiple datas. I send it seperated by comma. But it will be sended as a single data. the code is xmlHttp.open("GET","ResponserFile.aspx?sendData=" + id,nam,cel ,true); CAn anyone correct it?

                      L Offline
                      L Offline
                      Laddie
                      wrote on last edited by
                      #10

                      Query Strings in ASP.NET[^]

                      Thanks Laddie Kindly rate if the answer was helpful

                      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