Posts

Showing posts from March, 2015

Call .Cs method on .Aspx Page

Call  .Cs method on .Aspx Page Step 1: Method on  .Cs page    public string GetFileName()         {             return "kandy" ;         } Step 2: Calling from .aspx Page     < script >         $(document).ready( function () {                        var Filename = ' <% = GetFileName() %> ' ;             debugger ;             alert(Filename);         });     </ script >