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

Advertisements

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

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: