I have a public class MyShared.cs in App_Code. I am able to access the code in code behind by referencing MyShared.PrepareButton(ThisButton); but I don't know how to reference it from <asp:Button/> tag.
I would like to do something like <asp:Button OnPrerender="MyShared.PrepareButton"/>, but the compiler says the page does not contain a definition for MyShared.
I did include using MyShared; in the aspx.cs page
View Complete Post