Onclick not firing

Posted by user320588 on Stack Overflow See other posts from Stack Overflow or by user320588
Published on 2010-04-19T17:21:14Z Indexed on 2010/04/19 17:23 UTC
Read the original article Hit count: 307

Filed under:
|
|
|

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

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about event-handling