Dynamically Build a Server Side Button Object
Posted on 2009-05-12
I've built an application that gets information from a database and dynamically displays controls
in asp.net pages. The application is used to build surveys. The users create their surveys using objects such as textboxes, dropdowns, radio buttons. I'm using an HTMLGenericControl with a divcontainer to hold the objects. When the app runs the divcontainer displays the survey. Everything works so far but I'm having a problem building a server side button object that will work the same way. The only button object I've been able to create so far has an OnClientClick method but no OnClick method. Does anyone know how to build a server side button object?