<?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>NSRajesh</title>
	<atom:link href="http://www.nsrajesh.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nsrajesh.com</link>
	<description></description>
	<lastBuildDate>Fri, 19 Feb 2010 10:33:35 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>ASP.Net/C# &#8211; Creating Business Logic Layer / Data Access Layer</title>
		<link>http://www.nsrajesh.com/asp-dot-net-creating-business-logic-layer-data-access-layer/</link>
		<comments>http://www.nsrajesh.com/asp-dot-net-creating-business-logic-layer-data-access-layer/#comments</comments>
		<pubDate>Fri, 12 Feb 2010 06:49:49 +0000</pubDate>
		<dc:creator>nsrajesh</dc:creator>
				<category><![CDATA[ASP.Net]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.nsrajesh.com/?p=80</guid>
		<description><![CDATA[How to create/use Business Logic Layer / Data Access Layer in ASP.Net project
Do you guys know how to create a Simple ASP.Net project with Business Logic Layer (BLL) &#38; Data Access Layer (DAL) along with Presentation Layer or User Interface Layer (UI) &#8211; Simply ASP.Net Project&#8230;
Lets learn together.
First step is to Create an ASP.Net project [...]]]></description>
			<content:encoded><![CDATA[<h2>How to create/use Business Logic Layer / Data Access Layer in ASP.Net project</h2>
<p>Do you guys know how to create a Simple ASP.Net project with Business Logic Layer (BLL) &amp; Data Access Layer (DAL) along with Presentation Layer or User Interface Layer (UI) &#8211; Simply ASP.Net Project&#8230;</p>
<p>Lets learn together.</p>
<p><strong>First step</strong> is to Create an ASP.Net project (hope you guys know how to create ASP.Net Project <img src='http://www.nsrajesh.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  ) &#8211; Lets name it as &#8220;SampleProject&#8221;.  While saving the project Save it in your <strong>wwwroot Folder</strong>. Mostly it will be in C:\Inetpub\wwwroot\.</p>
<p>Now you solution explorer will look like this.<br />
<img src="file:///C:/DOCUME%7E1/RAJESH%7E1.TEN/LOCALS%7E1/Temp/moz-screenshot.png" alt="" /></p>
<div id="attachment_81" class="wp-caption alignnone" style="width: 367px"><img class="size-full wp-image-81" title="solution-exporer-dal-bal-asp" src="http://www.nsrajesh.com/uploads/solution-exporer-dal-bal-asp.gif" alt="DAL-BAL-Solution-Explorer" width="357" height="212" /><p class="wp-caption-text">DAL-BAL-Solution-Explorer</p></div>
<h3><strong>Creating BLL</strong></h3>
<p>Our next step is to create the Business Logic Layer (BLL) &amp; Data Access Layer (DAL) &#8211; From now on we will call it as BLL / DAL. For BLL &amp; DAL layer we need to create DLL Files &#8211; using Class Library Projects. So just right click on your Project&#8217;s Solution file as show below.</p>
<div id="attachment_86" class="wp-caption alignnone" style="width: 367px"><img class="size-full wp-image-86" title="select-solution-dal-bal-asp.net" src="http://www.nsrajesh.com/uploads/select-solution-dal-bal-asp.net.gif" alt="Selecting Solution to add BLL &amp; DAL" width="357" height="212" /><p class="wp-caption-text">Selecting Solution to add BLL &amp; DAL</p></div>
<p>Now select <strong>Windows</strong> in Project Type &#8211; left hand side of the dialog box. Then select <strong>Class Library</strong> in Templates &#8211; right hand side. Now give the project name as &#8220;<strong>SampleProject.BusinessLogic</strong>&#8221; &#8211; Save this project in <strong>wwwroot</strong> folder itself.</p>
<p>Now your project explorer will look like below.</p>
<p><img class="alignnone size-full wp-image-96" title="solution-exporer-bal-asp" src="http://www.nsrajesh.com/uploads/solution-exporer-bal-asp.gif" alt="solution-exporer-bal-asp" width="357" height="205" /></p>
<h3><strong><strong>Creating DAL</strong></strong></h3>
<p>Follow the same steps that you used to create the BLL  to create the DAL project and name the project as &#8220;<strong>SampleProject.DataAccess</strong>&#8220;.</p>
<h3><strong>Using all three Layers</strong></h3>
<p>Now we have UI, BLL &amp; DAL projects is in place. So how we are going to interact all these projects. Now we are going to create a login page where users can login. And <em>we are not going to use any ASP.Net controls like Login / Login View / Login Status</em> etc&#8230; to create this login page.</p>
<p>While the user logs in into our product our all projects (UI, BLL &amp; DAL) will interact like below.</p>
<p>1. UI Layer &#8211; User will enter the User Name / Password to enter into our project.</p>
<p>2. BLL &#8211; We will check whether he entered both the User Name &amp; password &#8211; if not we will show them an error like &#8220;Please enter the User Name&#8221; or &#8220;Please enter the Password&#8221;.</p>
<p>3. DAL &#8211; If the user entered both the &#8220;User name &amp; Password&#8221; then will check that User Name &amp; Password in the database &#8211; whether its correct or not.</p>
<p>This is how all three projects will interact with each other.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nsrajesh.com/asp-dot-net-creating-business-logic-layer-data-access-layer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My First Blog Post</title>
		<link>http://www.nsrajesh.com/my-first-blog-post/</link>
		<comments>http://www.nsrajesh.com/my-first-blog-post/#comments</comments>
		<pubDate>Tue, 29 Dec 2009 07:54:47 +0000</pubDate>
		<dc:creator>nsrajesh</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Adwords API]]></category>

		<guid isPermaLink="false">http://www.nsrajesh.com/?p=65</guid>
		<description><![CDATA[Hi all, This is my first post on my Blog. From today onwards i will try my level best to give you use full articles/projects. Also if you need any help with your ASP.Net / C#/ PHP projects please let me know. I will try my level best to help you.
Thanks.
]]></description>
			<content:encoded><![CDATA[<p>Hi all, This is my first post on my Blog. From today onwards i will try my level best to give you use full articles/projects. Also if you need any help with your ASP.Net / C#/ PHP projects please let me know. I will try my level best to help you.</p>
<p>Thanks.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nsrajesh.com/my-first-blog-post/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
