passing parameter to a popup window without using querystring

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Joe Abou Jaoude

    passing parameter to a popup window without using querystring


    hi,
    I have a search page im asp.net. the user enter the criterias in
    textboxes and dropdownlists and on submit i want the results to be
    displayed in a popup window.

    so the easy way is to pass the criterias in a querystring to the new
    window. but if it's possible i don't want to use query string.

    in asp, i could use the folowing:
    i open a temporary blank window, on load I take the values of the search
    page using the window.opener and submit them to the server.
    Unfortunately this can't be done in asp.net coz window.opener isn't
    working.
    so is there a way to do that ? or the only way is to pass the parameters
    in a querystring ?

    thx.




    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!
  • lallous

    #2
    Re: passing parameter to a popup window without using querystring

    Hello,

    I never tried that, however give it a shot and tell me how it works:

    1)make a search button on your page w/ type = submit
    2)onclick of that button do the following:
    // create the pop-up window
    // make sure you give it a name
    window.open("se archresult.asp" , "targetSearchRe sult",
    "width=400,heig ht=300");
    // adjust your forms target and action as:
    mysearchform.ta rget = 'targetSearchRe sult';
    mysearchform.ac tion = 'searchresult.a sp';
    mysearchform.su bmit();


    That way, you have pre-created a pop-up window w/ no purpose; later you
    submitted the search queries (via POST method if you don't want queries)
    into that pre-opened window with your height/width.

    Hope that helps,
    Elias

    "Joe Abou Jaoude" <joe30@hotmail. com> wrote in message
    news:400ba122$0 $70302$75868355 @news.frii.net. ..[color=blue]
    >
    > hi,
    > I have a search page im asp.net. the user enter the criterias in
    > textboxes and dropdownlists and on submit i want the results to be
    > displayed in a popup window.
    >
    > so the easy way is to pass the criterias in a querystring to the new
    > window. but if it's possible i don't want to use query string.
    >
    > in asp, i could use the folowing:
    > i open a temporary blank window, on load I take the values of the search
    > page using the window.opener and submit them to the server.
    > Unfortunately this can't be done in asp.net coz window.opener isn't
    > working.
    > so is there a way to do that ? or the only way is to pass the parameters
    > in a querystring ?
    >
    > thx.
    >
    >
    >
    >
    > *** Sent via Developersdex http://www.developersdex.com ***
    > Don't just participate in USENET...get rewarded for it![/color]


    Comment

    • Joe Abou Jaoude

      #3
      Re: passing parameter to a popup window without using querystring


      thanks lallous, i'll try it.

      ps: r u from lebanon ?

      *** Sent via Developersdex http://www.developersdex.com ***
      Don't just participate in USENET...get rewarded for it!

      Comment

      • lallous

        #4
        Re: passing parameter to a popup window without using querystring

        Joe Abou Jaoude <joe30@hotmail. com> wrote in message news:<401f597d$ 0$70302$7586835 5@news.frii.net >...[color=blue]
        > thanks lallous, i'll try it.
        >
        > ps: r u from lebanon ?[/color]
        Yup.

        Comment

        Working...