What is the benefit of calling function, method in .aspx page instead of .cs file asp.netHi ! i am new in web programming.i have noticed that we can call a method or function by double clicking a button in .cs file in asp.net.but we can also call any function without double clicking in .aspx page. using on click function.
we also insert,update,delete or load data using sqldatasource control in .aspx page.but we can also write same statement by writting code in .cs file.
bu what is the benefit between this two way.
thanks to all.