<?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>My Happy Moments</title>
	<atom:link href="http://blogs.myhappymoments.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.myhappymoments.com</link>
	<description>Just another weblog</description>
	<lastBuildDate>Thu, 15 Jul 2010 23:13:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Nokia N85 SIP Settings for VoIP Setup</title>
		<link>http://blogs.myhappymoments.com/2009/11/18/nokia-n85-sip-settings-for-voip-setup/</link>
		<comments>http://blogs.myhappymoments.com/2009/11/18/nokia-n85-sip-settings-for-voip-setup/#comments</comments>
		<pubDate>Thu, 19 Nov 2009 02:30:28 +0000</pubDate>
		<dc:creator>Vish</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Nokia]]></category>
		<category><![CDATA[SIP Setting on Nokia]]></category>

		<guid isPermaLink="false">http://blogs.myhappymoments.com/?p=382</guid>
		<description><![CDATA[This post is specifically for the people who have requested me to help them set up voip on their Nokia N85. I have written a post to Set up VoIP setting on Nokia E63. If you have voip set up on your mobile and have access to a WiFi or 3G connection, you can save ]]></description>
			<content:encoded><![CDATA[<p>This post is specifically for the people who have requested me to help them set up voip on their Nokia N85.</p>
<p>I have written a post to <a href="http://blogs.myhappymoments.com/2009/08/19/nokia-e-series-internet-call-and-sip-settings/">Set up VoIP setting on Nokia E63</a>.</p>
<p>If you have voip set up on your mobile and have access to a WiFi or 3G connection, you can save money by using the Internet to connect your call instead of using your mobile phone minutes. Make your calls from anywhere in the world to anywhere for just a few cents a minute. Voip is easy to configure and inexpensive to use.</p>
<p>Note: <em>The first most important part of setting up the SIP VoIP setting is to update you mobile to latest firmware.</em></p>
<p>Once you have updated your mobile software.<br />
Download the application for SIP from <a href="http://www.forum.nokia.com/info/sw.nokia.com/id/d476061e-90ca-42e9-b3ea-1a852f3808ec/SIP_VoIP_Settings.html">SIP VoIP Application for Nokia N85</a>.<br />
<em>Note: Download SIP VoIP 3.0x setting for N85.</em></p>
<p>After you have downloaded the SIS (settings file) on your PC.</p>
<ol>
<li>Use Nokia PC Suit software on your PC to install it on to the phone.</li>
<li>Once the installation is complete restart your phone.</li>
<li>You will be able to see VoIP Settings on your phone.</li>
</ol>
<p>Then follow the instruction’s for setting up the voip in the following post. <a href="http://blogs.myhappymoments.com/2009/08/19/nokia-e-series-internet-call-and-sip-settings/">Set up VoIP setting on Nokia E63</a>.</p>
<p>Please post your comments to let me know if that worked. This will help others too.</p>
<p>Thank you</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.myhappymoments.com/2009/11/18/nokia-n85-sip-settings-for-voip-setup/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Hmmm what a cool moment</title>
		<link>http://blogs.myhappymoments.com/2009/10/09/hmmm-what-a-cool-moment/</link>
		<comments>http://blogs.myhappymoments.com/2009/10/09/hmmm-what-a-cool-moment/#comments</comments>
		<pubDate>Fri, 09 Oct 2009 15:27:55 +0000</pubDate>
		<dc:creator>Vish</dc:creator>
				<category><![CDATA[Photography]]></category>

		<guid isPermaLink="false">http://blogs.myhappymoments.com/2009/10/09/hmmm-what-a-cool-moment/</guid>
		<description><![CDATA[Hmmm… I know this is a beautiful picture. Yes its not me in the picture. They are family and were visiting us in Brisbane. So decided to take them to Stradbroke Island for a day trip. This is Amity Point at Stradbroke Island. Thank you]]></description>
			<content:encoded><![CDATA[<p><span style="font-family: 'Monotype Corsiva'; font-size: medium;">Hmmm… I know this is a beautiful picture.</span></p>
<p><img class="aligncenter size-full wp-image-363" title="DSC_4917.jpg" src="http://blogs.myhappymoments.com/wp-content/uploads/2009/10/DSC_4917.jpg" alt="DSC_4917.jpg" width="321" height="480" /></p>
<p><span style="font-family: 'Monotype Corsiva'; font-size: medium;">Yes its not me in the picture. They are family and were visiting us in Brisbane. So decided to take them to Stradbroke Island for a day trip.</span></p>
<p><span style="font-family: 'Monotype Corsiva'; font-size: medium;">This is Amity Point at Stradbroke Island.</span></p>
<p><span style="font-family: 'Monotype Corsiva'; font-size: medium;"> </span></p>
<p><span style="font-family: 'Monotype Corsiva'; font-size: medium;">Thank you. </span></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.myhappymoments.com/2009/10/09/hmmm-what-a-cool-moment/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A night view of Brisbane City from Kangaroo Point</title>
		<link>http://blogs.myhappymoments.com/2009/10/09/a-night-view-of-brisbane-city-from-kangaroo-point/</link>
		<comments>http://blogs.myhappymoments.com/2009/10/09/a-night-view-of-brisbane-city-from-kangaroo-point/#comments</comments>
		<pubDate>Fri, 09 Oct 2009 14:45:00 +0000</pubDate>
		<dc:creator>Vish</dc:creator>
				<category><![CDATA[Photography]]></category>
		<category><![CDATA[Brisbane]]></category>

		<guid isPermaLink="false">http://blogs.myhappymoments.com/2009/10/09/a-night-view-of-brisbane-city-from-kangaroo-point/</guid>
		<description><![CDATA[This is another view of Brisbane CBD from Kangaroo Point. I have been living in Brisbane for about 18 months and this is the first time have visited here. It’s a nice place]]></description>
			<content:encoded><![CDATA[<p><a href="http://blogs.myhappymoments.com/wp-content/uploads/2009/10/DSC_5126.jpg"><img style="border-top-width: 0px; display: block; border-left-width: 0px; float: none; border-bottom-width: 0px; margin: 5px auto; border-right-width: 0px" title="DSC_5126" src="http://blogs.myhappymoments.com/wp-content/uploads/2009/10/DSC_5126_thumb.jpg" border="0" alt="DSC_5126" width="554" height="372" /></a></p>
<p><span style="font-family: Chiller; "> </span></p>
<p><span style="font-family: Chiller; "> </span></p>
<p><span style="font-family: 'Monotype Corsiva'; font-size: medium; ">This is another view of Brisbane CBD from Kangaroo Point.</span></p>
<p><span style="font-family: 'Monotype Corsiva'; font-size: medium; ">I have been living in Brisbane for about 18 months and this is the first time have visited here. It’s a nice place.</span></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.myhappymoments.com/2009/10/09/a-night-view-of-brisbane-city-from-kangaroo-point/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Brisbane</title>
		<link>http://blogs.myhappymoments.com/2009/10/09/brisbane-4/</link>
		<comments>http://blogs.myhappymoments.com/2009/10/09/brisbane-4/#comments</comments>
		<pubDate>Fri, 09 Oct 2009 09:33:00 +0000</pubDate>
		<dc:creator>Vish</dc:creator>
				<category><![CDATA[Photography]]></category>
		<category><![CDATA[Brisbane]]></category>

		<guid isPermaLink="false">http://blogs.myhappymoments.com/2009/10/09/brisbane-4/</guid>
		<description><![CDATA[&#160;Hi, Its been long since I have posted any photo on my blog. Its not that I haven’t done it before but this is my first serious attempt. This picture was taken from “GoodWill Foot Bridge” in Brisbane, Australia. I am just trying my hands off on my Nikon D60. Any suggestions and Constructive criticism&#160; ]]></description>
			<content:encoded><![CDATA[<p><a href="http://blogs.myhappymoments.com/wp-content/uploads/2009/10/DSC_51671.jpg"><img title="DSC_5167" style="border-right: 0px; border-top: 0px; display: block; float: none; margin: 5px auto; border-left: 0px; border-bottom: 0px" height="199" alt="DSC_5167" src="http://blogs.myhappymoments.com/wp-content/uploads/2009/10/DSC_5167_thumb1.jpg" width="550" border="0" /></a>&#160;<font face="Monotype Corsiva" size="4">Hi,</font></p>
<p><font face="Monotype Corsiva" size="4">Its been long since I have posted any photo on my blog. Its not that I haven’t done it before but this is my first serious attempt.</font></p>
<p><font face="Monotype Corsiva" size="4">This picture was taken from “GoodWill Foot Bridge” in Brisbane, Australia.</font></p>
<p><font face="Monotype Corsiva" size="4">I am just trying my hands off on my Nikon D60. Any suggestions and Constructive criticism&#160; is welcomed.</font></p>
<p><font face="Monotype Corsiva" size="4">Thank you.</font></p>
<p><font face="Monotype Corsiva" size="4">&#160;</font></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.myhappymoments.com/2009/10/09/brisbane-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Login failed &#8211; Error Number: 18456 &#8211; Severity: 14 &#8211; State: 1</title>
		<link>http://blogs.myhappymoments.com/2009/08/20/login-failed-error-number-18456-severity-14-state-1/</link>
		<comments>http://blogs.myhappymoments.com/2009/08/20/login-failed-error-number-18456-severity-14-state-1/#comments</comments>
		<pubDate>Thu, 20 Aug 2009 10:54:00 +0000</pubDate>
		<dc:creator>Vish</dc:creator>
				<category><![CDATA[SQL Server 2005]]></category>
		<category><![CDATA[SQL Server Login]]></category>

		<guid isPermaLink="false">http://blogs.myhappymoments.com/?p=294</guid>
		<description><![CDATA[My Problem :

The SQL 2005 did install correctly on my 64bit Vista but I was not able to log on to the server and it gave the following error

Login failed for user 'PC-Name\UserName'. (.Net SqlClient Data Provider)

Error Number: 18456 - Severity: 14 - State: ]]></description>
			<content:encoded><![CDATA[<p>I came across this error when I tried to Install MS SQL 2005 on Vista.I have installed SQL plenty of times and never had problems before on my XP.</p>
<p>My Problem :</p>
<p>The SQL 2005 did install correctly on my 64bit Vista but I was not able to log on to the server and it gave the following error</p>
<p>Login failed for user &#8216;PC-Name\UserName&#8217;. (.Net SqlClient Data Provider)</p>
<p>Error Number: 18456 &#8211; Severity: 14 &#8211; State: 1<span id="more-294"></span></p>
<p>Solved :</p>
<p>Instead of running SQL Server Management studio as current user I run it as an Administrator.<br />
[ad#Link_5]<br />
Then in the Object Browser Select the server &gt; Security &gt; Logins &gt; New Login</p>
<p>Following window will be displayed</p>
<p><a href="http://blogs.myhappymoments.com/wp-content/uploads/2009/08/SQL2005LoginNew1.gif"><img style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" title="SQL 2005 Login - New" src="http://blogs.myhappymoments.com/wp-content/uploads/2009/08/SQL2005LoginNew_thumb1.gif" border="0" alt="SQL 2005 Login - New" width="240" height="216" /></a></p>
<p>Click Search and the following window will be displayed</p>
<p><a href="http://blogs.myhappymoments.com/wp-content/uploads/2009/08/SQL2005SelectUser1.gif"><img style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" title="SQL 2005 Select User" src="http://blogs.myhappymoments.com/wp-content/uploads/2009/08/SQL2005SelectUser_thumb1.gif" border="0" alt="SQL 2005 Select User" width="240" height="216" /></a></p>
<p>In the text box enter your username and press check name and press ok.</p>
<p>And you are done.</p>
<p>Now you will not have to run your SQL Server Management studio as an Administrator.</p>
<p>Thank you</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.myhappymoments.com/2009/08/20/login-failed-error-number-18456-severity-14-state-1/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>NOKIA E Series Internet call and SIP Settings</title>
		<link>http://blogs.myhappymoments.com/2009/08/19/nokia-e-series-internet-call-and-sip-settings/</link>
		<comments>http://blogs.myhappymoments.com/2009/08/19/nokia-e-series-internet-call-and-sip-settings/#comments</comments>
		<pubDate>Wed, 19 Aug 2009 11:23:00 +0000</pubDate>
		<dc:creator>Vish</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Nokia]]></category>
		<category><![CDATA[SIP Setting on Nokia]]></category>

		<guid isPermaLink="false">http://blogs.myhappymoments.com/?p=287</guid>
		<description><![CDATA[  I have recently purchased Nokia E63. So far all I would say that it is really worth the price. It has many features one of the best thing I like about the phone is Voip client which can use WiFi connection as well. There is no need of additional softwares to use these settings. ]]></description>
			<content:encoded><![CDATA[<p> </p>
<p>I have recently purchased Nokia E63. So far all I would say that it is really worth the price. It has many features one of the best thing I like about the phone is Voip client which can use WiFi connection as well.</p>
<p>There is no need of additional softwares to use these settings.</p>
<p>I am registered to few SIP enabled voip services such as <a href="http://freecall.com" target="_blank">Freecall</a> and <a href="http://www.actionvoip.com" target="_blank">Actionvoip</a>. International calls with these are really cheaper.</p>
<p>If you own one of the e series phone you can use the settings to configure you phone to use sip for making calls.</p>
<p> </p>
<p>Below are the steps to configure Voip Client on Phone</p>
<p>Navigate to  Home &gt; Tools &gt; Settings &gt; Connection &gt; SIP Setting</p>
<p>Select Option &gt; New SIP Profile</p>
<p><strong>Profile Name:</strong> Any Name<br />
<strong>Service Profile:</strong> IETF<br />
<strong>Default Access point:</strong> Your Wi-Fi Network or Internet Connection<br />
<strong>Public user name:</strong> <a href="mailto:username@sip.provider.com(sip.actionvoip.com">username@sip.provider.com(sip.actionvoip.com</a>)<br />
<strong>Use Compression:</strong> No<br />
<strong>Registration:</strong> Always on (or the other one, if you want it to be on-demand)<br />
<strong>Use Security:</strong> No</p>
<p><strong>Proxy Server: Do nothing </strong></p>
<p><strong>Registrar Settings</strong></p>
<ul>
<li><strong>Registrar Server address:</strong> sip.provider.com</li>
<li><strong>Realm:</strong> sip.provider.com</li>
<li><strong>User Name:</strong> username</li>
<li><strong>Password:</strong> password</li>
<li><strong>Transport Type:</strong> UDP</li>
<li><strong>Port:</strong> 5060</li>
</ul>
<p><strong>Once you are done with this </strong></p>
<p>Navigate to  Home &gt; Tools &gt; Settings &gt; Connection &gt; Internet Tel.</p>
<p>Select Options &gt; New Profile and Name it.</p>
<p>Select SIP profile created above</p>
<p><strong> </strong></p>
<p>And Now you are done.</p>
<p>Go to contacts and you will see Internet Call in the options and make a test call.</p>
<p> </p>
<p>Enjoy Voip calls on your Mobile.</p>
<p>Thank you</p>
<p> </p>
<p>For Nokia N85 Please go to the following post.<br />
<a title="Permanent Link: Nokia N85 SIP Settings for VoIP Setup" rel="bookmark" href="http://blogs.myhappymoments.com/2009/11/18/nokia-n85-sip-settings-for-voip-setup/" target="_blank">Nokia N85 SIP Settings for VoIP Setup</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.myhappymoments.com/2009/08/19/nokia-e-series-internet-call-and-sip-settings/feed/</wfw:commentRss>
		<slash:comments>41</slash:comments>
		</item>
		<item>
		<title></title>
		<link>http://blogs.myhappymoments.com/2009/08/05/281/</link>
		<comments>http://blogs.myhappymoments.com/2009/08/05/281/#comments</comments>
		<pubDate>Wed, 05 Aug 2009 23:41:30 +0000</pubDate>
		<dc:creator>Vish</dc:creator>
				<category><![CDATA[Funny Stuff]]></category>

		<guid isPermaLink="false">http://blogs.myhappymoments.com/?p=281</guid>
		<description><![CDATA[આ માણસ જાણે મોબાઇલ થઈ ગયો જરૂર જેટલી જ લાગણીઓ રિચાર્જ કરતો થઈ ગયો ખરે ટાણે જ ઝીરો બેલેન્સ દેખાડતો થઈ ગયો આ માણસ જાણે મોબાઈલ થઈ ગયો! સામે કોણ છે એ જોઈને સંબંધ રિસિવ કરતો થઈ ગયો સ્વાર્થનાં ચશ્મા પહેરી મિત્રતાને પણ સ્વીચ ઓફ કરતો થઈ ગયો આ માણસ જાણે મોબાઈલ થઈ ગયો! આજે ]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;">
<h1><span style="text-decoration: underline;">આ માણસ જાણે મોબાઇલ થઈ ગયો</span></h1>
<h3>
<p style="text-align: center;">જરૂર જેટલી જ લાગણીઓ</p>
<p style="text-align: center;">રિચાર્જ કરતો થઈ ગયો</p>
<p style="text-align: center;">ખરે ટાણે જ ઝીરો બેલેન્સ</p>
<p style="text-align: center;">દેખાડતો થઈ ગયો</p>
<p style="text-align: center;">આ માણસ જાણે મોબાઈલ થઈ ગયો!</p>
<p style="text-align: center;">સામે કોણ છે એ જોઈને</p>
<p style="text-align: center;">સંબંધ રિસિવ કરતો થઈ ગયો</p>
<p style="text-align: center;">સ્વાર્થનાં ચશ્મા પહેરી મિત્રતાને પણ</p>
<p style="text-align: center;">સ્વીચ ઓફ કરતો થઈ ગયો</p>
<p style="text-align: center;">આ માણસ જાણે મોબાઈલ થઈ ગયો!</p>
<p style="text-align: center;">આજે રીટા તો કાલે ગીતા એમ</p>
<p style="text-align: center;">મોડેલ બદલતો થઈ ગયો</p>
<p style="text-align: center;">મિસિસને છોડીને મિસને</p>
<p style="text-align: center;">એ કોલ કરતો થઈ ગયો</p>
<p style="text-align: center;">આ માણસ જાણે મોબાઈલ થઈ ગયો!</p>
<p style="text-align: center;">પડોશીનુ ઊંચું મોડેલ જોઈ</p>
<p style="text-align: center;">જુઓને જીવ બાળતો થઈ ગયો</p>
<p style="text-align: center;">સાલું, થોડી રાહ જોઈ હોત તો!</p>
<p style="text-align: center;">એવું ઘરમાં યે કહેતો થઈ ગયો</p>
<p style="text-align: center;">આ માણસ જાણે મોબાઈલ થઈ ગયો!</p>
<p style="text-align: center;">હોય બરોડામાં અને છું સુરતમાં</p>
<p style="text-align: center;">એમ કહેતો એ થઈ ગયો</p>
<p style="text-align: center;">આજે હચ તો કાલે રિલાયન્સ એમ</p>
<p style="text-align: center;">ફાયદો જોઈ મિત્રો પણ બદલતો થઈ ગયો</p>
<p style="text-align: center;">આ માણસ જાણે મોબાઈલ થઈ ગયો!</p>
<p style="text-align: center;">ઈનકમિંગ – આઉટ ગોઈંગ ફ્રીનાં ચક્કરમાં</p>
<p style="text-align: center;">કુટુંબનાં જ કવરેજ બહાર એ થઈ ગયો</p>
<p style="text-align: center;">હવે શું થાય બોલો</p>
<p style="text-align: center;">મોડેલ ફોર ટુ ઝીરો એ થઈ ગયો</p>
<p style="text-align: center;">આ માણસ જાણે મોબાઈલ થઈ ગયો!</p>
<p style="text-align: center;"> </p>
<p style="text-align: center;">
</h3>
<p>Note: Received as a forwarded email.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.myhappymoments.com/2009/08/05/281/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Read a Web Page and send it as an HTML Email</title>
		<link>http://blogs.myhappymoments.com/2009/04/22/read-a-web-page-and-send-it-as-an-html-email/</link>
		<comments>http://blogs.myhappymoments.com/2009/04/22/read-a-web-page-and-send-it-as-an-html-email/#comments</comments>
		<pubDate>Thu, 23 Apr 2009 01:43:46 +0000</pubDate>
		<dc:creator>Vish</dc:creator>
				<category><![CDATA[Asp.net]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Vb.net]]></category>

		<guid isPermaLink="false">http://blogs.myhappymoments.com/?p=276</guid>
		<description><![CDATA[Recently I was asked to write a code to send entire Aspx page as an HTML mail using VB.Net. Private Function ReadAspxPage(ByVal url As String) As String Dim htmlPage As String Dim objResponse As System.Net.WebResponse Dim objRequest As System.Net.WebRequest = System.Net.HttpWebRequest.Create(url) objResponse = objRequest.GetResponse() Dim readpage As New System.IO.StreamReader(objResponse.GetResponseStream()) htmlPage = readpage.ReadToEnd() readpage.Close() Return htmlPage.toString() ]]></description>
			<content:encoded><![CDATA[<p>Recently I was asked to write a code to send entire Aspx page as an HTML mail using VB.Net.<br />
<code>Private Function ReadAspxPage(ByVal url As String) As String<br />
Dim htmlPage As String<br />
Dim objResponse As System.Net.WebResponse<br />
Dim objRequest As System.Net.WebRequest = System.Net.HttpWebRequest.Create(url)<br />
objResponse = objRequest.GetResponse()<br />
Dim readpage As New System.IO.StreamReader(objResponse.GetResponseStream())</p>
<p>htmlPage = readpage.ReadToEnd()<br />
readpage.Close()</p>
<p>Return htmlPage.toString()<br />
End Function</code></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.myhappymoments.com/2009/04/22/read-a-web-page-and-send-it-as-an-html-email/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to read HTML file onServer in ASP.Net</title>
		<link>http://blogs.myhappymoments.com/2009/04/22/how-to-read-html-file-onserver-in-aspnet/</link>
		<comments>http://blogs.myhappymoments.com/2009/04/22/how-to-read-html-file-onserver-in-aspnet/#comments</comments>
		<pubDate>Thu, 23 Apr 2009 01:31:57 +0000</pubDate>
		<dc:creator>Vish</dc:creator>
				<category><![CDATA[Asp.net]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Read File]]></category>
		<category><![CDATA[Vb.net]]></category>

		<guid isPermaLink="false">http://blogs.myhappymoments.com/?p=273</guid>
		<description><![CDATA[Private Function GetEmailTemplate(ByVal templateName As String) As String Dim sr As IO.StreamReader = New IO.StreamReader(System.Web.HttpContext.Current.Server.MapPath(templateName)) Dim body As String = sr.ReadToEnd() sr.Close() sr.Dispose() Return body End Function]]></description>
			<content:encoded><![CDATA[<p><code>Private Function GetEmailTemplate(ByVal templateName As String) As String<br />
        Dim sr As IO.StreamReader = New IO.StreamReader(System.Web.HttpContext.Current.Server.MapPath(templateName))<br />
        Dim body As String = sr.ReadToEnd()<br />
        sr.Close()<br />
        sr.Dispose()<br />
        Return body<br />
    End Function</code></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.myhappymoments.com/2009/04/22/how-to-read-html-file-onserver-in-aspnet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Read all Mail Merge Field in an Collection.</title>
		<link>http://blogs.myhappymoments.com/2009/04/22/read-all-mail-merge-field-in-an-collection/</link>
		<comments>http://blogs.myhappymoments.com/2009/04/22/read-all-mail-merge-field-in-an-collection/#comments</comments>
		<pubDate>Thu, 23 Apr 2009 00:37:49 +0000</pubDate>
		<dc:creator>Vish</dc:creator>
				<category><![CDATA[Asp.net]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Mail Merge]]></category>
		<category><![CDATA[Vb.net]]></category>

		<guid isPermaLink="false">http://blogs.myhappymoments.com/?p=267</guid>
		<description><![CDATA[I was asked to read all Mail merge Files in an HTML Template and then perform a mail Merge. The MailMerge Fields were like ##[Field]##. So thought to use regex to find the fields. The biggest task for me was to write a regex for Matching ##[Merge Fields]##. This is the code that I ended ]]></description>
			<content:encoded><![CDATA[<p>I was asked to read all Mail merge Files in an HTML Template and then perform a mail Merge.<br />
The MailMerge Fields were like ##[Field]##.<br />
So thought to use regex to find the fields.</p>
<p>The biggest task for me was to write a regex for Matching ##[Merge Fields]##.<br />
<span id="more-267"></span><br />
This is the code that I ended with.</p>
<p bgcolor="red"><code>Private Function GetEmailMergeFields(ByVal body As String) As ListItemCollection<br />
Dim list As ListItemCollection = New ListItemCollection</p>
<p>Dim pattern As String = "##\[.*?\]##"<br />
Dim mymatches As System.Text.RegularExpressions.MatchCollection<br />
Dim myregex As New System.Text.RegularExpressions.Regex(pattern)</p>
<p>mymatches = myregex.Matches(body)<br />
For Each succ As System.Text.RegularExpressions.Match In mymatches<br />
list.Add(succ.Value)<br />
Next</p>
<p>Return list</p>
<p>End Function</code></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.myhappymoments.com/2009/04/22/read-all-mail-merge-field-in-an-collection/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
