Run at Server

vellaima

Well-known member
Joined
Jan 29, 2003
Messages
109
Can anyone please tell me the difference ASP Buttons and HTML Buttons?

Can the end user view the asp buttons. Does it means that validations are done in the server side?

Please do explain to me. Also i would like to know whether RegisterClientScriptBlock Method is used for client side scripting or else Msgbox will be displayed in Server.

- Vidhya
 
First you have to understand how ASP work at server site and relationship with client site. Actually ASP buttons in server site will generate HTML buttons in client site, so for client, there is no different.

The main different between server site control (ASP button) and client site control (HTML button) is one run in server, but later generate html code in client site and another one direct run in client.

Compare if you use server control and RegisterClientScriptBlock for client control is one run in server and it request client browser to do PostBack whatever event fire in server control. But for normal HTML control, you can handle those events with scripting languages like javascript, vbscript or jscript and it will definitely run in client site, no postback require.

So if possible, try to use the second method, you will find that client site process is much more faster than server site because server site process will base on Internet connection speed.
 
For msgbox, I suggest you try to avoid it, did you see Microsoft website, Yahoo, Hotmail... use msgbox? no, because it will make some trouble to end-user if you use "Back" button in browser.

Furthermore, Msgbox is only run in client site. As you understand, Msgbox is to display message for end-user and they wont sit in web server to watch your message... :)
 
Thanks for the reply bungpeng. I have understood the difference between ASP Controls and HTML Controls.

- Vidhya
 
Back
Top