Introduction
ASP is stand for Active Server Page. ASP.NET is
a technology for building powerful dynamic Web applications and is part of the
.NET Framework. Microsoft previous server side scripting technology ASP
(Active Server Pages) is now often called classic ASP. Microsoft ASP.NET is a
free technology that allows programmers to create dynamic web applications.
ASP.NET can be used to create anything from small, personal websites through to
large enterprise class web applications. ASP 3.0 was the last version of classic
ASP. ASP.NET is the next generation ASP but it's not an upgraded version of ASP.
ASP.NET is an entirely new technology for server-side scripting. It was written
from the ground up and is not backward compatible with classic ASP. ASP.NET is
the major part of the Microsoft's .NET Framework. ASP.NET is a compiled .NET
based environment. you can author applications in any .NET compatible language
including Visual Basic .NET, C#, and JScript .NET. Additionally the entire .NET
Framework is available to any ASP.NET application. Developers can easily access
the benefits of these technologies which include the managed common language
run time environment, type safety, inheritance.
Feature of ASP.NET
- Master Pages, Themes, and Web Parts
- Standard controls for navigation
- Standard controls for security
- Roles, personalization, and
internationalization services
- Improved and simplified data access
controls
- Full support for XML standards like, XHTML,
XML, and WSDL.
- Improved compilation and deployment
(installation)
- Improved site management
- New and improved development tools
Example : Simple display the name in asp
.net.
Code : Write a code on .aspx page.
<asp:TextBox
ID="TextBox1" runat="server"
BackColor="#66CCFF"></asp:TextBox><br
/>
<asp:TextBox
ID="TextBox2"
runat="server"
BackColor="#6699FF"></asp:TextBox><br
/>
<asp:TextBox
ID="TextBox3"
runat="server"
BackColor="#CC99FF"></asp:TextBox><br
/>
<asp:Button
ID="Button1"
runat="server"
Text="Button"
BackColor="#6666FF"
onclick="Button1_Click"
/>
Code :
Write a code on button click event.
using
System;
using
System.Collections.Generic;
using
System.Linq;
using System.Web;
using
System.Web.UI;
using
System.Web.UI.WebControls;
namespace
WebApplication3
{
public partial
class _Default
: System.Web.UI.Page
{
int i, j;
protected void
Button1_Click(object sender,
EventArgs e)
{
int i =
Convert.ToInt32(TextBox1.Text);
int j =
Convert.ToInt32(TextBox2.Text);
TextBox3.Text = (i + j).ToString();
}
}
}
Output:
