troubleshooting Question

Redirect to new popup window from code behind c# file

Avatar of Caroline_Swart
Caroline_Swart asked on
ASP.NET
3 Comments1 Solution3249 ViewsLast Modified:
Hi,

I have a webform (.aspx). When the user clicks on a hyperlink, I want a popup to display with the details. (eg. user clicks on a check number, and all the check's details appears in the popup window).

The problem I am having, is that I want to pass a query string that will be evaluated in the popup window. I have the following:

string theURL = "PayCheckDetails.aspx?CheckDate=01/01/2006&EmployeeId=1234567890";

string theScript = "javascript:void(window.open('" + theURL + "', 'windowPop', 'width=600,height=480,left=0,top=0, location=no, menubar=no, status=no, toolbar=no, scrollbars=yes, resizable=yes'))";
Response.Redirect (theScript);

- the Response.Redirect with the javascript's window.open doesnt work. At all. If I redirect without any javascript, it works perfectly.

I don't want to "Response.Redirect", because I want a popup window.

Is there anyway that I can code this in the code-behind file (PayCheck.aspx.cs)

ANY HELP PLEASE!!!

Tx

ASKER CERTIFIED SOLUTION
jeebukarthikeyan

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros