Hi!
No, thats not possible since server side code can be accessed "only" by
server side code. Click event at the client side cannot do so, and will need
to simulate a postback that will transfer control to the server and the
server code can then access the method.
--
Regards,
Gaurav Khanna
----------------------------------------------------------------------------
----------------
Microsoft MVP - .NET, MCSE Windows 2000/NT4, MCP+I
WinToolZone - Spelunking Microsoft Technologies
http://www.wintoolzone.com/
"Mr. Roboto" <ay****@yahoo.com> wrote in message
news:01****************************@phx.gbl...
for simplicity sake, i have this servers-side code:
<script language="VB" runat="server">
Sub Clear()
txtMessage.Value = ""
Calendar1.SelectedDates.Clear()
End Sub
</script>
i also have a regular html button tag.
<input type="button" value="OK" id="b1" onclick="Clear;">
is there a way i can access the server-side asp. net
function Clear() by clicking the button?