<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>.toString() &#187; .NET Framework 3.5</title>
	<atom:link href="http://www.dottostring.com/tag/net-framework-35/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dottostring.com</link>
	<description>Programming is our passion</description>
	<lastBuildDate>Sun, 04 Oct 2009 15:57:48 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>ASP.NET Tutorials &#8211; [Part 02] ASP.NET 3.5 Controls and Event Handlers I</title>
		<link>http://www.dottostring.com/2008/12/aspnet-tutorials-part-2-aspnet-35-controls-and-event-handlers-i/</link>
		<comments>http://www.dottostring.com/2008/12/aspnet-tutorials-part-2-aspnet-35-controls-and-event-handlers-i/#comments</comments>
		<pubDate>Tue, 30 Dec 2008 17:18:48 +0000</pubDate>
		<dc:creator>babarjehangir</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[C#.NET]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[VB.NET]]></category>
		<category><![CDATA[.NET Controls]]></category>
		<category><![CDATA[.NET Framework 3.5]]></category>
		<category><![CDATA[AJAX Extensions]]></category>
		<category><![CDATA[ASP.NET 3.5]]></category>
		<category><![CDATA[ASP.NET 3.5 Controls]]></category>
		<category><![CDATA[ASP.NET Event Handlers]]></category>
		<category><![CDATA[Data Controls]]></category>
		<category><![CDATA[Event Handlers]]></category>
		<category><![CDATA[Login Controls]]></category>
		<category><![CDATA[Navigation Controls]]></category>
		<category><![CDATA[Standard Controls]]></category>
		<category><![CDATA[Validation Controls]]></category>
		<category><![CDATA[Visual Studio 2008]]></category>
		<category><![CDATA[WebParts Controls]]></category>

		<guid isPermaLink="false">http://www.dottostring.com/?p=211</guid>
		<description><![CDATA[In part 1 we talked about ASP.NET and .NET Framework 3.5 in general and got accross some of the very basic concepts of .net technology. now we move on to ASP.NET Controls often termed as the heart of the .NET Framework.
There are around 70+ Controls in ASP.NET Framework and are categorized as follows.

Standard Controls
Data Controls
Validation [...]]]></description>
			<content:encoded><![CDATA[<p>In part 1 we talked about ASP.NET and .NET Framework 3.5 in general and got accross some of the very basic concepts of .net technology. now we move on to <strong>ASP.NET Controls</strong> often termed as the heart of the .NET Framework.</p>
<p>There are around <strong>70+ Controls in ASP.NET Framework</strong> and are categorized as follows.</p>
<ul>
<li>Standard Controls</li>
<li>Data Controls</li>
<li>Validation Controls</li>
<li>Navigation Controls</li>
<li>Login Controls</li>
<li>WebParts Controls</li>
<li>HTML Controls</li>
<li>AJAX Extentions</li>
</ul>
<p><strong>Standard Controls &#8211; </strong>as the name suggests this category contains all the basic controls in order to fullfil the web interface related requirements such as text boxes, hyperlinks, buttons, tables and many more.</p>
<p><strong>Data Controls &#8211; </strong>A number of useful data controls are available for the developer to easily communicate with database and efficiently display them to the end user. GridView, ObjectDataSource, Repeater are few of the most popular data controls.</p>
<p><strong>Validation Controls</strong> -  these controls come in very handy when we need to apply any sort of validations on the standard controls such as Required field validation on Textbox, Data Type validation, Regular Expression Match and many others.</p>
<p><strong>Navigation Controls &#8211; </strong>navigation controls make things very comfortable when it comes to manage navigation of your website for example generating SiteMaps, Menus and TreeView.</p>
<p><strong>Login Controls &#8211; </strong>these controls are there to be used whenever you need to implement security to your website, they enable you to display login, change password and registration forms.</p>
<p><strong>WebParts Controls &#8211; </strong> these controls enable end users to modify the content, appearance, and behavior of Web pages in the web browser itself.</p>
<p><strong>HTML Controls -</strong> these are standard HTML controls such as textboxes, anchor, checkboxes and any other HTML control you would know. it also gives the ability to convert any HTML tag into a server control.</p>
<p><strong>AJAX Extensions &#8211; </strong>this category contains some very helpful AJAX related controls which enables AJAX on  your pages magically ( well seems like magic ), for example if you want to change text of some label on the web page by a button&#8217;s click event using AJAX (without posting the entire page back) all you need to do is put that label and button in a UpdatePanel and that&#8217;s just about it!</p>
<p>we will learn about each of them in the detail in the later parts.</p>
<h3>Event Handlers</h3>
<p>Almost all of the ASP.NET controls provides one or more Events to support the idea of event driven web application. for example if you want that on a certain click of a button a text should change on the web page would require a Click Event of the Button to be raised when clicked and subsequently changing the text of the label placed somewhere on the page.</p>
<p>the code below demonstrates this example</p>
<pre name="code" class="html">&lt;%@ Page Language="C#" %&gt;

&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;

&lt;script runat="server"&gt;

    protected void btnSubmit_Click(object sender, EventArgs e)
    {
        lblMessage.Text = "Button has been Clicked";
    }
&lt;/script&gt;

&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;head runat="server"&gt;
    &lt;title&gt;DotToString - My First Website&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
    &lt;form id="form1" runat="server"&gt;
    &lt;div&gt;
        &lt;asp:Label ID="lblMessage" runat="server" Text="Click on the Button Below" &gt;&lt;/asp:Label&gt;&lt;br /&gt;
        &lt;asp:Button ID="btnSubmit" runat="server" Text="Click"
            onclick="btnSubmit_Click" /&gt;
    &lt;/div&gt;
    &lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p>In this example Two ASP.NET controls are used,  Label and Button. I have placed an onclick event which is handled by btnSubmit_Click Event Handler to change the text of the Label control.</p>
<p>In the part 3 I will demonstrate some samples codes (using Microsoft Visual Studio 2008) which will further elaborate the use of ASP.NET Controls and their Event Handlers.</p>
<p>keep visiting and don&#8217;t forget to leave feedback.</p>
<p>Cheers!</p>
<p>Proceed to:</p>
<ul>
<li><a href="http://www.dottostring.com/2008/12/aspnet-tutorials-part-03-aspnet-35-controls-and-event-handlers-ii/" target="_self">ASP.NET Tutorials &#8211; [Part 03] ASP.NET 3.5 Controls and Event Handlers II</a></li>
<li>
	<a href="http://www.dottostring.com/2009/02/aspnet-tutorials-part-04-aspnet-35-controls-and-event-handlers-iii/" target="_self">ASP.NET Tutorials &#8211; [Part 04] ASP.NET 3.5 Controls and Event Handlers III<br />
	</a>
	</li>
</ul>
<p>Previous Parts:</p>
<ul>
<li><a href="http://www.dottostring.com/2008/12/aspnet-tutorials-part-1-a-peek-into-aspnet-and-net-framework-3_5/" target="_self">ASP.NET Tutorials &#8211; [Part 01] A peek into ASP.NET and .NET Framework 3.5</a></li>
</ul>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fwww.dottostring.com%2F2008%2F12%2Faspnet-tutorials-part-2-aspnet-35-controls-and-event-handlers-i%2F';
  addthis_title  = 'ASP.NET+Tutorials+%26%238211%3B+%5BPart+02%5D+ASP.NET+3.5+Controls+and+Event+Handlers+I';
  addthis_pub    = 'erfaan';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
]]></content:encoded>
			<wfw:commentRss>http://www.dottostring.com/2008/12/aspnet-tutorials-part-2-aspnet-35-controls-and-event-handlers-i/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>ASP.NET Tutorials &#8211; [Part 01] A peek into ASP.NET and .NET Framework 3.5</title>
		<link>http://www.dottostring.com/2008/12/aspnet-tutorials-part-1-a-peek-into-aspnet-and-net-framework-3_5/</link>
		<comments>http://www.dottostring.com/2008/12/aspnet-tutorials-part-1-a-peek-into-aspnet-and-net-framework-3_5/#comments</comments>
		<pubDate>Mon, 29 Dec 2008 21:17:31 +0000</pubDate>
		<dc:creator>babarjehangir</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[VB.NET]]></category>
		<category><![CDATA[.NET Framework 3.5]]></category>
		<category><![CDATA[ASP.NET 3.5]]></category>
		<category><![CDATA[Assemblies]]></category>
		<category><![CDATA[Common Runtime Language (CLR)]]></category>
		<category><![CDATA[Namespaces]]></category>
		<category><![CDATA[Visual Studio 2008]]></category>

		<guid isPermaLink="false">http://www.dottostring.com/?p=199</guid>
		<description><![CDATA[ASP.NET is increasingly becoming the reference point of development around the globe and alot of credit goes to Microsoft&#8217;s aggresive strategy to make things very simple for the developer subsequently supporting Rapid Application Development (RAD). To achieve all of this Microsoft puts in quite a lot of energy in improving Microsoft Visual Studio.
Microsoft Visual Studio [...]]]></description>
			<content:encoded><![CDATA[<p>ASP.NET is increasingly becoming the reference point of development around the globe and alot of credit goes to Microsoft&#8217;s aggresive strategy to make things very simple for the developer subsequently supporting Rapid Application Development (RAD). To achieve all of this Microsoft puts in quite a lot of energy in improving Microsoft Visual Studio.</p>
<p>Microsoft Visual Studio 2008 is a developer&#8217;s heaven, it strives hard to take care of all the dirty work which otherwise a developer would have to waste time on and encourages him to concentrate on the Business Details. following are some of the handy features VS 2008 has to offer.</p>
<ul>
<li><strong>LINQ Support and Designer</strong></li>
<li><strong>Windows Presentation Foundation</strong></li>
<li><strong>VS 2008 Support for different .NET Framework Versions</strong></li>
<li><strong>AJAX support for ASP.NET</strong></li>
<li><strong>JavaScript Debugging</strong></li>
<li><strong>Nested Master Page</strong></li>
<li><strong>Built In Silverlight Library</strong></li>
</ul>
<p>before we dive into writing code for our first ASP.NET Sample Page, lets look at some of basic terms which you will come across frequently as we move ahead.</p>
<h4>Namespaces</h4>
<p>There are around <strong>13,000 Classes in .NET Framework</strong>, which is an overwhelming number and for obvious reasons needs some sort of management, just like we can have different closets for clothes that belong to summer and winter seasons so that we have everything organized. Similarly .NET Framework has Namespaces which is used to group all the relevant classes under a single Namespace which leads to better organization classes.</p>
<p>for example all the classes relevant to File Operations is categorized under the namespace <strong>System.IO </strong>and Mail Related Classes in <strong>System.Net.Mail</strong>.</p>
<p>you have to import Namespaces before you use any of the classes available in that particular Namespace (or provide a complete reference to the class including Namespace), however following is the a list of Namespaces which are already included in an ASP.NET Project and you dont have to reference them explicitly.</p>
<ul>
<li>System</li>
<li>System.Collections</li>
<li>System.Collections.Specialized</li>
<li>System.Configuration</li>
<li>System.Text</li>
<li>System.Text.RegularExpressions</li>
<li>System.Web</li>
<li>System.Web.Caching</li>
<li>System.Web.SessionState</li>
<li>System.Web.Security</li>
<li>System.Web.Profile</li>
<li>System.Web.UI</li>
<li>System.Web.UI.WebControls</li>
<li>System.Web.UI.WebControls.WebParts</li>
<li>System.Web.UI.HTMLControls</li>
</ul>
<p>you might be wondering how? the global web configuration file has the reference to all of these in the Framework directory.</p>
<h4>Assemblies</h4>
<p>Assembly is a compiled form of a particular set of .NET code/classes. its extension is .dll. There are two forms of Assemblies, Shared and Private. As the names would suggest Shared Assemblies are there to be used by every .NET application and resides in Global Assembly Cache (GAC) and Private Assemblies are used by .NET Applications which explicitly adds them to their development/production environtment.</p>
<h4>ASP.NET 3.5</h4>
<p>ASP.NET 3.5 broadly speaking is a technology used to build interactive data driven Web Applications. Apart from conventional HTML Elements used in any other scripting language, ASP.NET Server Control are the heart of ASP.NET 3.5, it contains text boxes, buttons, images, and data grids and numerous other server side controls which when used in combination with C#.NET/VB.NET is rendered by the .NET Framework to generate equivalent HTML for the client browser.</p>
<h4>.NET Framework 3.5</h4>
<p>.NET Framework 3.5 can be looked as layers of code which work in a modular fashion between underlying Operating System and your program. <strong>Common Runtine Language (CLR)</strong> is a huge and essential component of .NET Framework and responsible for the execution of your application code.</p>
<h4>Common Runtime Language (CLR)</h4>
<p>Common Runtime Language (CLR) is solely responsible for the execution of your program.All of your application code be it in C# or VB is converted to a special language called <strong>Microsoft Intermediate Language (MSIL).</strong> MSIL is a low-level and platform independent language and is not CPU Specific.</p>
<p>MSIL is then further compiled into machine code by <strong>JITTER (The Just-In-Time Compiler)</strong> and is then executed. .NET Framework only understands MSIL and includes compilers for supported languages like C#.NET and VB.NET. So practically speaking you can write program code in any language as long as it can compile into MSIL.</p>
<p>This brings us to the end of the part 1. we will be turning our attention to ASP.NET Controls and their Event Handlers in the next part.</p>
<p>keep visiting and don&#8217;t forget to leave feedback</p>
<p>Cheers!</p>
<p>Proceed to:</p>
<ul>
<li><a href="http://www.dottostring.com/2008/12/aspnet-tutorials-part-2-aspnet-35-controls-and-event-handlers-i/" target="_self">ASP.NET Tutorials &#8211; [Part 02] ASP.NET 3.5 Controls and Event Handlers I</a></li>
<li><a href="http://www.dottostring.com/2008/12/aspnet-tutorials-part-03-aspnet-35-controls-and-event-handlers-ii/" target="_self">ASP.NET Tutorials &#8211; [Part 03] ASP.NET 3.5 Controls and Event Handlers II</a></li>
<li>
	<a href="http://www.dottostring.com/2009/02/aspnet-tutorials-part-04-aspnet-35-controls-and-event-handlers-iii/" target="_self">ASP.NET Tutorials &#8211; [Part 04] ASP.NET 3.5 Controls and Event Handlers III<br />
	</a>
	</li>
</ul>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fwww.dottostring.com%2F2008%2F12%2Faspnet-tutorials-part-1-a-peek-into-aspnet-and-net-framework-3_5%2F';
  addthis_title  = 'ASP.NET+Tutorials+%26%238211%3B+%5BPart+01%5D+A+peek+into+ASP.NET+and+.NET+Framework+3.5';
  addthis_pub    = 'erfaan';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
]]></content:encoded>
			<wfw:commentRss>http://www.dottostring.com/2008/12/aspnet-tutorials-part-1-a-peek-into-aspnet-and-net-framework-3_5/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
