Running JavaScript from within C#

  • Thread starter Thread starter King Coffee
  • Start date Start date
K

King Coffee

Hi,

I want to run some client-side JavaScript code embed within the C# code
behind page went a ASP.NET page is loaded and unload. Is there a system .NET
method to do this?

Thanks,

King
 
Hi,

I want to run some client-side JavaScript code embed within the C#
code behind page went a ASP.NET page is loaded and unload. Is there a
system .NET method to do this?

Thanks,

King

Include a call to the function you want to run in the code you emit, or add
it to the Load() event of the body tag. As everything is run client side,
you cannot "run" it from the server side.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

Twitter: @gbworld
Blog: http://gregorybeamer.spaces.live.com

******************************************
| Think outside the box! |
******************************************
 
Back
Top