T
Trevor M. Lango
I would like to be able to have an html control that invokes some
arbitrary method.
I tried the following:
<input type="button" onclick="<% someMethod( ); %>">
Which generates the following code:
out.write("<input type=\"button\" onclick=\"");
someMethod( );
Which is not what I intended, as someMethod( ) gets called independetly
of the button being clicked.
Any ideas or suggestions?
arbitrary method.
I tried the following:
<input type="button" onclick="<% someMethod( ); %>">
Which generates the following code:
out.write("<input type=\"button\" onclick=\"");
someMethod( );
Which is not what I intended, as someMethod( ) gets called independetly
of the button being clicked.
Any ideas or suggestions?