C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




what is in-line code & code behind code?


Posted Date: 17 Aug 2006      Total Responses: 7

Posted By: sirishpyata       Member Level: Silver     Points: 2


hi guys
what is in-line code & code behind code?
what is autoeventwireup?




Responses

Author: Jaya prakash    17 Aug 2006Member Level: SilverRating:     Points: 2
inline code is one which is client code.and code behind code is server side code. when we give autopostback =true for any control then it automatically invoke server without any button click event etc..


Author: sugaprakash    18 Aug 2006Member Level: SilverRating:     Points: 2
In line coding is the client side code and code behind code is the server side code.... Autoeventwireup means to attach the server side events to the control like autopostback properties.


Author: Pankaj Mishra    18 Aug 2006Member Level: DiamondRating:     Points: 2
http://www.asp.net/QuickStart/aspnet/doc/pages/codebehind.aspx


Author: Skill bytes    18 Aug 2006Member Level: GoldRating:     Points: 2
Hai,

In-line code is code that is embedded directly within the ASP.NET page. Code-behind refers to code for your ASP.NET page that is contained within a separate class file. This allows a clean separation of your HTML from your presentation logic.

When we use Microsoft Visual Studio .NET to create ASP.NET Web Forms, code-behind pages are the default method. In addition, Visual Studio .NET automatically performs precompilation for us when we build our solution.

AutoEventWireup is a Boolean attribute that indicates whether the ASP.NET pages events are auto-wired.


The AutoEventWireup attribute may have a value of
true or false. When an ASP.NET Web Application is created by using Microsoft Visual Studio .NET, the value of the AutoEventWireup attribute is set as false.

We can specify the default value of the AutoEventWireup attribute in the following locations:
<UL>
<LI>The <I>Machine.config</I> file.
<LI>The <I>Web.config</I> file.
<LI>Individual Web Forms (<I>.aspx</I> files).
<LI>Web User Controls (<I>.ascx</I> files) </LI></UL>
<P>The value of the <CODE lang=aspnet>AutoEventWireup</CODE> attribute can be
declared in the <CODE><pages></CODE> section in the <I>Machine.config</I>
file or the <I>Web.config</I> file, as follows:</P><PRE lang=aspnet><configuration> <system.web> <pages autoEventWireup="true|false"
/> </system.web> </configuration></PRE>


Regards
Hari


Author: sourirajan saravanan    18 Aug 2006Member Level: GoldRating:     Points: 2
Difference between inline and code behind

i) Inline code is written along side the html in a page.

ii)Code-behind is code written in a separate file and referenced by the. aspx page.


Author: sourirajan saravanan    18 Aug 2006Member Level: GoldRating:     Points: 2
Code-Behind
===================
The principle of code-behind is to create a class for the code and inherit this class form the ASP.Net page object. [A Class that is accessed by an .aspx file, but resides in a separate file.]


Author: sourirajan saravanan    18 Aug 2006Member Level: GoldRating:     Points: 2
AutoEventWireup
===================
i) AutoEventWireup is an attribute in Page directive. It's a Boolean attribute, which indicates whether the asp.net pages events are auto-wired.

ii) AutoEventWireup will have a value true or false. By default its value is set to false.

iii)We can specify the default value of the AutoEventWireup attribute in the following locations:
- The Machine.config file.
- The Web.config file.
<configuration>
<system.web>
<pages autoEventWireup="true|false" />
</system.web>
</configuration>
- Individual Web Forms (.aspx files).
- Web User Controls (.ascx files)
<% @ Page AutoEventWireup="true" %>


Post Reply
You must Sign In to post a response.
Next : how to convert size of image in pixels into kilobytes
Previous : Getting error in insert
Return to Discussion Forum
Post New Message
Category: ASP.NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design

Help Desk

Contact Us    Privacy Policy    Terms Of Use