By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,934 Members | 1,692 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,934 IT Pros & Developers. It's quick & easy.

passing parameter to a popup window without using querystring

P: n/a

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!
Jul 20 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
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("searchresult.asp", "targetSearchResult",
"width=400,height=300");
// adjust your forms target and action as:
mysearchform.target = 'targetSearchResult';
mysearchform.action = 'searchresult.asp';
mysearchform.submit();
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" <jo***@hotmail.com> wrote in message
news:40***********************@news.frii.net...

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!

Jul 20 '05 #2

P: n/a

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!
Jul 20 '05 #3

P: n/a
Joe Abou Jaoude <jo***@hotmail.com> wrote in message news:<40***********************@news.frii.net>...
thanks lallous, i'll try it.

ps: r u from lebanon ?

Yup.
Jul 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.