: <%
: 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.
All of the processing of VBScript happens _before_ the page is sent to the client. The only real way you're going to be able to have the client's machine execute any sort of code (without going through the server) is to write it up as Javascript.
That said, there's a lot you can do in Javascript. If you have a specific (small) example of what you're trying to do, that might help.