R8VI
asked on
c#, javascript open a new window
Hi,
I want to open a window with c# code that has something like this
"javascript:window.open('M oreImages. aspx?','', 'left=250p x, top=245px, width=700px, height=450px, scrollbars=no, status=no, resizable=no');return false;"
how can i use this in c# code
Please ehlp
Thanks,
R8VI
I want to open a window with c# code that has something like this
"javascript:window.open('M
how can i use this in c# code
Please ehlp
Thanks,
R8VI
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
also it has to return false
ASKER
hi, i got it to work how i want but how to i center the new window
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Please Try This one.
Dim strjscript As String = "<script language='javascript'>"
strjscript += "window.open('MoreImages.a spx?','',' left=250px , top=245px, width=700px, height=450px, scrollbars=no, status=no, resizable=no');return false';"
strjscript += "</script" + ">"
ClientScript.RegisterStart upScript(M e.GetType, "workorder", strjscript)
Dim strjscript As String = "<script language='javascript'>"
strjscript += "window.open('MoreImages.a
strjscript += "</script" + ">"
ClientScript.RegisterStart
ASKER