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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. Problem in passing value to popup window

Problem in passing value to popup window

Scheduled Pinned Locked Moved ASP.NET
helpjavascripttoolsquestion
3 Posts 2 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 friends, I know i have posted similar thing yesterday but i didn't got my solution yet. I am using popup window in my application which i am creating like this

    function Open() {
    window.open('SearchBOM.aspx','myWin','scrollbars=no,width=500,height=500,resizable=no');
    }
    </script>
    <a href="javascript:;" onClick="Open()">Search</a></pre>

    I want to pass a string value to my SearchBOM.aspx page, which i'll enter in a TextBox.
    I tried using Session variables, but i found out on net that i can't use sessions in client side code.
    Then i used HiddenField for the purpose but still it didn't helped me.

    Now i want to try for QueryString option.
    I know i have to pass it by putting '?' after pagename but it still giving me errors.

    Am missing something? Can anybody help me?
    Also i am using Content PAge and not a normal web page.

    Thanks,
    Nagendra.</x-turndown>

    N 1 Reply Last reply
    0
    • N nagendrathecoder

      Hello friends, I know i have posted similar thing yesterday but i didn't got my solution yet. I am using popup window in my application which i am creating like this

      function Open() {
      window.open('SearchBOM.aspx','myWin','scrollbars=no,width=500,height=500,resizable=no');
      }
      </script>
      <a href="javascript:;" onClick="Open()">Search</a></pre>

      I want to pass a string value to my SearchBOM.aspx page, which i'll enter in a TextBox.
      I tried using Session variables, but i found out on net that i can't use sessions in client side code.
      Then i used HiddenField for the purpose but still it didn't helped me.

      Now i want to try for QueryString option.
      I know i have to pass it by putting '?' after pagename but it still giving me errors.

      Am missing something? Can anybody help me?
      Also i am using Content PAge and not a normal web page.

      Thanks,
      Nagendra.</x-turndown>

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

      You're still working on this? :rolleyes: :omg: function Open() { var uri = "SearchBOM.aspx?[param-name]=" + [value]; window.open(uri,'myWin','scrollbars=no,width=500,height=500,resizable=no'); }


      only two letters away from being an asset

      N 1 Reply Last reply
      0
      • N Not Active

        You're still working on this? :rolleyes: :omg: function Open() { var uri = "SearchBOM.aspx?[param-name]=" + [value]; window.open(uri,'myWin','scrollbars=no,width=500,height=500,resizable=no'); }


        only two letters away from being an asset

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

        Hey Thanks man, i combined the results mentioned by u and some other on net and i got it worked. :-D

        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