: Response.Write("<p><input type=button value=SomeButton name=Button1></p>")
: Function DoSome()
: Response.Write("Function executed!")
: End Function
: How can I execute the DoSome function when Button1 is pressed?
You can't, at least not without reloading something from the server.
Remember how ASP works:
1. Client requests page from server
2. Sever reads ASP page, notices that it _is_ an ASP page, executes code inside <% %> tags.
3. Resulting HTML send to client.