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.RegisterClientScriptBlo ck("strScr ipt", 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?ordern umber=" & Me.ddlOrderNumber.Selected Item.Value
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'
strScript += "</script>" & vbCrLf
Me.RegisterClientScriptBlo
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?ordern
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.