Script(s)

what I learn is what u c

Run Javascript Code in Server Side ASP.NET

with 2 comments

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

Written by gchandra

November 12, 2005 at 11:15 pm

Posted in Web Coding

2 Responses

Subscribe to comments with RSS.

  1. Thanks for sharing this information. Really is pack with new knowledge. Keep them coming.

  2. Really nice and useful article, thanks for updates.

    Agenext

    March 26, 2009 at 6:37 am


Leave a Reply