c# - Why do ASP.Net events start with "On" -


say want use textchanged event on textbox. why event show in aspx file "ontextchanged"?

 <asp:textbox id="textbox1" runat="server"      ontextchanged="textbox1_textchanged"></asp:textbox> 

coming both wpf , winforms background, seems odd me. used seeing event names referred in same manner. happening in background change "ontextchanged" "textchanged".

i'm pretty sure it's convention. seems events don't start on overridable function does.

public event textchanged(sender object, e system.eventargs) 

vs

protected overridable sub ontextchanged(e system.eventargs) 

Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -