简体   繁体   中英

Event wont fire Custom property, EPiServer

For some reason my button wont fire the click-event.. As for now I only have an asp:button with the runat,OnClick and Id attributes.. I have checked a few times that the name of the event is the same as the value of the OnClick attribute.. It does how ever fire the Page_Load event..

Any ideas?

Is your method name ButtonId_Click ?

If it's not, make sure you have set AutoEventWireup="false" in your page declaration.

Page_Load is triggered on each page load/postback. So, it will fire for any submit button.

Can you post your HTML as well as your event handler in code-behind?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM