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. query string

query string

Scheduled Pinned Locked Moved ASP.NET
questionjavascriptdatabasetutorial
12 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.
  • S saravanan05

    hi friends i have textbox .how can i pass another page in textbox value using querystring through javascript this my javascript snipt onclick=\"yih_idpop('check.aspx?'); how to add here in my textbox regards saravanan

    S Offline
    S Offline
    Sylvester george
    wrote on last edited by
    #2

    you can do it in serverside code Response.Redirect("'check.aspx?QueryString1=" + TextBox1.Text);

    Regards, Sylvester G sylvester_g_m@yahoo.com

    1 Reply Last reply
    0
    • S saravanan05

      hi friends i have textbox .how can i pass another page in textbox value using querystring through javascript this my javascript snipt onclick=\"yih_idpop('check.aspx?'); how to add here in my textbox regards saravanan

      S Offline
      S Offline
      Sathesh Sakthivel
      wrote on last edited by
      #3

      Try with Response.Redirect("'check.aspx?QueryString1=" + txtBox.Text);

      Regards, Satips.:rose:

      S 1 Reply Last reply
      0
      • S saravanan05

        hi friends i have textbox .how can i pass another page in textbox value using querystring through javascript this my javascript snipt onclick=\"yih_idpop('check.aspx?'); how to add here in my textbox regards saravanan

        A Offline
        A Offline
        Arun Immanuel
        wrote on last edited by
        #4

        Try This: Assign the redirect() function to the onClick attribute of the button. function redirect() { document.location.href = "check.aspx?t1=" + document.getElementByID("txtName").Value; }

        Regards, Arun Kumar.A

        1 Reply Last reply
        0
        • S saravanan05

          hi friends i have textbox .how can i pass another page in textbox value using querystring through javascript this my javascript snipt onclick=\"yih_idpop('check.aspx?'); how to add here in my textbox regards saravanan

          S Offline
          S Offline
          Sandeep Akhare
          wrote on last edited by
          #5

          Hi Freind you can pass the Querystring from javascript in similar you used to pass in server side code ='check.aspx?QueryStringKey=QyerStringValue&QueryStringKey=QueryStringValue Where QueryStringKey -> Key for query string QyerStringValue -> Value that you wan to pass

          Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "

          S 1 Reply Last reply
          0
          • S Sathesh Sakthivel

            Try with Response.Redirect("'check.aspx?QueryString1=" + txtBox.Text);

            Regards, Satips.:rose:

            S Offline
            S Offline
            Sandeep Akhare
            wrote on last edited by
            #6

            Satips wrote:

            You can't do like this.

            Why dude we can pass query string using javascript Whats the problem ?

            Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "

            S 1 Reply Last reply
            0
            • S Sandeep Akhare

              Satips wrote:

              You can't do like this.

              Why dude we can pass query string using javascript Whats the problem ?

              Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "

              S Offline
              S Offline
              Sathesh Sakthivel
              wrote on last edited by
              #7

              Hi Sandeep i have corrected it.

              Regards, Satips.:rose:

              S 1 Reply Last reply
              0
              • S Sathesh Sakthivel

                Hi Sandeep i have corrected it.

                Regards, Satips.:rose:

                S Offline
                S Offline
                Sandeep Akhare
                wrote on last edited by
                #8

                I thought you were suggesting not to use javascript thats why i asked

                Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "

                1 Reply Last reply
                0
                • S Sandeep Akhare

                  Hi Freind you can pass the Querystring from javascript in similar you used to pass in server side code ='check.aspx?QueryStringKey=QyerStringValue&QueryStringKey=QueryStringValue Where QueryStringKey -> Key for query string QyerStringValue -> Value that you wan to pass

                  Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "

                  S Offline
                  S Offline
                  saravanan05
                  wrote on last edited by
                  #9

                  hi this my code if(oBw.ie5||oBw.ns6){document.write("<div id=\"instructions\" style=\"border: 1px solid #708090; background: #fff8dc; padding:4px; width: 200px;margin:0 0 0px 0;display:block\" align=\"center\" designtimesp=17632><input class=\"yihbtn\" type=\"button\" name=\"checkAvail\" value=\"Check Availability of UserName\" style=\"width:15em\" onclick=\"yih_idpop ('check.aspx?QueryString1=' + "txtuname.Text");return false;\" target=\"_blank\"></div>");} it is not working i dont need response.redirct .already i used in popup window regards saravanan

                  S 1 Reply Last reply
                  0
                  • S saravanan05

                    hi this my code if(oBw.ie5||oBw.ns6){document.write("<div id=\"instructions\" style=\"border: 1px solid #708090; background: #fff8dc; padding:4px; width: 200px;margin:0 0 0px 0;display:block\" align=\"center\" designtimesp=17632><input class=\"yihbtn\" type=\"button\" name=\"checkAvail\" value=\"Check Availability of UserName\" style=\"width:15em\" onclick=\"yih_idpop ('check.aspx?QueryString1=' + "txtuname.Text");return false;\" target=\"_blank\"></div>");} it is not working i dont need response.redirct .already i used in popup window regards saravanan

                    S Offline
                    S Offline
                    Sandeep Akhare
                    wrote on last edited by
                    #10

                    Yes i did say you to use Response.Redirect you can do it by using javascript When are this calling this ? Where is the function ? Only you want open a new window with query String value isn't it ?

                    Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "

                    S 1 Reply Last reply
                    0
                    • S Sandeep Akhare

                      Yes i did say you to use Response.Redirect you can do it by using javascript When are this calling this ? Where is the function ? Only you want open a new window with query String value isn't it ?

                      Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "

                      S Offline
                      S Offline
                      saravanan05
                      wrote on last edited by
                      #11

                      i need to pass txtbox value onepage to another pop up window

                      S 1 Reply Last reply
                      0
                      • S saravanan05

                        i need to pass txtbox value onepage to another pop up window

                        S Offline
                        S Offline
                        Sandeep Akhare
                        wrote on last edited by
                        #12

                        Take a look now this should help you var textBoxText=document.getElementById("TextBox1").value; window.open('April24.aspx?QueryStrngValue='+textBoxText); put this code in a function call that function when you want to open a new window

                        Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "

                        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