How to pass a querystring to a popup window

  • Thread starter Thread starter rameshk75
  • Start date Start date
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
 
Back
Top