Call JS Function In C#
With a Web application, javascript and jquery functions play an important role when we want to send values to the server side.
This article will discuss in the Asp.net Web application how calls JavaScript/Jquery Functions on the server side.
For this, we must create WebForms in Visual Studio, which is supported by .Net framework 4.5.
We can call the javascript function in c# by using the RegisterStartupScript method in ScriptManager and ClientScript class from the System. Web. UI namespace. But both classes can be accessed from WebForms only, not by normal classes, which means .aspx pages.
By using ScriptManager class,
By using ClientScript class,
By using param,
JS Function,
0 comments:
Post a Comment