PDA

View Full Version : Web Designing



jonathanp198
08-18-2011, 09:33 AM
We can design the asp.net web application by using Visual Studio.
There are following ways of creating web application using vs .net.
1. We can create it as HTTP,so that the application can be saved as virtual directory within IIS server.
2. We can create and store it as file system within any logical drive.
3. Two pages are created by default
Default.aspx
Web.config
Web.config is a secured file which cannot be accessed in browsers.
Web.config file is mainly required to give some application settings.
ASP.net web pages are mainly designed by using various web controls.
ASP.NET Web Controls:-
Basic Controls (e.g.<asp:Button1>,<asp:Label1>.etc)
HTML Controls (e.g.<input label1>)
Data Controls
Rich Controls
Ajax Controls
Login Controls
Validation Controls
Asp.Net controls are known as POSTBACK Controls
POSTBACK:-Every time page is displayed, on click it sends back the request again back to the server.
Button,Textbox,Calender are also some of the default post back true controls.
In Asp.net whenever the postback from any asp.net control,by default the page_load() is executed.
e.g.
public partial class_Default : System.Web.UI.Page
{
Protected void Page_Load(object sender, EventArgs e)
{
Response.Write(DateTime.Now.ToString());
}
}