I have an aspx page with a button on it. When the user clicks on a button, i have to run some c# code in a seperate .cs file. What is the way to do this? Currently i have a way of using form.action to forward the request to another aspx page but is there a way to run c # code upon a button press?
Thanks
Use event handlers
Ex:
Code behind: