I have a dynamic asp.net web page in which I build html strings in vb.net and return them to the asp.net page.

I'm trying to add a control (specifically a button).
I am able to do this quite easily, but where i'm stuck is I do not know how to add a handler for the click event of this button.

here is the line of vb code that returns the html string.

Me.html = Me.html & "<button name=""b_ViewSearchOptions"" runat=""server"">View Search Options</button>"

the asp.net code would look like this..

<%=html%>

any help is greatly appreciated!