I have a form with a button declared as
Protected WithEvents MyButton As System.Web.UI.HtmlControls.HtmlInputButton
In my code behind page how do I capture the fact that it has been clicked in sub page_load()?
I know you can have a dedicated function that handles the logic behind when the button is clicked ie
public sub btn_click()handles MyButton.ServerClick
....
end sub
but I need to know if it has been clicked in sub page_load(), I have tried if(MyButton.ServerClick)then ... which does not work
Protected WithEvents MyButton As System.Web.UI.HtmlControls.HtmlInputButton
In my code behind page how do I capture the fact that it has been clicked in sub page_load()?
I know you can have a dedicated function that handles the logic behind when the button is clicked ie
public sub btn_click()handles MyButton.ServerClick
....
end sub
but I need to know if it has been clicked in sub page_load(), I have tried if(MyButton.ServerClick)then ... which does not work