Onclick not firing
- by user320588
I have a set of buttons on my master page (I have attached the code below) but no onclick event is being raised. I pulled the final page source and no onclick event was present. As you can see I tried a few different approaches to solve the problem. I am looking for a normal postback to the server but I am getting nothing when I click any of these buttons.
What am I not doing?
--Master
--Master Code Behind
Protected Sub Button_Command(ByVal sender As Object, ByVal e As CommandEventArgs) Handles btnCancel.Command, btnClear.Command
Session("ButtonClicked") = e.CommandArgument
End Sub
Protected Sub Button_Click(ByVal sender As Object, ByVal e As EventArgs) Handles btnSave.Click, btnSubmit.Click
Session("ButtonClicked") = CType(sender, Button).CommandArgument
End Sub
--Page Source