First ASP.NET Program
Previous | Home | Next |
Asp.net is a web development tool,developed by Microsoft.It is different to ASP(Active Server Page).NET framework Provide environment to Develop and deploy Web Application.
AutoEventWireup:: It is attribute of page,Two values True & False.If true then the page framework call the events automaticaly.The methods Page_init,Page_load.If False then designer genrate explicit code to bind page event and method.
runat="server":: This attribute indicates that the form should be processed on the server.
Div Tag:: Used to group block-elements to format them with styles.
Design Code:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Hello.aspx.cs" Inherits="_Default" %>
.CS Code:
using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Xml.Linq; public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void Show_Click(object sender, EventArgs e) {
ShowData.Text = "Hello"; } }
Previous | Home | Next |