| Author: Jaya prakash 17 Aug 2006 | Member Level: Silver | Rating: 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 2006 | Member Level: Silver | Rating: 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 2006 | Member Level: Diamond | Rating: Points: 2 |
http://www.asp.net/QuickStart/aspnet/doc/pages/codebehind.aspx
|
| Author: Skill bytes 18 Aug 2006 | Member Level: Gold | Rating: 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 2006 | Member Level: Gold | Rating: 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 2006 | Member Level: Gold | Rating: 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 2006 | Member Level: Gold | Rating: 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" %>
|