What is server and client side code?
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.
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.
Open your ASP.NET Project,
You'll have two mode,
a.Click the HTML,
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
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.
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.
Thanks for the responses. I have a better understanding of the differences between the two. :cheesy:
thanks.. now iam very clear about it..
Ladies & Gentle Men Programmers!
If you add the following anonymous web proxy url prior to your chosen URL then you can view that URL anonymously via the http://anonymouse.org web proxy: Anonymouse.org[^]
For example, if you want to view ebay.com then you'd view it anonymously via this url:
I am currently creating a simulation of a pizza ordering system in object oriented program. I have some question. the instruction and guideline is long but I will try and cut it down a lot. the instruction is to create a program that simulate a pizza restaurant using ...
Hi Everyone - I keep getting the following error messages in my log file
[19-Jan-2017 22:16:46 UTC] PHP Notice: Use of undefined constant CURLOPT_httpsHEADER - assumed 'CURLOPT_httpsHEADER'
on line 22
[19-Jan-2017 22:16:46 UTC] PHP Warning: curl_setopt() expects parameter 2 to be long, string given
on line 22
This is the ...