What you want to see on DotNetFunda.com ?
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 34990 |  Welcome, Guest!   Register  Login
 Home > Forums > ASP.NET > What is the difference between client side code & Server side code? ...
Theramkumar

What is the difference between client side code & Server side code?

Replies: 3 | Posted by: Theramkumar on 12/10/2009 | Category: ASP.NET Forums | Views: 2483 | Status: [Member]  


Hi, All...
Most of the time, I am confusing about this one...What is the difference between client side code & Server side code?...Normally while we are learning course what type of code will use?. Can any one give brief explaination about what is the funtion of these two type of codes?... Pls explain briefly...

T.RAM KUMAR


Reply | Reply with attachment | Alert Moderator

 Responses below this adGet hundreds of .NET Tips and Tricks videos

 Replies

Srinu0411
Srinu0411  
Posted on: 12/10/2009 10:00:45 AM
Level: Starter | Status: [Member]

the code you r writing in html page is called clint side code i.e(java script etc) which will execute in browser itself,will not goto server.

the code you r writing in default.cs page is called server side code
which willgo to server and get the information.

kaja srinivas

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

Chikul
Chikul  
Posted on: 12/11/2009 2:35:00 AM
Level: Bronze | Status: [Member]

Hi Theramkumar,

Server Side Code :
It is written in the .CS file for C# and .vb file for VB.Net
Server side code will always run on server side and create round trip on server in the response of request for any aspx page.
These will consume the servers memory.
server side code validate data to check whether sent data is correct or not.

Client Side Code :
It is a scripting language (JavaScriptpt or vb script) that can be included in the HTML Page or can contain in the Source File either .vb or .cs .
It runs on client's browser it does not create any round trip to the server.
e.g validation of controls dynamically hiding and displaying some of controls or there values etc.
The reason why we do client side validations is to save the to and from time taken for the request to go to the server and the response to get back to the browser.
Client side code validate the data before sending it to server.

Regards,
Chikul

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

Abhi2434
Abhi2434  
Posted on: 12/11/2009 3:06:08 AM
Level: Silver | Status: [Member] [Microsoft_MVP] [MVP]

In one word... Everything that comes to the client is Client Side, and Everything that runs while creating the Response is Server Side.

Javascript is client side code which directly sent to the browser, and you can see it using View-Source of the browser. On the other hand, .NET languages are in the server side, resides in the server and you cant find them using view - source of the browser.

www.abhisheksur.com

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

Reply - Please login to reply


Click here to login & reply

About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/22/2013 9:08:03 AM