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. Passing value to other form

Passing value to other form

Scheduled Pinned Locked Moved ASP.NET
questionjavascript
7 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.
  • N Offline
    N Offline
    nagendrathecoder
    wrote on last edited by
    #1

    Hello All, I am using following hyperlink code to open a popup window using javascript. <pre><a href="javascript:;" onClick="window.open('SearchBOM.aspx','myWin','scrollbars=yes,width=500,height=500,resizable=no');" >Search</a></pre> I want to pass a querystring to SearchBOM.aspx page based on the value entered in a textbox. How can i achieve this? Thanks, Nagendra.

    V S C N 4 Replies Last reply
    0
    • N nagendrathecoder

      Hello All, I am using following hyperlink code to open a popup window using javascript. <pre><a href="javascript:;" onClick="window.open('SearchBOM.aspx','myWin','scrollbars=yes,width=500,height=500,resizable=no');" >Search</a></pre> I want to pass a querystring to SearchBOM.aspx page based on the value entered in a textbox. How can i achieve this? Thanks, Nagendra.

      V Offline
      V Offline
      Vimalsoft Pty Ltd
      wrote on last edited by
      #2

      Why dont you use a Session for this ?

      Vuyiswa Maseko, Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers." C#/VB.NET/ASP.NET/SQL7/2000/2005/2008 http://www.vuyiswamaseko.com vuyiswa@its.co.za http://www.itsabacus.co.za/itsabacus/

      N 1 Reply Last reply
      0
      • N nagendrathecoder

        Hello All, I am using following hyperlink code to open a popup window using javascript. <pre><a href="javascript:;" onClick="window.open('SearchBOM.aspx','myWin','scrollbars=yes,width=500,height=500,resizable=no');" >Search</a></pre> I want to pass a querystring to SearchBOM.aspx page based on the value entered in a textbox. How can i achieve this? Thanks, Nagendra.

        S Offline
        S Offline
        Suresh Suthar
        wrote on last edited by
        #3

        nagendrathecoder wrote:

        onClick="window.open('SearchBOM.aspx','myWin'

        Use this ="window.open('SearchBOM.aspx?id=1&name=xyz','myWin' You can create a variable called parameter and add you query string to this and use following code.. >="window.open('SearchBOM.aspx?" & parameter & "'" ,'myWin'

        Be an Eagle, Sky is Yours.

        1 Reply Last reply
        0
        • N nagendrathecoder

          Hello All, I am using following hyperlink code to open a popup window using javascript. <pre><a href="javascript:;" onClick="window.open('SearchBOM.aspx','myWin','scrollbars=yes,width=500,height=500,resizable=no');" >Search</a></pre> I want to pass a querystring to SearchBOM.aspx page based on the value entered in a textbox. How can i achieve this? Thanks, Nagendra.

          C Offline
          C Offline
          Coding C
          wrote on last edited by
          #4

          nagendrathecoder wrote:

          [Instead call javascript function on onClick of link

          function OpenWindow()
          {
          var txtValue=document.getElementByID('textboxid').value;
          window.open('SearchBOM.aspx&searchvalue=' + txtValue,'myWin','scrollbars=yes,width=500,height=500,resizable=no');

          }

          HTH](javascript:;)

          [Coding C#](javascript:;) ExciteTemplate

          1 Reply Last reply
          0
          • N nagendrathecoder

            Hello All, I am using following hyperlink code to open a popup window using javascript. <pre><a href="javascript:;" onClick="window.open('SearchBOM.aspx','myWin','scrollbars=yes,width=500,height=500,resizable=no');" >Search</a></pre> I want to pass a querystring to SearchBOM.aspx page based on the value entered in a textbox. How can i achieve this? Thanks, Nagendra.

            N Offline
            N Offline
            Not Active
            wrote on last edited by
            #5

            Create a JavaScript function and use it. <[ * * * only two letters away from being an asset ](MyClickHandler...)

            1 Reply Last reply
            0
            • V Vimalsoft Pty Ltd

              Why dont you use a Session for this ?

              Vuyiswa Maseko, Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers." C#/VB.NET/ASP.NET/SQL7/2000/2005/2008 http://www.vuyiswamaseko.com vuyiswa@its.co.za http://www.itsabacus.co.za/itsabacus/

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

              I declared a session variable as follows but its not showing value in next page.

              <%Session["strSearch"] = txtSearch.Text;%>

              V 1 Reply Last reply
              0
              • N nagendrathecoder

                I declared a session variable as follows but its not showing value in next page.

                <%Session["strSearch"] = txtSearch.Text;%>

                V Offline
                V Offline
                Vimalsoft Pty Ltd
                wrote on last edited by
                #7

                Why don't you do this on the Server Side ?

                Session["strSearch"] = txtSearch.Text;

                Vuyiswa Maseko, Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers." C#/VB.NET/ASP.NET/SQL7/2000/2005/2008 http://www.vuyiswamaseko.com vuyiswa@its.co.za http://www.itsabacus.co.za/itsabacus/

                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