<?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>eugene.K &#187; web.config</title>
	<atom:link href="http://ekdd.co.il/tag/web-config/feed/" rel="self" type="application/rss+xml" />
	<link>http://ekdd.co.il</link>
	<description>web developer to web developers</description>
	<lastBuildDate>Tue, 22 Sep 2009 06:05:41 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>HOWTO: Use C# and VB in the same project</title>
		<link>http://ekdd.co.il/howto-use-c-and-vb-in-the-same-project/</link>
		<comments>http://ekdd.co.il/howto-use-c-and-vb-in-the-same-project/#comments</comments>
		<pubDate>Tue, 15 Sep 2009 17:00:20 +0000</pubDate>
		<dc:creator>eugene</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[web.config]]></category>

		<guid isPermaLink="false">http://ekdd.co.il/?p=84</guid>
		<description><![CDATA[You will get a compilation error if you will place  C# and VB code along in App_Code directory. This little code snippet for web.config gives your compliper an ability to distinguish between languages.  Some of you could ask, i use X language why should i start an application with native support for few ? Real [...]]]></description>
			<content:encoded><![CDATA[<p><strong>You</strong> will get a compilation error if you will place  C# and VB code along in <em>App_Code </em>directory. This little code snippet for web.config gives your compliper an ability to distinguish between languages.  Some of you could ask, i use X language why should i start an application with native support for few ? Real life example explains why would you do that.</p>
<p><span id="more-84"></span></p>
<p><strong>real life example:</strong></p>
<p>I had to work on a project large part of which was written in VB, i do understand VB but i feel much more comfortable with C#.  I could use great tool by <a title="Developer Fusion" href="http://www.developerfusion.com/" target="_blank">Developer Fusion</a>, a <a title="c# vb converter" href="http://www.developerfusion.com/tools/convert/vb-to-csharp/" target="_blank">.NET Code Converter</a> but it was much easier to keep the old code and just have new one written in my native language.  This way i could utilize already written code inVB.</p>
<p>Important note, if you using VB in multi language project please write your functions as strict as possible to avoid possible compliation issues while use a combination of functions from both App_Code dirs.</p>
<p><strong>code:</strong></p>
<p><strong> </strong>Create two new folders inside of <em>App_Code </em>folder, CS for C# code and VB obviously for VB code.  Folder names are not important as used only as identifiers for web.config attributes in code below.</p>
<pre class="brush: xml">

&lt;compilation&gt;

&lt;codeSubDirectories&gt;

&lt;add directoryName=&quot;CS&quot; /&gt;

&lt;add directoryName=&quot;VB&quot; /&gt;

&lt;/codeSubDirectories&gt;

&lt;/compilation&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://ekdd.co.il/howto-use-c-and-vb-in-the-same-project/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HOWTO: Limit Viewstate length</title>
		<link>http://ekdd.co.il/limit-viewstate-length/</link>
		<comments>http://ekdd.co.il/limit-viewstate-length/#comments</comments>
		<pubDate>Wed, 09 Sep 2009 16:00:23 +0000</pubDate>
		<dc:creator>eugene</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[viewstate]]></category>
		<category><![CDATA[web.config]]></category>

		<guid isPermaLink="false">http://ekdd.co.il/?p=4</guid>
		<description><![CDATA[In some occasions browsers may block or truncate  generated viewstate due to it’s length. This short tweak may solve the issue  by dividing the viewstate to independent hidden fields based on the number you provide as value. In this example maxPageStateFieldLength set to 50 this means when viewstate get beyond 50 characters it will be [...]]]></description>
			<content:encoded><![CDATA[<p><strong>In</strong> some occasions browsers may block or truncate  generated viewstate due to it’s length. This short tweak may solve the issue  by dividing the viewstate to independent hidden fields based on the number you provide as value. In this example <em>maxPageStateFieldLength</em> set to<em> 50</em> this means when viewstate get beyond 50 characters it will be broken to different hidden fields holding viewstate’s value</p>
<p><span id="more-4"></span></p>
<p><strong>code :</strong></p>
<pre class="brush: xml">

&lt;system.web&gt;
&lt;pages maxPageStateFieldLength=&quot;50&quot;&gt;
&lt;controls /&gt;
&lt;/pages&gt;
&lt;/system.web&gt;
</pre>
<p>* put this code as <em>&lt;pages&gt;</em> attribute inside of <em>&lt;web.section&gt;</em> section in web.config</p>
]]></content:encoded>
			<wfw:commentRss>http://ekdd.co.il/limit-viewstate-length/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
