Call Javascript from code behind
ASP.NET
2
Posts
2
Posters
0
Views
1
Watching
-
Is it possble to call JavaScript function in code behind file? If yes, how to achive that? :confused::confused::confused:
-
Is it possble to call JavaScript function in code behind file? If yes, how to achive that? :confused::confused::confused:
Actually, there are a lot of ways to achieve this depend on your need. For example ~ #1. Calling js function in button click button1.Attribute.Add("onclick", "functionName();"); #2. Invoking js function Reponse.Write("alert('a');");
Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you. :)