0
Digg me

Using Page.RegisterClientScriptBlock to execute Client Side Javascipt within ASP.NET

Private Sub Save(o as object,e as eventargs)
—-
—–

Dim sScript as String sScript = “@Script>window.opener.location.href = window.opener.location.href;self.close();@/Script>”

Page.RegisterClientScriptBlock(“CloseWind”,sScript.Replace(“@”,”<”)

End Sub

Related Links

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemWebUIPageClassRegisterClientScriptBlockTopic.asp

http://blogs.wwwcoder.com/mmondok/archive/2005/05/12/4197.aspx