tag:blogger.com,1999:blog-19315523546907578772024-03-18T20:09:05.856-07:00About To LearnFor Basic KnowledgeAnonymoushttp://www.blogger.com/profile/15622205780426293655noreply@blogger.comBlogger20125tag:blogger.com,1999:blog-1931552354690757877.post-13678709930764967472016-04-01T02:20:00.000-07:002016-04-01T02:20:03.606-07:00ADO.NET :: Classes for holding data<div dir="ltr" style="text-align: left;" trbidi="on">
<div align="LEFT" style="margin-bottom: 0in;">
<span style="font-family: Verdana, sans-serif; font-size: large;"><b>Classes
for holding data</b></span></div>
<div align="LEFT" style="margin-bottom: 0in;">
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div align="LEFT" style="margin-bottom: 0in;">
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div align="LEFT" style="margin-bottom: 0in;">
<span style="font-family: Verdana, sans-serif;">The
following are the main classes used to hold data in Ado.NET:</span></div>
<div align="LEFT" style="margin-bottom: 0in;">
</div>
<ul>
<li><b style="font-family: Verdana, sans-serif;">DataSet</b></li>
<li><b style="font-family: Verdana, sans-serif;">DataTable</b></li>
<li><b style="font-family: Verdana, sans-serif;">DataRow</b></li>
</ul>
<br />
<div align="LEFT" style="margin-bottom: 0in;">
<span style="font-size: x-small;"><span style="font-family: Verdana, sans-serif; font-size: small;"><br /></span></span></div>
<div align="LEFT" style="margin-bottom: 0in;">
</div>
<ul>
<li><span style="font-family: Verdana, sans-serif;">A
DataSet is an in-memory representation of the database.</span></li>
<li><span style="font-family: Verdana, sans-serif;">DataSet
contains DataTables (and more...)</span></li>
<li><span style="font-family: Verdana, sans-serif;">DataTable
represents a database table</span></li>
<li><span style="font-family: Verdana, sans-serif;">DataTable
contains DataRows (and more...)</span></li>
<li><span style="font-family: Verdana, sans-serif;">A
DataRow represents a record in a database table.</span></li>
<li><span style="font-family: Verdana, sans-serif;">DataRow
is a collection of all fields in a record.</span></li>
</ul>
<br />
<div align="LEFT" style="margin-bottom: 0in;">
<span style="font-family: Verdana, sans-serif;">We
can use the <b>DataAdapter</b> or <b>DataReader</b> to populate data in <b>DataSet</b>.
Once we populate data </span><span style="font-family: Verdana, sans-serif;">from
database, we can loop through all Tables in the DataSet and through
each record in each </span><span style="font-family: Verdana, sans-serif;">Table.</span></div>
<div align="LEFT" style="margin-bottom: 0in;">
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div align="LEFT" style="margin-bottom: 0in;">
<span style="font-family: Verdana, sans-serif;">On
the first look, this may look bit confusing, but once you understand
the concept and get </span><span style="font-family: Verdana, sans-serif;">familiar
with the Ado.NET classes, you will appreciate the power and
flexibility of Ado.NET.</span></div>
</div>
Anonymoushttp://www.blogger.com/profile/15622205780426293655noreply@blogger.com0tag:blogger.com,1999:blog-1931552354690757877.post-19592253505216677842016-04-01T02:04:00.001-07:002016-04-01T02:04:09.573-07:00ADO.NET :: Classes for communicating with database<div dir="ltr" style="text-align: left;" trbidi="on">
<div align="LEFT" style="margin-bottom: 0in;">
<span style="font-family: Verdana, sans-serif; font-size: large;"><b>Classes
for communicating with database</b></span></div>
<div align="LEFT" style="margin-bottom: 0in;">
<span style="font-family: Verdana, sans-serif; font-size: large;"><b><br /></b></span></div>
<div align="LEFT" style="margin-bottom: 0in;">
<span style="font-family: Verdana, sans-serif; font-size: large;"><b><br /></b></span></div>
<div align="LEFT" style="margin-bottom: 0in;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"><span style="font-size: small;"><br /></span></span></div>
<div align="LEFT" style="margin-bottom: 0in;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"><span style="font-size: small;">The
</span><span style="font-size: small;"><b>Connection</b></span><span style="font-size: small;">,
</span><span style="font-size: small;"><b>Command</b></span><span style="font-size: small;">,
</span><span style="font-size: small;"><b>DataReader</b></span><span style="font-size: small;">,
and </span><span style="font-size: small;"><b>DataAdapter</b></span></span></div>
<div align="LEFT" style="margin-bottom: 0in;">
<span style="font-family: Verdana, sans-serif;">objects
are the core elements of the ADO.NET provider model.</span></div>
<div align="LEFT" style="margin-bottom: 0in;">
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div align="LEFT" style="margin-bottom: 0in;">
<span style="font-family: Verdana, sans-serif;"><br />
</span></div>
<table border="1" bordercolor="#000000" cellpadding="4" cellspacing="0" style="width: 100%px;">
<colgroup><col width="40*"></col>
<col width="110*"></col>
<col width="52*"></col>
<col width="54*"></col>
</colgroup><tbody>
<tr valign="TOP">
<td width="15%">
<div align="LEFT">
<span style="font-family: Verdana, sans-serif; font-size: small;"><b>Object</b></span></div>
</td>
<td width="43%">
<div align="LEFT">
<span style="font-family: Verdana, sans-serif; font-size: small;"><b>Description</b></span></div>
</td>
<td width="20%">
<div align="LEFT">
<span style="font-family: Verdana, sans-serif; font-size: small;"><b>SqlClient
Objects</b></span></div>
</td>
<td width="21%">
<div align="LEFT">
<span style="font-family: Verdana, sans-serif; font-size: small;"><b>OleDb
Objects</b></span></div>
</td>
</tr>
<tr valign="TOP">
<td width="15%">
<div align="LEFT">
<span style="font-size: x-small;"><span style="font-family: Verdana, sans-serif; font-size: small;"><b>Connection</b></span></span></div>
</td>
<td width="43%">
<div align="LEFT">
<span style="font-size: x-small;"><span style="font-family: Verdana, sans-serif; font-size: small;">Establishes
a connection to a specific data source.</span></span></div>
</td>
<td width="20%">
<div align="LEFT">
<span style="font-family: Verdana, sans-serif;">SqlConnection</span></div>
</td>
<td width="21%">
<div align="LEFT">
<span style="font-family: Verdana, sans-serif;">OleDbConnection</span></div>
</td>
</tr>
<tr valign="TOP">
<td width="15%">
<div align="LEFT">
<span style="font-size: x-small;"><span style="font-family: Verdana, sans-serif; font-size: small;"><b>Command</b></span></span></div>
</td>
<td width="43%">
<div align="LEFT">
<span style="font-size: x-small;"><span style="font-family: Verdana, sans-serif; font-size: small;">Executes
a command against a data source.</span></span></div>
</td>
<td width="20%">
<div align="LEFT">
<span style="font-size: x-small;"><span style="font-family: Verdana, sans-serif; font-size: small;">SqlCommand</span></span></div>
</td>
<td width="21%">
<div align="LEFT">
<span style="font-size: x-small;"><span style="font-family: Verdana, sans-serif; font-size: small;">OleDbCommand</span></span></div>
</td>
</tr>
<tr valign="TOP">
<td width="15%">
<div align="LEFT">
<span style="font-size: x-small;"><span style="font-family: Verdana, sans-serif; font-size: small;"><b>DataReader</b></span></span></div>
</td>
<td width="43%">
<div align="LEFT">
<span style="font-size: x-small;"><span style="font-family: Verdana, sans-serif; font-size: small;">Reads
a forward-only, read-only stream of data from a data source.</span></span></div>
</td>
<td width="20%">
<div align="LEFT">
<span style="font-family: Verdana, sans-serif;">SqlDataReader</span></div>
</td>
<td width="21%">
<div align="LEFT">
<span style="font-family: Verdana, sans-serif;">OleDbDataReader</span></div>
</td>
</tr>
<tr valign="TOP">
<td width="15%">
<div align="LEFT">
<span style="font-size: x-small;"><span style="font-family: Verdana, sans-serif; font-size: small;"><b>DataAdapter</b></span></span></div>
</td>
<td width="43%">
<div align="LEFT">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"><span style="font-size: small;">Populates
a </span><span style="font-size: small;"><b>DataSet </b></span><span style="font-size: small;">and
resolves updates with the data source.</span></span></div>
</td>
<td width="20%">
<div align="LEFT">
<span style="font-family: Verdana, sans-serif;">SqlDataAdapter</span></div>
</td>
<td width="21%">
<div align="LEFT">
<span style="font-family: Verdana, sans-serif;">OleDbDataAdapter</span></div>
</td>
</tr>
</tbody></table>
<div align="LEFT" style="margin-bottom: 0in;">
<span style="font-family: Verdana, sans-serif;"><br />
</span></div>
<div align="LEFT" style="margin-bottom: 0in;">
</div>
<div align="LEFT" style="margin-bottom: 0in;">
<span style="font-family: Verdana, sans-serif;">Each
provider may have classes equivalent to above objects. The name of
the classes vary </span><span style="font-family: Verdana, sans-serif;">slightly
to represent the provider type appropriately.</span></div>
<div align="LEFT" style="margin-bottom: 0in;">
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div align="LEFT" style="margin-bottom: 0in;">
<span style="font-family: Verdana, sans-serif;">Depending
on the type of database you work on, you will have to choose either
OleDb or </span><span style="font-family: Verdana, sans-serif;">SqlClient
(or, some other provider) objects. Since all our samples use MS
Access database, we </span><span style="font-family: Verdana, sans-serif;">will
be using OleDb objects in all the samples. If you like to use
SqlServer, you just need to </span><span style="font-family: Verdana, sans-serif;">replace
the OleDb objects with the equivalent SqlClient objects.</span></div>
</div>
Anonymoushttp://www.blogger.com/profile/15622205780426293655noreply@blogger.com0tag:blogger.com,1999:blog-1931552354690757877.post-11714545491534273842016-04-01T01:53:00.000-07:002016-04-01T01:53:02.332-07:00ADO.NET :: ADO.NET and DataAccess Providers in .NET<div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="text-align: left;">
<span style="font-family: Verdana, sans-serif;">ADO.NET</span></h2>
<span style="font-family: Verdana, sans-serif;">ADO.NET is the data access model that comes with the .NET Framework. ADO.NET provides </span><span style="font-family: Verdana, sans-serif;">the classes required to communicate with any database source (including Oracle, Sybase, </span><span style="font-family: Verdana, sans-serif;">Microsoft Access, Xml, and even text files).</span><br />
<h2 style="text-align: left;">
<span style="font-family: Verdana, sans-serif;">DataAccess Providers in .NET</span></h2>
<span style="font-family: Verdana, sans-serif;">ADO.NET comes with few providers, including:</span><br />
<br />
<ul style="text-align: left;">
<li><span style="font-family: Verdana, sans-serif;">OleDb</span></li>
<li><span style="font-family: Verdana, sans-serif;">SqlClient</span></li>
</ul>
<br />
<span style="font-family: Verdana, sans-serif;">There are other providers available, but we are not including them here as this tutorial is meant </span><span style="font-family: Verdana, sans-serif;">for beginners! When you want them, search for ADO.NET providers in Google or MSDN </span><span style="font-family: Verdana, sans-serif;">Microsoft made the SQL Server. So they gave a separate provider, specifically made for SQL </span><span style="font-family: Verdana, sans-serif;">Server. We can use the OleDb provider for all other database sources including MS Access, </span><span style="font-family: Verdana, sans-serif;">Oracle, Sybase etc. There is a separate provider available for Oracle.</span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<b><span style="font-family: Verdana, sans-serif;">A DATA PROVIDER is a set of classes that can be used to access, retrieve and manipulate </span><span style="font-family: Verdana, sans-serif;">data from the databases.</span></b><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;">Both OleDb and SqlClient has its own set of classes, but they have the same concepts. We would </span><span style="font-family: Verdana, sans-serif;">like to classify the classes into two broad categories (this is not a microsoft classification, </span><span style="font-family: Verdana, sans-serif;">anyway!)</span><br />
<br />
<ul style="text-align: left;">
<li><span style="font-family: Verdana, sans-serif;">Classes for communicate with database</span></li>
<li><span style="font-family: Verdana, sans-serif;">Classes for holding/manipulating data</span></li>
</ul>
<br />
<span style="font-family: Verdana, sans-serif;">The job of first category of classes is to communicate with database and send or <i>retrieve data </i></span><span style="font-family: Verdana, sans-serif;"><i>from the database</i>. The second category of the classes will be used as a carrier of data.</span></div>
Anonymoushttp://www.blogger.com/profile/15622205780426293655noreply@blogger.com0tag:blogger.com,1999:blog-1931552354690757877.post-67455664471314810582016-04-01T01:36:00.001-07:002016-04-01T01:36:10.739-07:00ADO.NET :: Database Concepts<div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="text-align: left;">
<span style="font-family: Verdana, sans-serif;">Database Concepts</span></h2>
<b><span style="font-family: Verdana, sans-serif;">Database is the media to store data. If you have an application that has to store and retrieve data, </span><span style="font-family: Verdana, sans-serif;">your application must be using a database.</span></b><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;">A File is the simplest form of saving the data in the disk, but is not the most efficient way of </span><span style="font-family: Verdana, sans-serif;">managing application data. A database is basically a collection of one or more files, but in a </span><span style="font-family: Verdana, sans-serif;">custom format, and data is organized in a specific format such a way that it can be retrieved and </span><span style="font-family: Verdana, sans-serif;">stored very efficiently.</span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;">Some <b>examples for databases</b> are :</span><br />
<br />
<ul style="text-align: left;">
<li><span style="font-family: Verdana, sans-serif;">MS Access</span></li>
<li><span style="font-family: Verdana, sans-serif;">SQL Server</span></li>
<li><span style="font-family: Verdana, sans-serif;">Oracle</span></li>
</ul>
<br />
<span style="font-family: Verdana, sans-serif;">MS Access is a very light weight database provided by Microsoft for applications with less </span><span style="font-family: Verdana, sans-serif;">number of users and relatively small quantity of data. MS Access saves data into database files </span><span style="font-family: Verdana, sans-serif;">with the extension .mdb. Usually, MS Access comes along with MS Office package. If you </span><span style="font-family: Verdana, sans-serif;">already have the .mdb database file, you can freely use it with your application and you do not </span><span style="font-family: Verdana, sans-serif;">need MS Access software. The MS Access software is required only if you want to directly open </span><span style="font-family: Verdana, sans-serif;">the database and manipulate the data or change the database schema.</span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;">SQL Server (Microsoft product) and Oracle (Oracle Corp.) are more complex, advanced, </span><span style="font-family: Verdana, sans-serif;">relational databases and they are much more expensive. It can support large number of users and </span><span style="font-family: Verdana, sans-serif;">very high quantity of data. If you are developing a software, which might be accessed </span><span style="font-family: Verdana, sans-serif;">simultaneously by 100s of users or if you expect your data may grow 100s of MBs, you might </span><span style="font-family: Verdana, sans-serif;">consider one of these. (We are learning Microsoft .NET.. so you might want to consider the SQL </span><span style="font-family: Verdana, sans-serif;">Server than Oracle, for which Microsoft provides special data access components!!)</span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<i><span style="font-family: Verdana, sans-serif;">In this tutorial, we will be using only MS Access for simplicity. Most of the samples provided in </span><span style="font-family: Verdana, sans-serif;">this site uses MS Access database for simplicity and easy download.</span></i></div>
Anonymoushttp://www.blogger.com/profile/15622205780426293655noreply@blogger.com0tag:blogger.com,1999:blog-1931552354690757877.post-21603561615067455452016-04-01T01:32:00.004-07:002016-04-01T01:32:57.212-07:00ADO.NET for Beginners<div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="text-align: center;">
<span style="font-family: Verdana, sans-serif; font-size: x-large;">ADO.NET for Beginners</span></h2>
<h2 style="text-align: left;">
<span style="font-family: Verdana, sans-serif;"><br /></span></h2>
<h2 style="text-align: left;">
<span style="font-family: Verdana, sans-serif;">Accessing Database</span></h2>
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;">Accessing database using ADO.NET in C# or VB.NET This tutorial will teach you Database </span><span style="font-family: Verdana, sans-serif;">concepts and ADO.NET in a very simple and easy-to-understand manner with many code </span><span style="font-family: Verdana, sans-serif;">snippets and samples. This is primarily meant for beginners and if you are looking for any </span><span style="font-family: Verdana, sans-serif;">advanced ADO.NET topics, this may not be the right page for you.</span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<h3 style="text-align: left;">
<span style="font-family: Verdana, sans-serif;">Topic Covered:</span></h3>
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
Anonymoushttp://www.blogger.com/profile/15622205780426293655noreply@blogger.com0tag:blogger.com,1999:blog-1931552354690757877.post-27706776449523831292016-03-31T02:26:00.001-07:002016-03-31T02:26:59.193-07:00How to Get File Name without Extension?<div dir="ltr" style="text-align: left;" trbidi="on">
<div dir="ltr" style="text-align: left;" trbidi="on">
<div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="text-align: left;">
<span style="font-family: "verdana" , sans-serif;">Here we discuss about how to get current page title name?</span></h2>
<span style="font-family: "verdana" , sans-serif;"><b><u>When we use below code:</u></b></span><br />
<span style="font-family: "verdana" , sans-serif;"><b><u><br />
</u></b></span> <br />
<pre style="background: #f0f0f0; border: 1px dashed #cccccc; color: black; font-family: "arial"; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; word-wrap: normal;"> protected void Page_Load(object sender, EventArgs e)
{
if (string.IsNullOrEmpty(Page.Title))
{
string path = Path.GetFileName(Request.Path);
}
}
</code></pre>
<br />
<h3 style="clear: both; text-align: left;">
Example:</h3>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuOAMUPUG8Y0BVVEhE6T3jc1BaPUdjpxNSmJ6UUKb9SF9aGD4jRfVQdQWhrWgUG9E83cQFLZPDzkDy2qNcKLUWKF-6d_8Iy2KT7T_pHfwq-gr54WPqgJoPZ7tQChP-oEpC0ddsigZ55Lk/s1600/Path.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuOAMUPUG8Y0BVVEhE6T3jc1BaPUdjpxNSmJ6UUKb9SF9aGD4jRfVQdQWhrWgUG9E83cQFLZPDzkDy2qNcKLUWKF-6d_8Iy2KT7T_pHfwq-gr54WPqgJoPZ7tQChP-oEpC0ddsigZ55Lk/s1600/Path.PNG" /></a></div>
<span style="font-family: "verdana" , sans-serif;"></span><br />
<a name='more'></a><span style="font-family: "verdana" , sans-serif;"><br />
</span> <span style="font-family: "verdana" , sans-serif;"><b><u><br /></u></b></span><br />
<span style="font-family: "verdana" , sans-serif;"><b><u>When you use this below code:</u></b></span><br />
<span style="font-family: "verdana" , sans-serif;"><b><u><br />
</u></b></span> </div>
<pre style="background: #f0f0f0; border: 1px dashed #cccccc; color: black; font-family: "arial"; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; word-wrap: normal;"> protected void Page_Load(object sender, EventArgs e)
{
if (string.IsNullOrEmpty(Page.Title))
{
//To get path as a string.
string path = Path.GetFileNameWithoutExtension(Request.Path);
//To get and set page title.
Page.Title = Path.GetFileNameWithoutExtension(Request.Path);
}
}
</code></pre>
</div>
<br />
<h3 style="clear: both;">
Example:</h3>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipxVVaOMHKA4B4oY82ioYEdQfZRwC_6itv2oMRL1CrNGiISFIt3TPKQte8SPYXGBvmv0alTcEHiQnv7ZiHFfnqQ94ANWaRl2juHl6l9E0P3TzALHIPi4UEb1Zm8YSTpTf1zjlD7E_SyjE/s1600/path1.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipxVVaOMHKA4B4oY82ioYEdQfZRwC_6itv2oMRL1CrNGiISFIt3TPKQte8SPYXGBvmv0alTcEHiQnv7ZiHFfnqQ94ANWaRl2juHl6l9E0P3TzALHIPi4UEb1Zm8YSTpTf1zjlD7E_SyjE/s1600/path1.PNG" /></a></div>
<div>
<br /></div>
</div>
Anonymoushttp://www.blogger.com/profile/15622205780426293655noreply@blogger.com0tag:blogger.com,1999:blog-1931552354690757877.post-29222092067635792022016-03-30T22:52:00.000-07:002016-03-30T22:52:36.330-07:00How to add a favicon images to your asp.net page? <div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="text-align: left;">
<span style="font-size: small;"><span style="font-family: "verdana" , sans-serif;">How to add a favicon </span></span><span style="font-family: verdana, sans-serif; font-size: small;">images</span><span style="font-family: verdana, sans-serif; font-size: small;"> </span><span style="font-family: verdana, sans-serif; font-size: small;"> to your asp.net page? </span></h2>
<h2 style="text-align: left;">
<span style="font-size: small;"><span style="font-family: "verdana" , sans-serif;">How can you add images to your asp.net title page?</span></span></h2>
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<br />
<div style="text-align: left;">
<span style="font-family: "verdana" , sans-serif;"><b>Step 1:</b> </span><span style="font-family: "verdana" , sans-serif;">Firstly convert your logo or image to favicon.ico. </span></div>
<span style="font-family: "verdana" , sans-serif;">This can be done as follows:</span><br />
<br />
<ul style="text-align: left;">
<li><span style="font-family: "verdana" , sans-serif;">Go to the link given below,</span></li>
</ul>
<span style="font-family: "verdana" , sans-serif;">http://favicon-generator.org/</span><br />
<ul style="text-align: left;">
<li><span style="font-family: "verdana" , sans-serif;">Choose your image, convert it to .ico.</span></li>
<li><span style="font-family: "verdana" , sans-serif;">Download your favicon.ico to your application directory.</span></li>
</ul>
<br />
<br />
<span style="font-family: "verdana" , sans-serif;"><b>Step 2:</b> Copy and paste this favicon.ico to image folder of project.</span><br />
<span style="font-family: "verdana" , sans-serif;"><b>Step 3:</b> Open Master page(SiteMaster).</span><br />
<span style="font-family: "verdana" , sans-serif;"><b>Step 4:</b> </span><span style="font-family: "verdana" , sans-serif;">Copy the below generated code to the head tag of your page</span><span style="font-family: "verdana" , sans-serif;">:</span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;"><link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" /></span><br />
<span style="font-family: "verdana" , sans-serif;"><link rel="icon" href="/favicon.ico" type="image/icon" /></span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;">Now, this will display your title icon the way u want.</span></div>
Anonymoushttp://www.blogger.com/profile/15622205780426293655noreply@blogger.com0tag:blogger.com,1999:blog-1931552354690757877.post-36025422361262878632016-02-03T01:24:00.003-08:002016-02-03T01:24:56.129-08:00Object Oriented Paradigm<div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="text-align: left;">
<span style="font-family: Verdana,sans-serif;"><span style="color: #073763;"><span style="font-size: x-large;">1.4 Object Oriented Paradigm</span></span></span></h2>
<span style="font-family: Verdana,sans-serif;">The major motivating factor in the invention of object-oriented approach is to remove some of the flaws encountered in the procedural approach. OOP treats data as a critical element in the program development and does not allow it to flow freely around the system. It ties data more closely to the function that operate on it, and protects it from accidental modification from outside function. OOP allows decomposition of a problem into a number of entities called objects and then builds data and function around these objects. The organization of data and function in object-oriented programs is shown in fig.1.3. <b>The data of an object can be accessed only by the function associated with that object.</b> However, <b>function of one object can access the function of other objects.</b></span><br />
<span style="font-family: Verdana,sans-serif;"><br /><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTqHIAY9dPUIk6HhE9w2S7OyArOlc7DpEdP2r8TizzLZ0WuZniEdd6QBFSXWKzO_ZvIS1CvI7jHz2Jp7wCS6pWKIzNwIVnJkh2-PyH-nQKVCXMu2VUUvQ-GXb6yGk8H7t5qDruoDy5_9w/s1600/Capture.PNG" imageanchor="1"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTqHIAY9dPUIk6HhE9w2S7OyArOlc7DpEdP2r8TizzLZ0WuZniEdd6QBFSXWKzO_ZvIS1CvI7jHz2Jp7wCS6pWKIzNwIVnJkh2-PyH-nQKVCXMu2VUUvQ-GXb6yGk8H7t5qDruoDy5_9w/s1600/Capture.PNG" /></a><br /> </span><br />
<span style="font-family: Verdana,sans-serif;">Some of the <b>features of object oriented programming are:</b></span><br />
<ul style="text-align: left;">
<li><b><span style="font-family: Verdana,sans-serif;">Emphasis is on data rather than procedure.</span></b></li>
<li><b><span style="font-family: Verdana,sans-serif;">Programs are divided into what are known as objects.</span></b></li>
<li><b><span style="font-family: Verdana,sans-serif;">Data structures are designed such that they characterize the objects.</span></b></li>
<li><b><span style="font-family: Verdana,sans-serif;">Functions that operate on the data of an object are ties together in the data structure.</span></b></li>
<li><b><span style="font-family: Verdana,sans-serif;">Data is hidden and cannot be accessed by external function.</span></b></li>
<li><b><span style="font-family: Verdana,sans-serif;">Objects may communicate with each other through function.</span></b></li>
<li><b><span style="font-family: Verdana,sans-serif;">New data and functions can be easily added whenever necessary.</span></b></li>
<li><b><span style="font-family: Verdana,sans-serif;">Follows bottom up approach in program design.</span></b></li>
</ul>
<span style="font-family: Verdana,sans-serif;">Object-oriented programming is the most recent concept among programming paradigms and still means different things to different people.</span></div>
Anonymoushttp://www.blogger.com/profile/15622205780426293655noreply@blogger.com0tag:blogger.com,1999:blog-1931552354690757877.post-35266199022255342752016-02-03T01:04:00.001-08:002016-02-03T01:04:13.253-08:00Procedure-Oriented Programming<div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="text-align: left;">
<span style="font-family: "verdana" , sans-serif;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1PCstDppewMhG0JiARDm6K_kRDmFnl1zQJyQWooNf6KrVEXQNZ_vKnNTpE8E3OVEFUwZ7d37B4sU5KnlrB2Lx2we97UB7dVxAvrNm1DkUr141uK04kfSlp2jnLOC-lfctSn6gpUPaXeU/s1600/Capture.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"></a><span style="font-size: x-large;"> </span></span></h2>
<h2 style="text-align: left;">
<span style="font-family: "verdana" , sans-serif; font-size: large;"><span style="font-size: large;">1.3 Procedure-Oriented Programming</span></span></h2>
<span style="font-family: "verdana" , sans-serif;">In this approach, the problem is viewed as the sequence of things to be done such as reading, calculating and printing such as cobol, fortran and c. The primary focus is on functions. <b>A typical structure for procedural programming is shown in fig.1.2.</b> The <b>technique of hierarchical decomposition has been used to specify the tasks to be completed for solving a problem.</b></span><br />
<span style="font-family: "verdana" , sans-serif;"><br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1PCstDppewMhG0JiARDm6K_kRDmFnl1zQJyQWooNf6KrVEXQNZ_vKnNTpE8E3OVEFUwZ7d37B4sU5KnlrB2Lx2we97UB7dVxAvrNm1DkUr141uK04kfSlp2jnLOC-lfctSn6gpUPaXeU/s1600/Capture.PNG" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="371" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1PCstDppewMhG0JiARDm6K_kRDmFnl1zQJyQWooNf6KrVEXQNZ_vKnNTpE8E3OVEFUwZ7d37B4sU5KnlrB2Lx2we97UB7dVxAvrNm1DkUr141uK04kfSlp2jnLOC-lfctSn6gpUPaXeU/s640/Capture.PNG" width="640" /></a><br />
</span><br />
<span style="font-family: "verdana" , sans-serif;">Procedure oriented programming<b>(POP) basically consists of writing a list of instructions for the computer to follow, and organizing these instructions into groups known as functions.</b> We normally use flowcharts to organize these actions and represent the flow of control from one action to another.</span><br />
<span style="font-family: "verdana" , sans-serif;"><br />
In a <b>multi-function program, many important data items are placed as global so that they may be accessed by all the functions. Each function may have its own local data.</b> Global data are more vulnerable to an inadvertent change by a function. <b>In a large program it is very difficult to identify what data is used by which function.</b> In case we need to revise an external data structure, we also need to revise all functions that access the data. This provides an opportunity for bugs to creep in.</span><br />
<span style="font-family: "verdana" , sans-serif;"><br />
<b>Another serious drawback</b> with the procedural approach is that <b>we do not model real world problems very well.</b> This is <b>because functions are action-oriented and do not really corresponding to the element of the problem.</b></span><br />
<span style="font-family: "verdana" , sans-serif;"><b> </b><br />
Some <b>Characteristics</b> exhibited by procedure-oriented programming are:</span><br />
<ul style="text-align: left;">
<li><b><span style="font-family: "verdana" , sans-serif;">Emphasis is on doing things (algorithms).</span></b></li>
<b>
</b>
<li><b><span style="font-family: "verdana" , sans-serif;">Large programs are divided into smaller programs known as functions.</span></b></li>
<b>
</b>
<li><b><span style="font-family: "verdana" , sans-serif;">Most of the functions share global data.</span></b></li>
<b>
</b>
<li><b><span style="font-family: "verdana" , sans-serif;">Data move openly around the system from function to function.</span></b></li>
<b>
</b>
<li><b><span style="font-family: "verdana" , sans-serif;">Functions transform data from one form to another.</span></b></li>
<b>
</b>
<li><b><span style="font-family: "verdana" , sans-serif;">Employs top-down approach in program design.</span></b></li>
</ul>
</div>
Anonymoushttp://www.blogger.com/profile/15622205780426293655noreply@blogger.com0tag:blogger.com,1999:blog-1931552354690757877.post-34504392434429453282016-01-28T02:22:00.002-08:002016-01-28T02:24:54.984-08:00Procedure-Oriented Programming<div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="text-align: left;">
<span style="color: #0b5394;"><span style="font-size: x-large;"><span style="font-family: Arial,Helvetica,sans-serif;">1.3 Procedure-Oriented Programming</span></span></span></h2>
<h2>
<span style="font-family: Arial,Helvetica,sans-serif;"></span></h2>
<br />
<span style="font-family: Arial,Helvetica,sans-serif;">In the procedure oriented approach, the problem is viewed as the sequence of things to be done such as reading, calculating and printing such as cobol, fortran and c. The primary focus is on functions. A typical structure for procedural programming is shown in fig.1.2. The technique of hierarchical decomposition has been used to specify the tasks to be completed for solving a problem.</span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"><br /></span>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-LOtyRTUWqFLs48b9KdhpRbYhMhsbi5-JQpKk5QRBC4o6wVUcn5VHFMqA5Y2jcFg8fR3jOMGdT1aZgdie-evRsGEcJITuqhRkagRMVIBA0q4WqL1bhKboFce0aQ0PTsxsdrAU0vNBM38/s1600/1.PNG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="371" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-LOtyRTUWqFLs48b9KdhpRbYhMhsbi5-JQpKk5QRBC4o6wVUcn5VHFMqA5Y2jcFg8fR3jOMGdT1aZgdie-evRsGEcJITuqhRkagRMVIBA0q4WqL1bhKboFce0aQ0PTsxsdrAU0vNBM38/s640/1.PNG" width="640" /></a><span style="font-family: Arial,Helvetica,sans-serif;"></span></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="font-family: Arial,Helvetica,sans-serif;"><b>Procedure oriented programming basically consists of writing a list of instructions for the computer to follow, and organizing these instructions into groups known as functions.</b> We normally use flowcharts to organize these actions and represent the flow of control from one action to another.<br /> </span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="font-family: Arial,Helvetica,sans-serif;">In a multi-function program, many important <b>data items are placed as global</b> <b>so that they may be accessed by all the functions</b>. Each <b>function may have its own local data</b>. Global data are more vulnerable to an inadvertent change by a function. <b>In a large program it is very difficult to identify what data is used by which function.</b> In case we need to revise an external data structure, we also need to revise all functions that access the data. This provides an opportunity for bugs to creep in.<br /> </span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="font-family: Arial,Helvetica,sans-serif;">Another serious drawback with the procedural approach is that we do not model real world problems very well. This is because functions are action-oriented and do not really corresponding to the element of the problem.<br /> </span></div>
<div class="separator" style="clear: both; text-align: left;">
<b><span style="font-family: Arial,Helvetica,sans-serif;">Some Characteristics exhibited by procedure-oriented programming are:</span></b></div>
<ul style="text-align: left;">
<li><b><span style="font-family: Arial,Helvetica,sans-serif;"> Emphasis is on doing things (algorithms).</span></b></li>
<li><b><span style="font-family: Arial,Helvetica,sans-serif;"> Large programs are divided into smaller programs known as functions.</span></b></li>
<li><b><span style="font-family: Arial,Helvetica,sans-serif;"> Most of the functions share global data.</span></b></li>
<li><b><span style="font-family: Arial,Helvetica,sans-serif;"> Data move openly around the system from function to function.</span></b></li>
<li><b><span style="font-family: Arial,Helvetica,sans-serif;"> Functions transform data from one form to another.</span></b></li>
<li><span style="font-family: Arial,Helvetica,sans-serif;"><b> Employs top-down approach in program design.</b> </span></li>
</ul>
<span style="font-family: Arial,Helvetica,sans-serif;"><br /></span></div>
Anonymoushttp://www.blogger.com/profile/15622205780426293655noreply@blogger.com0tag:blogger.com,1999:blog-1931552354690757877.post-63747410837515560242015-12-30T22:45:00.002-08:002016-01-20T22:57:50.693-08:00ASP.NET Applications and Configuration<div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="-webkit-text-stroke-width: 0px; background-color: white; color: #ff9900; font-family: 'Segoe UI', Arial, sans-serif; font-size: 29px; font-style: normal; font-variant: normal; font-weight: 200; letter-spacing: normal; line-height: normal; margin: 20px 0px 11px; orphans: auto; padding: 0px 0px 10px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
ASP.NET Applications and Configuration</h2>
<h2 style="-webkit-text-stroke-width: 0px; background-color: white; color: #ff9900; font-family: 'Segoe UI', Arial, sans-serif; font-size: 29px; font-style: normal; font-variant: normal; font-weight: 200; letter-spacing: normal; line-height: normal; margin: 20px 0px 11px; orphans: auto; padding: 0px 0px 10px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
Overview</h2>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: 'Segoe UI', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
Like ASP, ASP.NET encapsulates its entities within a web application. A web application is an abstract term for all the resources available within the confines of an IIS virtual directory. For example, a web application may consist of one or more ASP.NET pages, assemblies, web services configuration files, graphics, and more. In this section we explore two fundamental components of a web application, namely global application files (Global.asax) and configuration files (Web.config).</div>
<h3 style="-webkit-text-stroke-width: 0px; background-color: white; color: #ff9900; font-family: 'Segoe UI', Arial, sans-serif; font-size: 19px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
Global.asax</h3>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: 'Segoe UI', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
Global.asax is a file used to declare application-level events and objects. Global.asax is the ASP.NET extension of the ASP Global.asa file. Code to handle application events (such as the start and end of an application) reside in Global.asax. Such event code cannot reside in the ASP.NET page or web service code itself, since during the start or end of the application, its code has not yet been loaded (or unloaded). Global.asax is also used to declare data that is available across different application requests or across different browser sessions. This process is known as application and session state management.</div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: 'Segoe UI', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
The Global.asax file must reside in the IIS virtual root. Remember that a virtual root can be thought of as the container of a web application. Events and state specified in the global file are then applied to all resources housed within the web application. If, for example, Global.asax defines a state application variable, all .aspx files within the virtual root will be able to access the variable.</div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: 'Segoe UI', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
Like an ASP.NET page, the Global.asax file is compiled upon the arrival of the first request for any resource in the application. The similarity continues when changes are made to the Global.asax file; ASP.NET automatically notices the changes, recompiles the file, and directs all new requests to the newest compilation. A Global.asax file is automatically created when you create a new web application project in the VS.NET IDE.</div>
<h3 style="-webkit-text-stroke-width: 0px; background-color: white; color: #ff9900; font-family: 'Segoe UI', Arial, sans-serif; font-size: 19px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
Application Directives</h3>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: 'Segoe UI', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
Application directives are placed at the top of the Global.asax file and provide information used to compile the global file. Three application directives are defined, namely Application, Assembly, and Import. Each directive is applied with the following syntax:</div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: 'Segoe UI', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
<br /></div>
<pre id="pre143452" lang="aspnet" style="-webkit-text-stroke-width: 0px; background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); color: black; font-family: Consolas, 'Courier New', Courier, mono; font-size: 9pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin-top: 0px; orphans: auto; overflow: auto; padding: 6px; tab-size: 4; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 1; word-spacing: 0px; word-wrap: break-word;"><span class="code-pagedirective" style="background-color: yellow; border: 0px; margin: 0px; padding: 0px;"><%@</span> <span class="code-leadattribute" style="border: 0px; color: maroon; margin: 0px; padding: 0px;">appDirective</span> <span class="code-attribute" style="border: 0px; color: red; margin: 0px; padding: 0px;">appAttribute</span><span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">=</span><span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">Value </span><span class="code-attribute" style="border: 0px; color: red; margin: 0px; padding: 0px;">...</span><span class="code-pagedirective" style="background-color: yellow; border: 0px; margin: 0px; padding: 0px;">%></span>
</pre>
<h3 style="-webkit-text-stroke-width: 0px; background-color: white; color: #ff9900; font-family: 'Segoe UI', Arial, sans-serif; font-size: 19px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
Web.config</h3>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: 'Segoe UI', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
In ASP, configuration settings for an application (such as session state) are stored in the IIS metabase. There are two major disadvantages with this scheme. First, settings are not stored in a human-readable manner but in a proprietary, binary format. Second, the settings are not easily ported from one host machine to another.(It is difficult to transfer information from an IIS’s metabase or Windows Registry to another machine, even if it has the same version of Windows.)</div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: 'Segoe UI', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
Web.config solves both of the aforementioned issues by storing configuration information as XML. Unlike Registry or metabase entries, XML documents are human-readable and can be modified with any text editor. Second, XML files are far more portable, involving a simple file transfer to switch machines.</div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: 'Segoe UI', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
Unlike Global.asax, Web.config can reside in any directory, which may or may not be a virtual root. The Web.config settings are then applied to all resources accessed within that directory, as well as its subdirectories. One consequence is that an IIS instance may have many web.config files. Attributes are applied in a hierarchical fashion. In other words, the web.config file at the lowest level directory is used.</div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: 'Segoe UI', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
Since Web.config is based on XML, it is extensible and flexible for a wide variety of applications. It is important, however, to note that the Web.config file is optional. A default Web.config file, used by all ASP.NET application resources, can be found on the local machine at:</div>
<div class="pre-action-link" id="premain609264" style="-webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #999999; display: block; font-family: 'Segoe UI', Arial, sans-serif; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; orphans: auto; padding: 0px; text-align: right; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; width: 700px; word-spacing: 0px;">
<span id="prehide609264" style="border: 0px; cursor: pointer; margin: 0px; padding: 0px; transition: color 0.1s linear;"><br /></span><span style="border: 0px; cursor: pointer; margin: 0px; padding: 0px; transition: color 0.1s linear;"></span></div>
<pre id="pre609264" style="-webkit-text-stroke-width: 0px; background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); color: black; font-family: Consolas, 'Courier New', Courier, mono; font-size: 9pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin-top: 0px; orphans: auto; overflow: auto; padding: 6px; tab-size: 4; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 1; word-spacing: 0px; word-wrap: break-word;">\%winroot%\Microsoft.Net\Framework\version\CONFIG\machine.config</pre>
<h2 style="-webkit-text-stroke-width: 0px; background-color: white; color: #ff9900; font-family: 'Segoe UI', Arial, sans-serif; font-size: 29px; font-style: normal; font-variant: normal; font-weight: 200; letter-spacing: normal; line-height: normal; margin: 20px 0px 11px; orphans: auto; padding: 0px 0px 10px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
Summary</h2>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: 'Segoe UI', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
ASP.NET is an evolution of Microsoft’s Active Server Page (ASP) technology. Using ASP.NET, you can rapidly develop highly advanced web applications based on the .NET framework. Visual Studio Web Form Designer, which allows the design of web applications in an intuitive, graphical method similar to Visual Basic 6. ASP.NET ships with web controls wrapping each of the standard HTML controls, in addition to several controls specific to .NET. One such example is validation controls, which intuitively validate user input without the need for extensive client-side script.</div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: 'Segoe UI', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
In many respects, ASP.NET provides major improvements over ASP, and can definitely be considered a viable alternative for rapidly developing web-based applications.</div>
<br />
<br /></div>
Anonymoushttp://www.blogger.com/profile/15622205780426293655noreply@blogger.com0tag:blogger.com,1999:blog-1931552354690757877.post-53626254476143027292015-12-29T04:32:00.003-08:002016-01-20T22:58:12.552-08:00First ASP.NET Program<div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="-webkit-text-stroke-width: 0px; background-color: white; color: #ff9900; font-family: 'Segoe UI', Arial, sans-serif; font-size: 29px; font-style: normal; font-variant: normal; font-weight: 200; letter-spacing: normal; line-height: normal; margin: 20px 0px 11px; orphans: auto; padding: 0px 0px 10px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
First ASP.NET Program.</h2>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: 'Segoe UI', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
Now let us have our First ASP.NET program.</div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: 'Segoe UI', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
Let’s look at both the markup and the C# portions of a simple web forms application that generates a movie line-up dynamically through software.</div>
<h3 style="-webkit-text-stroke-width: 0px; background-color: white; color: #ff9900; font-family: 'Segoe UI', Arial, sans-serif; font-size: 19px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
Markup Portion</h3>
<h4 style="-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: 'Segoe UI', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: bold; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
Web form application part 1 -- SimpleWebForm.aspx</h4>
<div class="pre-action-link" id="premain644228" style="-webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #999999; display: block; font-family: 'Segoe UI', Arial, sans-serif; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; orphans: auto; padding: 0px; text-align: right; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; width: 700px; word-spacing: 0px;">
<span id="prehide644228" style="border: 0px; cursor: pointer; margin: 0px; padding: 0px; transition: color 0.1s linear;"><br /></span><span style="border: 0px; cursor: pointer; margin: 0px; padding: 0px; transition: color 0.1s linear;"></span></div>
<pre id="pre644228" lang="aspnet" style="-webkit-text-stroke-width: 0px; background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); color: black; font-family: Consolas, 'Courier New', Courier, mono; font-size: 9pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin-top: 0px; orphans: auto; overflow: auto; padding: 6px; tab-size: 4; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 1; word-spacing: 0px; word-wrap: break-word;"><span class="code-pagedirective" style="background-color: yellow; border: 0px; margin: 0px; padding: 0px;"><%</span> @Page Language=<span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;">"</span><span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;">C#"</span> Inherits=<span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;">"</span><span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;">MoviePage"</span> Src=<span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;">"</span><span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;">SimpleWebForm.cs"</span> <span class="code-pagedirective" style="background-color: yellow; border: 0px; margin: 0px; padding: 0px;">%></span>
<span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;"><</span><span class="code-leadattribute" style="border: 0px; color: maroon; margin: 0px; padding: 0px;">html</span><span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">></span>
<span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;"><</span><span class="code-leadattribute" style="border: 0px; color: maroon; margin: 0px; padding: 0px;">body</span> <span class="code-attribute" style="border: 0px; color: red; margin: 0px; padding: 0px;">background</span><span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">="</span><span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">Texture.bmp"</span><span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">></span>
<span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;"><</span><span class="code-leadattribute" style="border: 0px; color: maroon; margin: 0px; padding: 0px;">TITLE</span><span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">></span>Supermegacineplexadrome!<span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;"><</span><span class="code-leadattribute" style="border: 0px; color: maroon; margin: 0px; padding: 0px;">/TITLE</span><span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">></span>
<span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;"><</span><span class="code-leadattribute" style="border: 0px; color: maroon; margin: 0px; padding: 0px;">H1</span> <span class="code-attribute" style="border: 0px; color: red; margin: 0px; padding: 0px;">align</span><span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">="</span><span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">center"</span><span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">></span><span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;"><</span><span class="code-leadattribute" style="border: 0px; color: maroon; margin: 0px; padding: 0px;">FONT</span> <span class="code-attribute" style="border: 0px; color: red; margin: 0px; padding: 0px;">color</span><span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">="</span><span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">white"</span> <span class="code-attribute" style="border: 0px; color: red; margin: 0px; padding: 0px;">size</span><span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">="</span><span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">7"</span><span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">></span>Welcome to
Supermegacineplexadrome!<span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;"><</span><span class="code-leadattribute" style="border: 0px; color: maroon; margin: 0px; padding: 0px;">/FONT</span><span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">></span><span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;"><</span><span class="code-leadattribute" style="border: 0px; color: maroon; margin: 0px; padding: 0px;">/H1</span><span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">></span>
<span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;"><</span><span class="code-leadattribute" style="border: 0px; color: maroon; margin: 0px; padding: 0px;">P</span> <span class="code-attribute" style="border: 0px; color: red; margin: 0px; padding: 0px;">align</span><span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">="</span><span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">left"</span><span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">></span><span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;"><</span><span class="code-leadattribute" style="border: 0px; color: maroon; margin: 0px; padding: 0px;">FONT</span> <span class="code-attribute" style="border: 0px; color: red; margin: 0px; padding: 0px;">color</span><span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">="</span><span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">lime"</span> <span class="code-attribute" style="border: 0px; color: red; margin: 0px; padding: 0px;">size</span><span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">="</span><span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">5"</span><span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">></span><span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;"><</span><span class="code-leadattribute" style="border: 0px; color: maroon; margin: 0px; padding: 0px;">STRONG</span><span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">></span>
<span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;"><</span><span class="code-leadattribute" style="border: 0px; color: maroon; margin: 0px; padding: 0px;">U</span><span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">></span>Showtimes for <span class="code-pagedirective" style="background-color: yellow; border: 0px; margin: 0px; padding: 0px;"><%</span>WriteDate();<span class="code-pagedirective" style="background-color: yellow; border: 0px; margin: 0px; padding: 0px;">%></span><span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;"><</span><span class="code-leadattribute" style="border: 0px; color: maroon; margin: 0px; padding: 0px;">/U</span><span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">></span>
<span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;"><</span><span class="code-leadattribute" style="border: 0px; color: maroon; margin: 0px; padding: 0px;">/STRONG</span><span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">></span><span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;"><</span><span class="code-leadattribute" style="border: 0px; color: maroon; margin: 0px; padding: 0px;">/FONT</span><span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">></span><span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;"><</span><span class="code-leadattribute" style="border: 0px; color: maroon; margin: 0px; padding: 0px;">/P</span><span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">></span>
<span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;"><</span><span class="code-leadattribute" style="border: 0px; color: maroon; margin: 0px; padding: 0px;">FONT</span> <span class="code-attribute" style="border: 0px; color: red; margin: 0px; padding: 0px;">size</span><span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">="</span><span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">5"</span> <span class="code-attribute" style="border: 0px; color: red; margin: 0px; padding: 0px;">color</span><span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">="</span><span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">yellow"</span><span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">></span><span class="code-pagedirective" style="background-color: yellow; border: 0px; margin: 0px; padding: 0px;"><%</span>WriteMovies();<span class="code-pagedirective" style="background-color: yellow; border: 0px; margin: 0px; padding: 0px;">%></span><span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;"><</span><span class="code-leadattribute" style="border: 0px; color: maroon; margin: 0px; padding: 0px;">/FONT</span><span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">></span>
<span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;"><</span><span class="code-leadattribute" style="border: 0px; color: maroon; margin: 0px; padding: 0px;">/body</span><span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">></span>
<span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;"><</span><span class="code-leadattribute" style="border: 0px; color: maroon; margin: 0px; padding: 0px;">/html</span><span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">></span></pre>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: 'Segoe UI', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
And this is where the C# part of a web forms application comes in.</div>
<h4 style="-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: 'Segoe UI', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: bold; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
Web form application part 2 - SimpleWebForm.cs</h4>
<div class="pre-action-link" id="premain457975" style="-webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #999999; display: block; font-family: 'Segoe UI', Arial, sans-serif; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; orphans: auto; padding: 0px; text-align: right; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; width: 700px; word-spacing: 0px;">
<span id="prehide457975" style="border: 0px; cursor: pointer; margin: 0px; padding: 0px; transition: color 0.1s linear;"><br /></span><span style="border: 0px; cursor: pointer; margin: 0px; padding: 0px; transition: color 0.1s linear;"></span></div>
<pre id="pre457975" lang="cs" style="-webkit-text-stroke-width: 0px; background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); color: black; font-family: Consolas, 'Courier New', Courier, mono; font-size: 9pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin-top: 0px; orphans: auto; overflow: auto; padding: 6px; tab-size: 4; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 1; word-spacing: 0px; word-wrap: break-word;"><span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">using</span> System;
<span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">using</span> System.Web.UI;
<span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">using</span> System.Web.UI.WebControls;
<span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">public</span> <span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">class</span> MoviePage:Page
{
<span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">protected</span> <span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">void</span> WriteDate()
{
Response.Write(DateTime.Now.ToString());
}
<span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">protected</span> <span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">void</span> WriteMovies()
{
Response.Write(<span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;">"</span><span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;"><P>The Glass Ghost (R) 1:05 pm, 3:25 pm, 7:00 pm</P>"</span>);
Response.Write(<span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;">"</span><span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;"><P>Untamed Harmony (PG-13) 12:50 pm, 3:25 pm, "</span> +
<span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;">"</span><span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;">6:55 pm</P>"</span>);
Response.Write(<span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;">"</span><span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;"><P>Forever Nowhere (PG) 3:30 pm, 8:35 pm</P>"</span>);
Response.Write(<span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;">"</span><span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;"><P>Without Justice (R) 12:45 pm, 6:45 pm</P>"</span>);
}
}</pre>
</div>
Anonymoushttp://www.blogger.com/profile/15622205780426293655noreply@blogger.com0tag:blogger.com,1999:blog-1931552354690757877.post-12385243623615876692015-12-29T04:30:00.002-08:002016-01-20T22:58:42.244-08:00Quick Start :To ASP.NET<div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="background-color: white; font-family: "Segoe UI",Arial,sans-serif; font-style: normal; font-variant: normal; font-weight: 200; letter-spacing: normal; line-height: normal; margin: 20px 0px 11px; padding: 0px 0px 10px; text-align: center; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
<span style="color: orange;"><span style="font-size: x-large;"><u><b>Quick Start :To ASP.NET</b></u></span></span></h2>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: 'Segoe UI', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
After this short excursion with some background information on the .NET Framework, we will now focus on ASP.NET.</div>
<h3 style="-webkit-text-stroke-width: 0px; background-color: white; color: #ff9900; font-family: 'Segoe UI', Arial, sans-serif; font-size: 19px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
File name extensions</h3>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: 'Segoe UI', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
Web applications written with ASP.NET will consist of many files with different file name extensions. The most common are listed here. Native ASP.NET files by default have the extension .aspx (which is, of course, an extension to .asp) or .ascx. Web Services normally have the extension .asmx.</div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: 'Segoe UI', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
Your file names containing the business logic will depend on the language you use. So, for example, a C# file would have the extension .aspx.cs. You already learned about the configuration file Web.Config.</div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: 'Segoe UI', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
Another one worth mentioning is the ASP.NET application file Global.asax - in the ASP world formerly known as Global.asa. But now there is also a code behind file Global.asax.vb, for example, if the file contains Visual Basic.NET code. Global.asax is an optional file that resides in the root directory of your application, and it contains global logic for your application.</div>
<h3 style="-webkit-text-stroke-width: 0px; background-color: white; color: #ff9900; font-family: 'Segoe UI', Arial, sans-serif; font-size: 19px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
All of these are text files</h3>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: 'Segoe UI', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
All of these files are text files, and therefore human readable and writeable.</div>
<h3 style="-webkit-text-stroke-width: 0px; background-color: white; color: #ff9900; font-family: 'Segoe UI', Arial, sans-serif; font-size: 19px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
The easiest way to start</h3>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: 'Segoe UI', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
The easiest way to start with ASP.NET is to take a simple ASP page and change the file name extension to .aspx.</div>
<h3 style="-webkit-text-stroke-width: 0px; background-color: white; color: #ff9900; font-family: 'Segoe UI', Arial, sans-serif; font-size: 19px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
Page Syntax</h3>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: 'Segoe UI', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
Here is quick introduction of syntax used in ASP.NET</div>
<h4 style="-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: 'Segoe UI', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: bold; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
Directives</h4>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: 'Segoe UI', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
You can use directives to specify optional settings used by the page compiler when processing ASP.NET files. For each directive you can set different attributes. One example is the language directive at the beginning of a page defining the default programming language.</div>
<h4 style="-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: 'Segoe UI', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: bold; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
Code Declaration Blocks</h4>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: 'Segoe UI', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
Code declaration blocks are lines of code enclosed in <script> tags. They contain the runat=server attribute, which tells ASP.NET that these controls can be accessed on the server and on the client. Optionally you can specify the language for the block. The code block itself consists of the definition of member variables and methods.</div>
<h4 style="-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: 'Segoe UI', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: bold; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
Code Render Blocks</h4>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: 'Segoe UI', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
Render blocks contain inline code or inline expressions enclosed by the character sequences shown here. The language used inside those blocks could be specified through a directive like the one shown before.</div>
<h4 style="-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: 'Segoe UI', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: bold; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
HTML Control Syntax</h4>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: 'Segoe UI', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
You can declare several standard HTML elements as HTML server controls. Use the element as you are familiar with in HTML and add the attribute runat=server. This causes the HTML element to be treated as a server control. It is now programmatically accessible by using a unique ID. HTML server controls must reside within a <form> section that also has the attribute runat=server.</div>
<h4 style="-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: 'Segoe UI', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: bold; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
Custom Control Syntax</h4>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: 'Segoe UI', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
There are two different kinds of custom controls. On the one hand there are the controls that ship with .NET, and on the other hand you can create your own custom controls. Using custom server controls is the best way to encapsulate common programmatic functionality.</div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: 'Segoe UI', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
Just specify elements as you did with HTML elements, but add a tag prefix, which is an alias for the fully qualified namespace of the control. Again you must include the runat=server attribute. If you want to get programmatic access to the control, just add an Id attribute.</div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: 'Segoe UI', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
You can include properties for each server control to characterize its behavior. For example, you can set the maximum length of a TextBox. Those properties might have sub properties; you know this principle from HTML. Now you have the ability to specify, for example, the size and type of the font you use (font-size and font-type).</div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: 'Segoe UI', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
The last attribute is dedicated to event binding. This can be used to bind the control to a specific event. If you implement your own method<span class="Apple-converted-space"> </span><code style="border: 0px; color: #990000; font-family: Consolas, 'Courier New', Courier, mono; font-size: 11pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; margin: 0px; padding: 0px;">MyClick</code>, this method will be executed when the corresponding button is clicked if you use the server control event binding shown in the slide.</div>
<h4 style="-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: 'Segoe UI', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: bold; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
Data Binding Expression</h4>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: 'Segoe UI', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
You can create bindings between server controls and data sources. The data binding expression is enclosed by the character sequences <%# and %>. The data-binding model provided by ASP.NET is hierarchical. That means you can create bindings between server control properties and superior data sources.</div>
<h4 style="-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: 'Segoe UI', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: bold; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
Server-side Object Tags</h4>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: 'Segoe UI', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
If you need to create an instance of an object on the server, use server-side object tags. When the page is compiled, an instance of the specified object is created. To specify the object use the identifier attribute. You can declare (and instantiate) .NET objects using class as the identifier, and COM objects using either progid or classid.</div>
<h4 style="-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: 'Segoe UI', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: bold; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
Server-side Include Directives</h4>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: 'Segoe UI', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
With server-side include directives you can include raw contents of a file anywhere in your ASP.NET file. Specify the type of the path to filename with the pathtype attribute. Use either File, when specifying a relative path, or Virtual, when using a full virtual path.</div>
<h4 style="-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: 'Segoe UI', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: bold; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
Server-side Comments</h4>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: 'Segoe UI', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
To prevent server code from executing, use these character sequences to comment it out. You can comment out full blocks - not just single lines.</div>
<div style="background-color: white; color: #111111; font-family: "Segoe UI",Arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: right; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
<span style="font-size: xx-small;">Resources:<a href="http://www.codeproject.com/Articles/4468/Beginners-Introduction-to-ASP-NET">codeproject</a></span> </div>
</div>
Anonymoushttp://www.blogger.com/profile/15622205780426293655noreply@blogger.com0tag:blogger.com,1999:blog-1931552354690757877.post-79008477664840234282015-12-28T19:42:00.000-08:002016-01-20T22:59:05.763-08:00ASP.NET Architecture<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: center;">
</div>
<h2 style="background-color: white; color: #ff9900; font-family: "Segoe UI",Arial,sans-serif; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: center; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
<span style="color: orange;"><span style="font-size: x-large;"><u><b>ASP.NET Architecture</b></u></span></span></h2>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: 'Segoe UI', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
ASP.NET is based on the fundamental architecture of .NET Framework. Visual studio provide a uniform way to combine the various features of this Architecture.</div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: 'Segoe UI', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div style="margin-left: 1em; margin-right: 1em;">
<img alt="Architechture of Asp.Net" border="0" src="http://www.codeproject.com/KB/aspnet/aspnetintro/AspNETIntro.jpg" style="border: 0px none; margin: 0px; max-width: 100%; overflow: auto; padding: 0px;" /> </div>
<br />
<div style="background-color: white; color: #111111; font-family: "Segoe UI",Arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: center; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
</div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: 'Segoe UI', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
<br /></div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: 'Segoe UI', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
Architecture is explained form bottom to top in the following discussion.</div>
<ol style="-webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #111111; font-family: 'Segoe UI', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 10px 0px; orphans: auto; padding: 0px 0px 0px 40px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
<li style="border: 0px; color: #111111; font-family: 'Segoe UI', Arial, sans-serif; font-size: 14px; line-height: normal; margin: 0px; padding: 0px;"><div style="color: #111111; font-family: 'Segoe UI', Arial, sans-serif; font-size: 14px; line-height: normal;">
At the bottom of the Architecture is Common Language Runtime. NET Framework common language runtime resides on top of the operating system services. The common language runtime loads and executes code that targets the runtime. This code is therefore called managed code. The runtime gives you, for example, the ability for cross-language integration.<span class="Apple-converted-space"> </span></div>
</li>
<li style="border: 0px; color: #111111; font-family: 'Segoe UI', Arial, sans-serif; font-size: 14px; line-height: normal; margin: 0px; padding: 0px;"><div style="color: #111111; font-family: 'Segoe UI', Arial, sans-serif; font-size: 14px; line-height: normal;">
.NET Framework provides a rich set of class libraries. These include base classes, like networking and input/output classes, a data class library for data access, and classes for use by programming tools, such as debugging services. All of them are brought together by the Services Framework, which sits on top of the common language runtime.</div>
</li>
<li style="border: 0px; color: #111111; font-family: 'Segoe UI', Arial, sans-serif; font-size: 14px; line-height: normal; margin: 0px; padding: 0px;"><div style="color: #111111; font-family: 'Segoe UI', Arial, sans-serif; font-size: 14px; line-height: normal;">
ADO.NET is Microsoft’s ActiveX Data Object (ADO) model for the .NET Framework. ADO.NET is not simply the migration of the popular ADO model to the managed environment but a completely new paradigm for data access and manipulation.<br />
<br />
ADO.NET is intended specifically for developing web applications. This is evident from its two major design principles:</div>
<ol style="border: 0px; margin: 10px 0px; padding: 0px 0px 0px 40px;">
<li style="border: 0px; color: #111111; font-family: 'Segoe UI', Arial, sans-serif; font-size: 14px; line-height: normal; margin: 0px; padding: 0px;">Disconnected Datasets—In ADO.NET, almost all data manipulation is done outside the context of an open database connection.</li>
<li style="border: 0px; color: #111111; font-family: 'Segoe UI', Arial, sans-serif; font-size: 14px; line-height: normal; margin: 0px; padding: 0px;">Effortless Data Exchange with XML—Datasets can converse in the universal data format of the Web, namely XML.</li>
</ol>
</li>
<li style="border: 0px; color: #111111; font-family: 'Segoe UI', Arial, sans-serif; font-size: 14px; line-height: normal; margin: 0px; padding: 0px;"><div style="color: #111111; font-family: 'Segoe UI', Arial, sans-serif; font-size: 14px; line-height: normal;">
The 4th layer of the framework consists of the Windows application model and, in parallel, the Web application model.<br />
The Web application model-in the slide presented as ASP.NET-includes Web Forms and Web Services.<br />
ASP.NET comes with built-in Web Forms controls, which are responsible for generating the user interface. They mirror typical HTML widgets like text boxes or buttons. If these controls do not fit your needs, you are free to create your own user controls.<br />
<br />
Web Services brings you a model to bind different applications over the Internet. This model is based on existing infrastructure and applications and is therefore standard-based, simple, and adaptable.<br />
<br />
Web Services are software solutions delivered via Internet to any device. Today, that means Web browsers on computers, for the most part, but the device-agnostic design of .NET will eliminate this limitation.<span class="Apple-converted-space"> </span></div>
</li>
<li style="border: 0px; color: #111111; font-family: 'Segoe UI', Arial, sans-serif; font-size: 14px; line-height: normal; margin: 0px; padding: 0px;">One of the obvious themes of .NET is unification and interoperability between various programming languages. In order to achieve this; certain rules must be laid and all the languages must follow these rules. In other words we can not have languages running around creating their own extensions and their own fancy new data types. CLS is the collection of the rules and constraints that every language (that seeks to achieve .NET compatibility) must follow.</li>
<li style="border: 0px; color: #111111; font-family: 'Segoe UI', Arial, sans-serif; font-size: 14px; line-height: normal; margin: 0px; padding: 0px;">The CLR and the .NET Frameworks in general, however, are designed in such a way that code written in one language can not only seamlessly be used by another language. Hence ASP.NET can be programmed in any of the .NET compatible language whether it is VB.NET, C#, Managed C++ or JScript.NET.</li>
</ol>
<div style="text-align: right;">
<span style="font-size: x-small;">Resource: <a href="http://www.codeproject.com/Articles/4468/Beginners-Introduction-to-ASP-NET">codeproject</a></span> </div>
</div>
Anonymoushttp://www.blogger.com/profile/15622205780426293655noreply@blogger.com0tag:blogger.com,1999:blog-1931552354690757877.post-44900183018605390482015-12-28T19:38:00.003-08:002016-01-20T22:59:57.163-08:00ASP.NET Overview<div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="background-color: white; color: #ff9900; font-family: "Segoe UI",Arial,sans-serif; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: center; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
<b><u><span style="font-size: x-large;">ASP.NET Overview</span></u></b></h2>
<div style="background-color: white; color: #111111; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;">
<span style="font-family: Arial,Helvetica,sans-serif;">Here are some point that gives the quick overview of ASP.NET.</span></div>
<ul style="-webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #111111; font-family: 'Segoe UI', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 10px 0px; orphans: auto; padding: 0px 0px 0px 40px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;"><span style="font-family: Arial,Helvetica,sans-serif;">
</span>
<li style="border: 0px none; color: #111111; font-size: 14px; line-height: normal; margin: 0px; padding: 0px;"><span style="font-family: Arial,Helvetica,sans-serif;">ASP.NET provides services to allow the creation, deployment, and execution of Web Applications and Web Services</span></li>
<span style="font-family: Arial,Helvetica,sans-serif;">
</span>
<li style="border: 0px none; color: #111111; font-size: 14px; line-height: normal; margin: 0px; padding: 0px;"><span style="font-family: Arial,Helvetica,sans-serif;">Like ASP, ASP.NET is a server-side technology</span></li>
<span style="font-family: Arial,Helvetica,sans-serif;">
</span>
<li style="border: 0px none; color: #111111; font-size: 14px; line-height: normal; margin: 0px; padding: 0px;"><span style="font-family: Arial,Helvetica,sans-serif;">Web Applications are built using Web Forms. ASP.NET comes with built-in Web Forms controls, which are responsible for generating the user interface. They mirror typical HTML widgets like text boxes or buttons. If these controls do not fit your needs, you are free to create your own user controls.</span></li>
<span style="font-family: Arial,Helvetica,sans-serif;">
</span>
<li style="border: 0px none; color: #111111; font-size: 14px; line-height: normal; margin: 0px; padding: 0px;"><span style="font-family: Arial,Helvetica,sans-serif;">Web Forms are designed to make building web-based applications as easy as building Visual Basic applications.</span></li>
</ul>
<div style="text-align: right;">
Resource:<a href="http://www.codeproject.com/Articles/4468/Beginners-Introduction-to-ASP-NET">codeproject</a> </div>
</div>
Anonymoushttp://www.blogger.com/profile/15622205780426293655noreply@blogger.com0tag:blogger.com,1999:blog-1931552354690757877.post-9904222144459756892015-12-24T03:42:00.002-08:002016-01-20T22:10:52.002-08:00Advantages of ASP.NET<div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="background-color: white; color: #ff9900; font-family: "Segoe UI",Arial,sans-serif; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: center; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
<b><u><span style="font-size: x-large;">Advantages of ASP.NET</span></u></b></h2>
<ol style="-webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #111111; font-family: 'Segoe UI', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 10px 0px; orphans: auto; padding: 0px 0px 0px 40px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
<li style="border: 0px; color: #111111; font-family: 'Segoe UI', Arial, sans-serif; font-size: 14px; line-height: normal; margin: 0px; padding: 0px;"><b>Separation of Code from HTML</b><br />To make a clean sweep, with ASP.NET you have the ability to completely separate layout and business logic. This makes it much easier for teams of programmers and designers to collaborate efficiently. This makes it much easier for teams of programmers and designers to collaborate efficiently.<span class="Apple-converted-space"> </span></li>
<li style="border: 0px; color: #111111; font-family: 'Segoe UI', Arial, sans-serif; font-size: 14px; line-height: normal; margin: 0px; padding: 0px;"><b>Support for compiled languages</b><br />developer can use VB.NET and access features such as strong typing and object-oriented programming. Using compiled languages also means that ASP.NET pages do not suffer the performance penalties associated with interpreted code. ASP.NET pages are precompiled to byte-code and Just In Time (JIT) compiled when first requested. Subsequent requests are directed to the fully compiled code, which is cached until the source changes.<span class="Apple-converted-space"> </span></li>
<li style="border: 0px; color: #111111; font-family: 'Segoe UI', Arial, sans-serif; font-size: 14px; line-height: normal; margin: 0px; padding: 0px;"><b>Use services provided by the .NET Framework</b><br />The .NET Framework provides class libraries that can be used by your application. Some of the key classes help you with input/output, access to operating system services, data access, or even debugging. We will go into more detail on some of them in this module.<span class="Apple-converted-space"> </span></li>
<li style="border: 0px; color: #111111; font-family: 'Segoe UI', Arial, sans-serif; font-size: 14px; line-height: normal; margin: 0px; padding: 0px;"><b>Graphical Development Environment</b><br />Visual Studio .NET provides a very rich development environment for Web<br />developers. You can drag and drop controls and set properties the way you do in Visual Basic 6. And you have full IntelliSense support, not only for your code, but also for HTML and XML.<span class="Apple-converted-space"> </span></li>
<li style="border: 0px; color: #111111; font-family: 'Segoe UI', Arial, sans-serif; font-size: 14px; line-height: normal; margin: 0px; padding: 0px;"><b>State management</b><br />To refer to the problems mentioned before, ASP.NET provides solutions for session and application state management. State information can, for example, be kept in memory or stored in a database. It can be shared across Web farms, and state information can be recovered, even if the server fails or the connection breaks down.<span class="Apple-converted-space"> </span></li>
<li style="border: 0px; color: #111111; font-family: 'Segoe UI', Arial, sans-serif; font-size: 14px; line-height: normal; margin: 0px; padding: 0px;"><b>Update files while the server is running!</b><br />Components of your application can be updated while the server is online and clients are connected. The Framework will use the new files as soon as they are copied to the application. Removed or old files that are still in use are kept in memory until the clients have finished.<span class="Apple-converted-space"> </span></li>
<li style="border: 0px; color: #111111; font-family: 'Segoe UI', Arial, sans-serif; font-size: 14px; line-height: normal; margin: 0px; padding: 0px;"><b>XML-Based Configuration Files</b>Configuration settings in ASP.NET are stored in XML files that you can easily read and edit. You can also easily copy these to another server, along with the other files that comprise your application.</li>
</ol>
</div>
Anonymoushttp://www.blogger.com/profile/15622205780426293655noreply@blogger.com0tag:blogger.com,1999:blog-1931552354690757877.post-39689483380132713562015-12-24T02:16:00.001-08:002016-01-20T23:00:48.193-08:00Introducing ASP.NET<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="text-align: center;">
<h2 style="background-color: white; color: #ff9900; font-family: "Segoe UI",Arial,sans-serif; font-style: normal; font-variant: normal; font-weight: 200; letter-spacing: normal; line-height: normal; margin: 20px 0px 11px; padding: 0px 0px 10px; text-align: center; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
<span style="font-size: x-large;"><span style="color: orange;"><b><u>Introducing ASP.NET</u></b></span></span></h2>
</div>
<br />
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: 'Segoe UI', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
ASP.NET was developed in direct response to the problems that developers had with classic ASP. Since ASP is in such wide use, however, Microsoft ensured that ASP scripts execute without modification on a machine with the .NET Framework (the ASP engine, ASP.DLL, is not modified when installing the .NET Framework). Thus, IIS can house both ASP and ASP.NET scripts on the same machine.</div>
</div>
Anonymoushttp://www.blogger.com/profile/15622205780426293655noreply@blogger.com0tag:blogger.com,1999:blog-1931552354690757877.post-84164300975126302692015-12-24T02:10:00.004-08:002016-01-20T23:01:22.428-08:00Problems with Traditional ASP<div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="background-color: white; color: #ff9900; font-family: "Segoe UI",Arial,sans-serif; font-size: 29px; font-style: normal; font-variant: normal; font-weight: 200; letter-spacing: normal; line-height: normal; margin: 20px 0px 11px; padding: 0px 0px 10px; text-align: center; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
<span style="font-size: x-large;"><span style="color: orange;"><b><u>Problems with Traditional ASP</u></b></span></span></h2>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: 'Segoe UI', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
There are many problems with ASP if you think of needs for Today's powerful Web applications.</div>
<ol style="-webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #111111; font-family: 'Segoe UI', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 10px 0px; orphans: auto; padding: 0px 0px 0px 40px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
<li style="border: 0px; color: #111111; font-family: 'Segoe UI', Arial, sans-serif; font-size: 14px; line-height: normal; margin: 0px; padding: 0px;"><b>Interpreted and Loosely-Typed Code</b><br />ASP scripting code is usually written in languages such as JScript or VBScript. The script-execution engine that Active Server Pages relies on interprets code line by line, every time the page is called. In addition, although variables are supported, they are all loosely typed as variants and bound to particular types only when the code is run. Both these factors impede performance, and late binding of types makes it harder to catch errors when you are writing code.<span class="Apple-converted-space"> </span></li>
<li style="border: 0px; color: #111111; font-family: 'Segoe UI', Arial, sans-serif; font-size: 14px; line-height: normal; margin: 0px; padding: 0px;"><b>Mixes layout (HTML) and logic (scripting code)</b><br />ASP files frequently combine script code with HTML. This results in ASP scripts that are lengthy, difficult to read, and switch frequently between code and HTML. The interspersion of HTML with ASP code is particularly problematic for larger web applications, where content must be kept separate from business logic.<span class="Apple-converted-space"> </span></li>
<li style="border: 0px; color: #111111; font-family: 'Segoe UI', Arial, sans-serif; font-size: 14px; line-height: normal; margin: 0px; padding: 0px;"><b>Limited Development and Debugging Tools</b>Microsoft Visual InterDev, Macromedia Visual UltraDev, and other tools have attempted to increase the productivity of ASP programmers by providing graphical development environments. However, these tools never achieved the ease of use or the level of acceptance achieved by Microsoft Windows application development tools, such as Visual Basic or Microsoft Access. ASP developers still rely heavily or exclusively on Notepad.<br /><br />Debugging is an unavoidable part of any software development process, and the debugging tools for ASP have been minimal. Most ASP programmers<br />resort to embedding temporary Response. Write statements in their code to trace the progress of its execution.<span class="Apple-converted-space"> </span></li>
<li style="border: 0px; color: #111111; font-family: 'Segoe UI', Arial, sans-serif; font-size: 14px; line-height: normal; margin: 0px; padding: 0px;"><b>No real state management</b><br />Session state is only maintained if the client browser supports cookies. Session state information can only be held by using the ASP Session object. And you have to implement additional code if you, for example, want to identify a user.<span class="Apple-converted-space"> </span></li>
<li style="border: 0px; color: #111111; font-family: 'Segoe UI', Arial, sans-serif; font-size: 14px; line-height: normal; margin: 0px; padding: 0px;"><b>Update files only when server is down</b><br />If your Web application makes use of components, copying new files to your application should only be done when the Web server is stopped. Otherwise it is like pulling the rug from under your application's feet, because the components may be in use (and locked) and must be registered.<span class="Apple-converted-space"> </span></li>
<li style="border: 0px; color: #111111; font-family: 'Segoe UI', Arial, sans-serif; font-size: 14px; line-height: normal; margin: 0px; padding: 0px;"><b>Obscure Configuration Settings</b><br />The configuration information for an ASP web application (such as session state and server timeouts) is stored in the IIS metabase. Because the metabase is stored in a proprietary format, it can only be modified on the server machine with utilities such as the Internet Service Manager. With limited support for programmatically manipulating or extracting these settings, it is often an arduous task to port an ASP application from one server to another.</li>
</ol>
<div style="text-align: right;">
<span style="font-size: xx-small;">Resource: <a href="http://www.codeproject.com/Articles/4468/Beginners-Introduction-to-ASP-NET">codeproject</a></span> </div>
</div>
Anonymoushttp://www.blogger.com/profile/15622205780426293655noreply@blogger.com0tag:blogger.com,1999:blog-1931552354690757877.post-76390342556430456622015-12-03T04:59:00.001-08:002016-01-20T22:10:09.658-08:00Active Server Pages (ASP)<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<br />
<div style="text-align: center;">
<blockquote class="tr_bq">
<h2 style="-webkit-text-stroke-width: 0px; background-color: white; color: #ff9900; font-family: 'Segoe UI', Arial, sans-serif; font-size: 29px; font-style: normal; font-variant: normal; font-weight: 200; letter-spacing: normal; line-height: normal; margin: 20px 0px 11px; orphans: auto; padding: 0px 0px 10px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
<span style="color: orange;"><u><b><span style="font-size: x-large;">Active Server Pages (ASP)</span></b></u></span></h2>
</blockquote>
</div>
<br />
<br />
<blockquote class="tr_bq">
<span style="font-size: small;"><b>Microsoft Active Server Pages (ASP)</b> is a server-side scripting technology. ASP is a technology that Microsoft created to ease the development of interactive Web applications. With ASP you can use client-side scripts as well as server-side scripts. Maybe you want to validate user input or access a database. ASP provides solutions for transaction processing and managing session state. Asp is one of the most successful language used in web development. </span></blockquote>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<div style="text-align: right;">
sources:<a href="http://www.codeproject.com/Articles/4468/Beginners-Introduction-to-ASP-NET">codeproject</a> </div>
</div>
Anonymoushttp://www.blogger.com/profile/15622205780426293655noreply@blogger.com0tag:blogger.com,1999:blog-1931552354690757877.post-39095445127366464112015-12-02T01:20:00.001-08:002016-01-20T23:01:44.457-08:00Beginners Introduction to ASP.NET<div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="text-align: center;">
<span style="font-size: x-large;"><u><span style="color: orange;"><span style="font-weight: normal;">Introduction</span></span></u></span></h2>
<br />
<blockquote class="tr_bq">
<span style="color: blue;">I have seen many tutorials on ASP.NET but most of them starts with coding and writing your first ASP.NET Program. But here I has written this tutorial for explaining why there is a need for ASP.NET when classy ASP is working fine and what are the underlying technology behind ASP.NET, What programming model ASP.NET Provides to programmers. Now let us get started.</span><br />
<br />
<b>ASP.NET is the new offering for Web developers from the Microsoft.</b> <span style="color: blue;">It is not simply the next-generation of ASP; in fact, it is a completely re-engineered and enhanced technology that offers much, much more than traditional ASP and can increase productivity significantly.</span><br />
<span style="color: blue;">Because it has evolved from ASP, ASP.NET looks very similar to its predecessor—but only at first sight. Some items look very familiar, and they remind us of ASP. But concepts like Web Forms, Web Services, or Server Controls gives ASP.NET the power to build real Web applications.</span></blockquote>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<div style="text-align: right;">
<span style="font-size: xx-small;">sources:http://www.codeproject.com</span> </div>
</div>
Anonymoushttp://www.blogger.com/profile/15622205780426293655noreply@blogger.com0