Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
10-09-2012, 02:38 AM #1
- Join Date
- Oct 2012
- Thanked 0 Times in 0 Posts
Function SaveDocument As Boolean Response.Write("You call me") End Function
Last edited by gimomars; 10-09-2012 at 03:08 AM.
10-09-2012, 09:13 PM #2
ASP.NET is running on the server, maybe in a computer room in Sydney, Australia.
How can you expect the browser to magically be able to reach across the ocean and get ASP.NET to do something?
The *ONLY* way to cause ASP.NET code (or ANY server-side code) to do anything is to make an HTTP request. Especially in the case of ASP.NET code, that pretty much means that you must post the <form> *back* to the server.
Now, you *could* use JavaScipt to invoke the "click" of some ASP.NET-generated button, but to do that you would have to first look at what ASP.NET actually is generating for that button.
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.