<?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>.Net Geek &#187; Asp.Net</title>
	<atom:link href="http://www.aakashjain.com/tag/aspnet/feed" rel="self" type="application/rss+xml" />
	<link>http://www.aakashjain.com</link>
	<description>Technology, musings and stuff by Aakash Jain</description>
	<lastBuildDate>Thu, 11 Aug 2011 05:09:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Stop Web.config Inheritance into Child Application/Directories</title>
		<link>http://www.aakashjain.com/net/stop-webconfig-inheritance-into-child-applicationdirectories-605</link>
		<comments>http://www.aakashjain.com/net/stop-webconfig-inheritance-into-child-applicationdirectories-605#comments</comments>
		<pubDate>Tue, 31 Mar 2009 13:58:02 +0000</pubDate>
		<dc:creator>Aakash</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[Asp.Net]]></category>
		<category><![CDATA[Configuration]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[Web.config]]></category>

		<guid isPermaLink="false">http://www.aakashjain.com/?p=605</guid>
		<description><![CDATA[Asp.net configuration file, web.config (machine.config at server level)  applies to the directory in which it appears and all sub &#8211; directories. The configuration file hierarchy for a Asp.net site goes as shown below. Here is a link where you can read more about web.config inheritance. While settings are inherited from the higher level of configuration [...]]]></description>
			<content:encoded><![CDATA[<p>Asp.net configuration file, web.config (machine.config at server level)  applies to the directory in which it appears and all sub &#8211; directories. The configuration file hierarchy for a Asp.net site goes as shown below.</p>
<p><img class="size-full wp-image-608 alignnone" title="Web.Config Inheritance Hierarchy" src="http://www.aakashjain.com/wp-content/uploads/2009/03/web_config_hierarchy.png" alt="Asp.net Configuration File Hierarchy" width="418" height="266" /></p>
<p>Here is <a href="http://msdn2.microsoft.com/en-us/library/ms178685.aspx" target="_blank">a link</a> where you can read more about web.config inheritance. While settings are inherited from the higher level of configuration file, child configuration files are always permitted to override them. Inheritance downward is useful for applying a unique settings for all applications on server but in certain situation a higher config file may want to prevent inheritance in child applications. This can be achieved by using the <a href="http://msdn.microsoft.com/en-us/library/b6x6shw7(VS.71).aspx" target="_blank">&lt;location&gt; element</a> as follows.</p>
<pre name="code" class="c-sharp:nocontrols">&lt;location path="." inheritInChildApplications="false"&gt;
&lt;system.web&gt;
...
...
&lt;/system.web&gt;
&lt;/location&gt;</pre>
<p>The above code can prevent inheriting the &lt;system.web&gt; element in this case, into the child web application. Please note that this piece of code should be placed in the parent&#8217;s web.config file.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.aakashjain.com/net/stop-webconfig-inheritance-into-child-applicationdirectories-605/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Error: Failed to access IIS metabase</title>
		<link>http://www.aakashjain.com/net/error-failed-to-access-iis-metabase-35</link>
		<comments>http://www.aakashjain.com/net/error-failed-to-access-iis-metabase-35#comments</comments>
		<pubDate>Tue, 30 Oct 2007 17:07:30 +0000</pubDate>
		<dc:creator>Aakash</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[Asp.Net]]></category>
		<category><![CDATA[Error]]></category>
		<category><![CDATA[IIS]]></category>

		<guid isPermaLink="false">http://www.aakashjain.com/Error+Failed+To+Access+IIS+Metabase.aspx</guid>
		<description><![CDATA[If you install IIS after .Net 2.0 or Visual studio 2005, you may receive “Failed to access IIS metabase” error. To resolve this issue either you need to install .Net framework again after IIS or you can do the following&#8230; You can use the aspnet_regiis utility comes with .Net framework 2.0. This is an administrator [...]]]></description>
			<content:encoded><![CDATA[<p>If you install IIS after .Net 2.0 or Visual studio 2005, you may receive “Failed to access IIS metabase” error. To resolve this issue either you need to install .Net framework again after IIS or you can do the following&#8230;</p>
<p>You can use the <strong>aspnet_regiis</strong> utility comes with .Net framework 2.0. This is an administrator utility to install or uninstall Asp.Net on local server/machine. To run this utility through command prompt move to C:\Windows\Microsoft.Net\Framework\v2.0.50727 and type (without quotes)</p>
<p>“aspnet_regiis -i ”</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-9528758703353085";
google_alternate_color = "FFFFFF";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text_image";
//2007-09-24: AJ_Blog_Entries
google_ad_channel = "9667763288";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "0066CC";
google_color_text = "000000";
google_color_url = "000000";
google_ui_features = "rc:0";
// --></script><br />
<script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"></script></p>
<p>This will install the ASP.Net and update and upgrade the scriptmaps at the IIS metabase root and in below the root. In certain cases, a particular user account doesn’t have access to IIS metabase. Such condition will result the same error. However, in this case you can simply grant access to user account using…</p>
<p>“aspnet_regiis –ga (user_account_name)&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.aakashjain.com/net/error-failed-to-access-iis-metabase-35/feed</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>Info: View State</title>
		<link>http://www.aakashjain.com/net/info-view-state-37</link>
		<comments>http://www.aakashjain.com/net/info-view-state-37#comments</comments>
		<pubDate>Thu, 25 Oct 2007 10:41:04 +0000</pubDate>
		<dc:creator>Aakash</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[Asp.Net]]></category>

		<guid isPermaLink="false">http://www.aakashjain.com/Info+View+State.aspx</guid>
		<description><![CDATA[Recently, I have joined NIIT Technologies Ltd, New Delhi (http://www.niit-tech.com/). It’s well known around the world for its remarkable software services in Travel and Transport domain. It’s been few weeks since I have joined but no project allocated to me yet. So I decided to brush up my skills and drill down in State Management [...]]]></description>
			<content:encoded><![CDATA[<p>Recently, I have joined NIIT Technologies Ltd, New Delhi (<a href="http://www.niit-tech.com/">http://www.niit-tech.com/</a>). It’s well known around the world for its remarkable software services in Travel and Transport domain. It’s been few weeks since I have joined but no project allocated to me yet. So I decided to brush up my skills and drill down in State Management Techniques in ASP.Net. I have planned to cover it all gradually. I have started with <a href="http://msdn2.microsoft.com/en-us/library/system.web.ui.control.viewstate.aspx" target="_blank">ViewState</a>, here are some important points about it.</p>
<p>View state is state management technique at the page level. (between the round-trips on same aspx page.)</p>
<p>Veiw state save the information by serializing it into base64 encoded strings.</p>
<p>View state can be saved in another location such as SQL server database by implementing the cusom PageStatePersister class</p>
<p>You can save the information in ViewState (is a dictonary containing key/values pair) between page round trips.</p>
<p>View state data is first converted in to XML and then encoded using base64 encoding.</p>
<p>View State can store following types of objects:<br />
Strings<br />
Integers<br />
Boolean values<br />
Array objects<br />
ArrayList objects<br />
Hash tables<br />
Custom type converters (see the TypeConverter class for more information)<br />
(To store other types of objects class must be compiled with Serializable attribute.)</p>
<p>MaxPageStateFieldLength (page attribute) specifies the amount of maximum data that can be stored in  viewstate. The page split viewstate into multiple hidden fields if the data exceed this limit.</p>
<p>Changes to view state can be made until the PreRenderComplete event. It means that once a page is rendered changes to viewstate will not be saved.</p>
<p><a href="http://msdn2.microsoft.com/en-us/library/ms178197.aspx" target="_blank">More about ViewState</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.aakashjain.com/net/info-view-state-37/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>dasBlog v2.0 is Released</title>
		<link>http://www.aakashjain.com/dasblog/dasblog-v20-is-released-40</link>
		<comments>http://www.aakashjain.com/dasblog/dasblog-v20-is-released-40#comments</comments>
		<pubDate>Thu, 16 Aug 2007 04:02:21 +0000</pubDate>
		<dc:creator>Aakash</dc:creator>
				<category><![CDATA[dasBlog]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[Asp.Net]]></category>
		<category><![CDATA[Medium Trust]]></category>
		<category><![CDATA[Release]]></category>
		<category><![CDATA[Update]]></category>

		<guid isPermaLink="false">http://www.aakashjain.com/dasBlog+V20+Is+Released.aspx</guid>
		<description><![CDATA[Finally, much awaited dasBlog v2.0 is released.  I have been waiting this for a long time. The new version can now be hosted on ASP.Net 2.0 with Medium Trust. (download dasblog v2.0) In the past, dasBlog can be hosted on Asp.Net 2.0 but only with Full Trust. This limitation of dasBlog create hosting issues as [...]]]></description>
			<content:encoded><![CDATA[<p>Finally, much awaited <a href="http://dasblog.info/" target="_blank">dasBlog v2.0</a> is released.  I have been waiting this for a long time. The new version can now be hosted on ASP.Net 2.0 with Medium Trust. (<a href="http://sourceforge.net/project/showfiles.php?group_id=127624" target="_blank">download dasblog v2.0</a>)</p>
<p>In the past, dasBlog can be hosted on Asp.Net 2.0 but only with Full Trust. This limitation of dasBlog create hosting issues as most of hosting companies doesn’t allowed .Net applications to run with Full Trust for security sake. Those who have faced this trust problem know what this new version mean (<a href="http://www.aakashjain.com/How+To+Setup+DasBlog+On+Godaddy.aspx" target="_blank">figured out in my previous post</a><a href="http://www.flux88.com/dasBlog20Released.aspx">.</a>) This release completely supports Asp.Net 2.0.  Now I can integrate those application which I wanted to but couldn’t due to the version incompatibility.</p>
<p>Umm, I got some work this weekend. <img src='http://www.aakashjain.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.aakashjain.com/dasblog/dasblog-v20-is-released-40/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Asp.Net Shared Folder: App_Code</title>
		<link>http://www.aakashjain.com/net/aspnet-shared-folder-app_code-41</link>
		<comments>http://www.aakashjain.com/net/aspnet-shared-folder-app_code-41#comments</comments>
		<pubDate>Tue, 14 Aug 2007 19:45:13 +0000</pubDate>
		<dc:creator>Aakash</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[App_Code]]></category>
		<category><![CDATA[Asp.Net]]></category>
		<category><![CDATA[Assemblies]]></category>
		<category><![CDATA[Bin]]></category>
		<category><![CDATA[codeSubDirectories]]></category>
		<category><![CDATA[Dll]]></category>
		<category><![CDATA[Special folders]]></category>
		<category><![CDATA[Web.config]]></category>

		<guid isPermaLink="false">http://www.aakashjain.com/AspNet+Shared+Folder+AppCode.aspx</guid>
		<description><![CDATA[Points to remember about APP_CODE Directory Asp.net handles the files in bin and app_code folder in a special way. The compiled classes (dll) placed in bin folder are automatically available to all the pages in application. We don’t need to register the assemblies to use them. Asp.net automatically detects the new version of assembly and [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Points to remember about APP_CODE Directory</strong></p>
<ul>
<li>Asp.net handles the files in bin and app_code folder in a special way.</li>
<li>The compiled classes (dll) placed in bin folder are automatically available to all the pages in application. We don’t need to register the assemblies to use them. Asp.net automatically detects the new version of assembly and start using the new one.</li>
<li>Assemblies in the bin folder have application scope. They cannot access the resources outside the current web application.</li>
<li>The access levels of assemblies are determined by the trust level specified by the local computer.</li>
<li>By default code run in full trust under visual studio development environment.</li>
<li>We can store and create as many folder and files (class files) in app_code folder. But Asp.net still compile all in a single assembly.</li>
<li>As Asp.net compiles all the code (App_code) in a single assembly, all files must be of same programming language. Ex &#8211; App_Code folder cannot contain code in both VB.Net and C#. However we can make settings in web.config to configure the code subdirectories in different compliable units. The configuration is specified by creating a “codeSubDirectories” element in the <a href="http://msdn2.microsoft.com/en-us/library/t990ks23.aspx" target="_blank">compilation</a> element of the Web.config file. Ex –</li>
</ul>
<blockquote>
<blockquote>
<blockquote>
<blockquote><p><span style="color: #0000ff;">&lt;compilation debug=&#8221;false&#8221;&gt;<br />
    &lt;codeSubDirectories&gt;<br />
        &lt;add directoryName=&#8221;VBCode&#8221; /&gt;<br />
        &lt;add directoryName=&#8221;CSCode&#8221; /&gt;<br />
    &lt;/codeSubDirectories&gt;<br />
&lt;/compilation&gt;</span></p></blockquote>
</blockquote>
</blockquote>
</blockquote>
<p><script type="text/javascript"><!--
google_ad_client = "pub-9528758703353085";
google_alternate_color = "FFFFFF";
google_ad_width = 234;
google_ad_height = 60;
google_ad_format = "234x60_as";
google_ad_type = "text_image";
//2007-09-24: AJ_Blog_Entries
google_ad_channel = "9667763288";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "0066CC";
google_color_text = "000000";
google_color_url = "000000";
google_ui_features = "rc:0";
// --></script></p>
<p><script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.aakashjain.com/net/aspnet-shared-folder-app_code-41/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to make a Data Relation between two Data Tables</title>
		<link>http://www.aakashjain.com/net/how-to-make-a-data-relation-between-two-data-tables-54</link>
		<comments>http://www.aakashjain.com/net/how-to-make-a-data-relation-between-two-data-tables-54#comments</comments>
		<pubDate>Sun, 08 Apr 2007 19:10:16 +0000</pubDate>
		<dc:creator>Aakash</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[Asp.Net]]></category>
		<category><![CDATA[Garage Code]]></category>

		<guid isPermaLink="false">http://www.aakashjain.com/How+To+Make+A+Data+Relation+Between+Two+Data+Tables.aspx</guid>
		<description><![CDATA[Ado.Net provides much more than just retrieving and submitting data. We can create in memories representation of tables. This is not limited we can define the Parent and Child relation between those tables. My New article will show how to use Data Relation between two Data Tables to show the records on the basis of Master Child [...]]]></description>
			<content:encoded><![CDATA[<p>Ado.Net provides much more than just retrieving and submitting data. We can create in memories representation of tables. This is not limited we can define the Parent and Child relation between those tables. <a href="http://www.aakashjain.com/articles/DataRelationExample.htm">My New article</a> will show how to use Data Relation between two Data Tables to show the records on the basis of Master Child relationship.</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-9528758703353085";
google_alternate_color = "FFFFFF";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text_image";
//2007-09-24: AJ_Blog_Entries
google_ad_channel = "9667763288";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "0066CC";
google_color_text = "000000";
google_color_url = "000000";
google_ui_features = "rc:0";
// --></script><br />
<script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.aakashjain.com/net/how-to-make-a-data-relation-between-two-data-tables-54/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

