Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

ASP.NET Querystring or PopUp issue

Avatar of weguardyou
weguardyou asked on
.NET Programming
23 Comments1 Solution2177 ViewsLast Modified:
I am working with ASP.NET, C#, and Javascript.

I need to pass information from my main page to a popup, and have the popup get the information before its opened because it uses the information I pass to populate a field.

I've passed the info on the onload of the page but it doesn't load quick enough and the box comes up empty.

I need to either use a Querystring through Javascript or create a popup window through ASP not Javascript.

Here's the code I have right now:

On my main page:

function openwindow4()
popUp4 = window.open("Comments.aspx","search","address=no, toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=yes, width=800, height=600, left=100, top=50,")

function passbackUserId()
var test2 = document.Form1.txtHidden2.value;
return test2;

function passbackQuotationId()
var test3 = document.Form1.txtHidden3.value;
return test3;

On the popUp:

<body onload="javascript:document.Form1.txtHidden.value = window.opener.passbackUserId(); document.Form1.txtHidden2.value = window.opener.passbackQuotationId();" MS_POSITIONING="GridLayout">

As you can see I popup using Javascript...how would I merge a querystring with this? Or
Can I popup using ASP {C#}?

Avatar of dante469

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

This problem has been solved!
Unlock 1 Answer and 23 Comments.
See Answers