How can I call a Sub from within a Javascript Function<BR><BR>I have an aspbutton where I am calling A javascript function. In that Javascript function I need to call a sub, to get a value and then proceed with the function. How do I call this sub inside the Javascript Function<BR><BR>Thanx<BR><BR>You can't really call a server side sub from a client side script. You can however, call the postback and pass the call to the sub from your javascript code.