How to pass a querystring to a popup window

R

rameshk75

I have a parent window and popup window. Would like to pass a value
stored in a Code behind variable(_strUserId) as a querystring.

Below is the code.


Dim Popupscript As String
Popupscript = "<script language='javascript'> var strReturn;
strReturn=window.showModalDialog('RequestPopup.aspx?RequestID=' &
_strUserId,'status:no;dialogWidth:370px;dialogHeight:220px;dialogHide:true;help:no;scroll:no');
document.getElementById('txtPopupUserId').value=strReturn;</script>"
RegisterStartupScript("frmRequest", Popupscript)

Can anyone pls correct me where am i going wrong !


Thanks in Advance
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top