Knowledge Walls
Gopal Rao
Mumbai, Maharashtra, India
Passcode:
How to call javascript function on button click in asp.net
6245 Views
Introduction 
Page.ClientScript.RegisterStartupScript is used to write java script in C#.

Reference Namespace dll is System.Web
Syntax
Page.ClientScript.RegisterStartupScript(this.GetType(), "ScriptName", "JavaScript", true);
Example
Page.ClientScript.RegisterStartupScript(this.GetType(), "PopupScript", "confirm('Hello World');", true);
Best Lessons of "Asp.net/Ado.net/C#.net(Dotnet)"
Top lessons which are viewed more times.
  Copyright © 2014 Knowledge walls, All rights reserved
KnowledgeWalls
keep your tutorials and learnings with KnowledgeWalls. Don't lose your learnings hereafter. Save and revise it whenever required.
Click here for more details