User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 361,899 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,402 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 6619 | Replies: 6
Reply
Join Date: Jun 2005
Location: California
Posts: 92
Reputation: djbsabkcb is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
djbsabkcb's Avatar
djbsabkcb djbsabkcb is offline Offline
Junior Poster in Training

Help What is server and client side code?

  #1  
Jul 29th, 2005
What is server and client side code?
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Feb 2003
Location: Canada
Posts: 786
Reputation: Paladine has a spectacular aura about Paladine has a spectacular aura about Paladine has a spectacular aura about 
Rep Power: 9
Solved Threads: 26
Colleague
Paladine's Avatar
Paladine Paladine is offline Offline
Master Poster

Re: What is server and client side code?

  #2  
Jul 30th, 2005
Client Side: This is code/routines that are not processed at all by the server. Code is written in scripts (javascript usually) - plain text commands that instruct the client to do something. Generally used for performing dynamic effects, such as image rollovers, or displaying message boxes, or even validation of data entered into a form (i.e. email address is in the format of an email address ... contains the @ symbol).

Server Side This is code/routines executed only on the server. Code can be written in scripts as well (vbscript usually), but in the case of ASP.Net this is the compiled lanuages like C# / VB.Net. Used for processing content and returning data.

i.e.
You call up a webpage and a message box appears saying Welcome to "my site". This is client side. It did not require any request from the server to have that message box appear. That code was run on your computer/browser. But the page you requested displays a list of movies playing in your town. That list was populated/retrieved through a call to the Database (located at the City movie repository...or whatever) i.e. the server to retrieve that data for your town.

Hope that helps.
Assistant Manager, Regional Pharmacy Information Systems
TLC Services Website (Under Construction)
Updated : ASP.Net Login Code
Reply With Quote  
Join Date: Feb 2002
Location: Lawn Guylen, NY
Posts: 10,866
Reputation: cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice 
Rep Power: 32
Solved Threads: 107
Admin
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb

Re: What is server and client side code?

  #3  
Jul 30th, 2005
Server side is code executed by the web server. Client side is code executed by the web browser of the person viewing the site. JavaScript and HTML are examples of client-side markup.
Reply With Quote  
Join Date: Feb 2005
Posts: 175
Reputation: Letscode is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 5
Letscode's Avatar
Letscode Letscode is offline Offline
Junior Poster

Re: What is server and client side code?

  #4  
Jul 30th, 2005
Open your ASP.NET Project,
You'll have two mode,
1.HTML
2.Design

a.Click the HTML,
You'll see HTML and Javascript code.You can code the client side codes there.Its executed on the Client browser.

b.Now come back to Design View and double click design window,Now you be in Code behind(Webform1.aspx.vb),this is server side code.

Now execute your project,Hit F5 and a Internet explorer will be loaded,right click on the Internet Explorer and choose VIEW SOURCE.

You can see how similar your HTML code in you notepad looks when you compare it with HTML code in step a.

I thought I'll give you a practical explanation which will help you understand more.

Hope it helps
Save White Tiger
Reply With Quote  
Join Date: Dec 2004
Posts: 1,589
Reputation: tgreer is an unknown quantity at this point 
Rep Power: 7
Solved Threads: 34
Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: What is server and client side code?

  #5  
Aug 1st, 2005
Letscode: that isn't quite right. The "HTML" view in the VS.NET IDE isn't really HTML. It's ASP.NET code, or "aspx" code. Here you'll find the declaratives used by ASP.NET, along with the code-behind, to generate HTML. In other words, this isn't client-side code. What you see is still processed by the server.
Reply With Quote  
Join Date: Feb 2005
Posts: 175
Reputation: Letscode is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 5
Letscode's Avatar
Letscode Letscode is offline Offline
Junior Poster

Re: What is server and client side code?

  #6  
Aug 2nd, 2005
The HTML View was rather misleading when people say client script is written in Javacript and HTML.

YES you are right tgeer.The HTML view present in VS is NOT client side scripting.

My apologies for typing something wrong,Thats not my intension.

The HTML view has an HTML format BUT its not exactly the client side code.

ASP.NET generates the client side code for that current project. .

ASP.Net also does some fancy stuff like adding an hidden form field to a WebForm, called "__VIEWSTATE" to maintain state.
Save White Tiger
Reply With Quote  
Join Date: Jun 2005
Location: California
Posts: 92
Reputation: djbsabkcb is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
djbsabkcb's Avatar
djbsabkcb djbsabkcb is offline Offline
Junior Poster in Training

Solution Re: What is server and client side code?

  #7  
Aug 2nd, 2005
Thanks for the responses. I have a better understanding of the differences between the two. :cheesy:
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb ASP.NET Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the ASP.NET Forum

All times are GMT -4. The time now is 8:39 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC