code is found in a Code-Behind class

Posted by Saranya Boopathi under ASP.NET on 6/26/2013 | Points: 10 | Views : 2863 | Status : [Member] | Replies : 2
What type of code (server or client) is found in a Code-Behind class?

Saranya Boopathi


Responses

Posted by: Satyapriyanayak on: 6/27/2013 [Member] [MVP] Silver | Points: 25

Up
0
Down
Server-side code since code-behind is executed on the server. However, during the code-behind's execution on the server, it can render client-side code such as JavaScript to be processed in the clients browser. But just to be clear, code-behind executes on the server, thus making it server-side code.

If this post helps you mark it as answer
Thanks

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

Posted by: perfectchourasia-9163 on: 6/27/2013 [Member] Starter | Points: 25

Up
0
Down
Code Behind - Means simply a code which run on Server .
And Other One That is Cient Side the code run on browser it does go any where due to this it is termed as client side.

// Code Behind Page Example
public partial class _Default : themeclass
{
protected void Page_Load(object sender, EventArgs e)
{

// Any Code run here
}
}

ER sandeep chourasia
sandeepchrs@yahoo.com (on facebook)
http://www.aspnetcodes.com/

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

Login to post response