ASP.
NET is an open-source server-side web application framework
designed for web development to produce dynamic web pages. It was
developed by Microsoft to allow programmers to build dynamic web sites,
web applications and web services.
webpage
A document which can be displayed in a web browser such as Firefox,
Google Chrome, Microsoft Internet Explorer or Edge, or Apple's Safari. These
are also often called "web pages" or just "pages."
Web browser is a client, program, software or tool through
which we sent HTTP request to web server.
Microsoft Internet Explorer, Mozilla Firefox, Safari, Opera and
Google Chrome are examples of web browser and they are more
advanced than earlier web browser they are capable to
understand the HTML, JavaScript, AJAX, etc. Now a days, web
browser for mobiles are also available, which are called
microbrowser
website
A collection of webpages which are grouped together and usually connected
together in various ways. Often called a "web site" or simply a "site."
web server
A computer that hosts a website on the Internet. Web hosting is a
function provided by a specific type of server – a web server. A web host
may run one web server that provides many customers' websites.
There are other kinds of servers that do not provide web hosting. For
example, there are email servers, file servers, gaming servers, and
database servers.
search engine
A website that helps you find other webpages, such as Google, Bing, or
Yahoo.
Webpage
A webpage is a simple document displayable by a browser. Such document is
written in the HTML language (which we look into in more detail in other articles). A
webpage can embed a variety of different types of resources such as:
style information — controlling a page's look-and-feel
scripts — which add interactivity to the page
media — images, sounds, and videos.
Note: Browsers can also display other documents such as PDF files or images, but the
term webpage specifically refers to HTML documents. Otherwise we only use the
term document.
[Link] is a web development platform, which provides a programming
model
[Link] is a technology ,it is collectin of rules to communicate\
[Link] works on top of the HTTP protocol, and uses the HTTP commands
and policies to set a browser-to-server bilateral communication and
cooperation
The [Link] application codes can be written in any of the following
languages:
C#
Visual [Link]
Jscript
J#
[Link] is a framework for developing dynamic web
applications. It supports languages like [Link], C#,
[Link], etc. The programing logic and content can be
developed separately in [Link]. This tutorial covers some
important aspect of [Link] like reusable code, deploying
the .net application on the server, testing web application,
debugging and so on.
Postback is actually sending all the information from client to web
server, then web server process all those contents and returns back
to the client
Postback in an event that is triggered when a action is performed by a contol on a [Link]
page. for eg. when you click on a button the data on the page is posted back to the server
for processing.
Is Postback is normally used on page _load event to detect if the page is getting generated
due to postback requested by a control on the page or if the page is getting loaded for the
first time.
Control Default Event
AdRotator AdCreated
BulletedList Click
Button Click
Calender SelectionChanged
CheckBox CheckedChanged
CheckBoxList SelectedIndexChanged
DataGrid SelectedIndexChanged
DataList SelectedIndexChanged
DropDownList SelectedIndexChanged
HyperLink Click
ImageButton Click
ImageMap Click
LinkButton Click
ListBox SelectedIndexChanged
Menu MenuItemClick
RadioButton CheckedChanged
RadioButtonList SelectedIndexChanged
Drop down list example
protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
{
switch ([Link])
{
case 1: [Link]("C++");
[Link]("visual basic");
[Link]("java");
break;
case 2: [Link]("c#.net");
[Link]("visual [Link]");
[Link]("[Link]");
break;
case 3: [Link]("C++");
[Link]("visual basic");
[Link]("java");
break;
}
}
Checkboxes and Radiobuttons
Check boxes –among check boxes user can select more than one
checkbox
Rbtn-among the all Rbtns with in a group user can select only one
Rbtn.
Grouping name can be implemented using Groupname property
protected void Button1_Click1(object sender, EventArgs e)
{
int rent, cost = 0;
string name;
name = [Link];
if ([Link])
rent = 1000;
else
rent = 500;
if ([Link])
{
rent = rent + 100;
cost = rent;
}
if ([Link])
cost = rent + 300;
[Link] = name + " " + [Link]();
}
Validation Controls:
protected void Button1_Click(object sender, EventArgs e)
{
string un, pwd, rpwd, email, ph;
un = [Link];
pwd = [Link];
rpwd = [Link];
email = [Link];
ph = [Link];
[Link] = "username=" + un + " " + "password" + pwd + " " + "rtuype pwd" +
rpwd + " " + "emailid" + email+" "+ph;
}
Calendar
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
[Link] = false;
}
}
protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
{
if ([Link])
{
[Link] = false;
}
else
[Link] = true;
}
protected void Calendar2_SelectionChanged(object sender, EventArgs e)
{
[Link] = [Link]();
[Link] = false;
}
Output
Checkbox
protected void Page_Load(object sender, EventArgs e)
{
}
protected void CheckBoxList1_SelectedIndexChanged(object sender, EventArgs e)
{
[Link]();
foreach (ListItem li in [Link])
{
if ([Link])
{
[Link]([Link]);
}
}
Output
File Upload
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button1_Click(object sender, EventArgs e)
{
if ([Link])
{
[Link]([Link]("~/files/" + [Link]));
[Link] = "file uploaded";
}
else
[Link] = "not uploaded";
}
Output