<?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>WorldofCode.com &#187; ASP.NET</title>
	<atom:link href="http://www.worldofcode.com/category/coding/aspnet-coding/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.worldofcode.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Wed, 05 Jan 2011 01:32:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Convert VB to C# or C# to VB</title>
		<link>http://www.worldofcode.com/convert-vb-to-c-or-c-to-vb/</link>
		<comments>http://www.worldofcode.com/convert-vb-to-c-or-c-to-vb/#comments</comments>
		<pubDate>Wed, 21 Jul 2010 15:10:00 +0000</pubDate>
		<dc:creator>WorldofCode</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Coding]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[VB.Net]]></category>

		<guid isPermaLink="false">http://www.worldofcode.com/convert-vb-to-c-or-c-to-vb/</guid>
		<description><![CDATA[Handy tool for conveting code inbetween VB and C# or vice versa. http://converter.telerik.com/ &#160;]]></description>
			<content:encoded><![CDATA[<p></p>
<p>Handy tool for conveting code inbetween VB and C# or vice versa.</p>
<p><a href="http://converter.telerik.com/">http://converter.telerik.com/</a></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.worldofcode.com/convert-vb-to-c-or-c-to-vb/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get MP3 file duration/length</title>
		<link>http://www.worldofcode.com/get-mp3-file-durationlength/</link>
		<comments>http://www.worldofcode.com/get-mp3-file-durationlength/#comments</comments>
		<pubDate>Wed, 21 Jul 2010 04:08:07 +0000</pubDate>
		<dc:creator>WorldofCode</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Coding]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Windows Media Player]]></category>

		<guid isPermaLink="false">http://www.worldofcode.com/get-mp3-file-durationlength/</guid>
		<description><![CDATA[C# code for if you are trying to get the&#160;mp3 length or duration&#160;of a media&#160;file.&#160;&#160;You will need to reference Windows Media Player.&#160; Go to Com Add-ins to add the wmp.dll to your project.&#160; string Duration = null; WMPLib.WindowsMediaPlayer w = new WMPLib.WindowsMediaPlayer(); WMPLib.IWMPMedia m = w.newMedia(Filename); if (m != null) { &#160;Duration = m.durationString; } [...]]]></description>
			<content:encoded><![CDATA[<p></p>
<p>C# code for if you are trying to get the&nbsp;mp3 length or duration&nbsp;of a media&nbsp;file.&nbsp;&nbsp;You will need to reference Windows Media Player.&nbsp; Go to Com Add-ins to add the wmp.dll to your project.&nbsp;</p>
<blockquote>
<p>string Duration = null;<br />
WMPLib.WindowsMediaPlayer w = new WMPLib.WindowsMediaPlayer();<br />
WMPLib.IWMPMedia m = w.newMedia(Filename);<br />
if (m != null) {<br />
&nbsp;Duration = m.durationString;<br />
}<br />
w.close();</p>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.worldofcode.com/get-mp3-file-durationlength/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Replace line breaks with BR tags</title>
		<link>http://www.worldofcode.com/replace-line-breaks-with-60br62-tags/</link>
		<comments>http://www.worldofcode.com/replace-line-breaks-with-60br62-tags/#comments</comments>
		<pubDate>Mon, 14 Apr 2008 03:22:01 +0000</pubDate>
		<dc:creator>WorldofCode</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Coding]]></category>
		<category><![CDATA[br]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[replace]]></category>
		<category><![CDATA[vb]]></category>

		<guid isPermaLink="false">http://www.worldofcode.com/replace-line-breaks-with-60br62-tags/</guid>
		<description><![CDATA[&#160;&#160;In Classic ASP we used to replace line breaks or vbCrLf tags in the following way. strValue = Replace(strValue, vbCrLf, &#34;&#60;br&#62;&#34;) In ASP.NET it is a bit different.&#160; Now we have the Environment.NewLine command that will determine the coding environment you are running&#160;in either VB or C#.&#160; So you can replace the line break command [...]]]></description>
			<content:encoded><![CDATA[<p></p>
<p>&nbsp;&nbsp;In Classic ASP we used to replace line breaks or vbCrLf tags in the following way.</p>
<blockquote>
<p>strValue = Replace(strValue, vbCrLf, &quot;&lt;br&gt;&quot;)</p>
</blockquote>
<p>In ASP.NET it is a bit different.&nbsp; Now we have the Environment.NewLine command that will determine the coding environment you are running&nbsp;in either VB or C#.&nbsp; So you can replace the line break command wether it is vbCrLf or /n.</p>
<blockquote>
<p>string strValue = strValue;</p>
<p>strValue.Text = strValue.Replace(Environment.NewLine, &quot;&lt;br/&gt;&quot;);</p>
</blockquote>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.worldofcode.com/replace-line-breaks-with-60br62-tags/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

