Open a new window from an ASP.NET sub function -
i have asp.net sub function triggers on button click via __dopostback. open new window without closing parent perform tricks useful purpose. simple window.open (blablabla).
is there way open such new window @ end of sub function?
the next code register startup script execute after method executed:
vb.net sample
dim script string script = "var mywindow = window.open('http://google.com', '_blank');" me.page.clientscript.registerstartupscript(gettype(string), "openerscript", script, true)
c# sample:
string script = "var mywindow = window.open('http://google.com', '_blank');"; this.page.clientscript.registerstartupscript(typeof(string), "openerscript", script, true);
asp.net
No comments:
Post a Comment