Link to home
Start Free TrialLog in
Avatar of Priya25
Priya25

asked on

JavaScript - Open a new window with parameters

I have to open a new window from my ASP.net web application.

Here is the code I've been using.

Dim strScript As String = "<script language='javascript'>" & vbCrLf
strScript += " function window.onload() {" & vbCrLf
strScript += "    window.open('POREP01.aspx'); }" & vbCrLf
strScript += "</script>" & vbCrLf

Me.RegisterClientScriptBlock("strScript", strScript)

This works fine. But now I hwve to do the same thing on another page with parameters...and I am not able to place the parameters in Javascript, being new to JavaScript. Here is an example of a page which I have to open in a new window.

OrderpreviewPO.aspx?ordernumber=" & Me.ddlOrderNumber.SelectedItem.Value


ASKER CERTIFIED SOLUTION
Avatar of David H.H.Lee
David H.H.Lee
Flag of Malaysia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial