vbnetcoder
asked on
query string javascript
My page APS gets passed a query string and the request it like this
Request.QueryString("Produ ct_ID")
Now, in the following javascript procedure how would i pass this this query string to the PopupForm.aspx form that is being opened?
function OpenChild() {
var WinSettings = "center:yes;resizable:no;d ialogHeigh t:300px"
// ALTER BELOW LINE - supply correct URL for Child Form
var MyArgs = window.showModalDialog(".. /PopupForm .aspx", MyArgs, WinSettings);
}
Request.QueryString("Produ
Now, in the following javascript procedure how would i pass this this query string to the PopupForm.aspx form that is being opened?
function OpenChild() {
var WinSettings = "center:yes;resizable:no;d
// ALTER BELOW LINE - supply correct URL for Child Form
var MyArgs = window.showModalDialog("..
}
ASKER
OK the passing to the new form works find but how do i get the value of product_ID that was passed to the form?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Request.Querystring("Produ ct_ID") can then be used on the child form to get the product id
ASKER
Where do i put this line of code that you gave me above:
<% Response.write("<script language='javascript'>var prodid = " & Request.QueryString("Produ ct_ID") & ";</script>")%>
<% Response.write("<script language='javascript'>var prodid = " & Request.QueryString("Produ
Put it in your aspx page just above your javascript functions.
ASKER
ty
Open in new window