what is the difference between serverside control & clientside control in asp.net 2010

Posted by Johnseelan under ASP.NET on 9/13/2012 | Points: 10 | Views : 16188 | Status : [Member] | Replies : 5
what is the difference between server side control & client side control in asp.net 2010




Responses

Posted by: Prtkaggrwl on: 9/13/2012 [Member] Starter | Points: 25

Up
0
Down
Controls Having runat="server" attribute are serverside
Eg:
Client Side: <div id="div1"></div>

Server Side: <div id="div1" runat="server"></div>

Client Side controls are not "directly" accessible on code behind. You can access them with other methods
Server Side Controls can be directly accessible from code behind

Johnseelan, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Hariinakoti on: 9/13/2012 [Member] Starter | Points: 25

Up
0
Down
Server-side controls like ASP:Calendar, ASP:Textbox and any other ASP-prefixed control execute on ASP platform, on the Server.

Client-side control are the typical HTML textboxes, textareas, etc. because those controls are rendered (and its Javascript code is executed) in the user's browser.

Thanks & Regards
Hari

Johnseelan, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Hariinakoti on: 9/13/2012 [Member] Starter | Points: 25

Up
0
Down
hi John,
If you found correct answer u can click on Mark As Answer please.

Thanks & Regards
Hari

Johnseelan, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Muhsinathk on: 9/13/2012 [Member] Bronze | Points: 25

Up
0
Down
Client side
1)Client side refers to the browser which is viewing the web page delivered by the server. This is HTML and Javascript, maybe Shockwave flash, maybe Silverlight.
2) Request the page, receive the page from the server, then display the HTML and process the Javascript.
3)The client side validation can be done using the Javascript or vb script.
4)Client side validation is processed the client side before submitting the form. The advantage of using the client side validation is it reduces the netork trafiic since the validation is processed in the client machine itself.

Server side
1)Server side refers to the application on the web server which delivers the web page content.
2)Create and deliver the HTML and Javascript
3)login and password must be validate at server side.

Johnseelan, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Muhsinathk on: 9/14/2012 [Member] Bronze | Points: 25

Up
0
Down
Mark as Answer if it helpful to you..That helps other who search the same...

Johnseelan, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response