<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress.com" -->
<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/"
	>

<channel>
	<title>stuffs &amp;laquo; WordPress.com Tag Feed</title>
	<link>http://en.wordpress.com/tag/stuffs/</link>
	<description>Feed of posts on WordPress.com tagged "stuffs"</description>
	<pubDate>Tue, 22 Dec 2009 14:27:33 +0000</pubDate>

	<generator>http://en.wordpress.com/tags/</generator>
	<language>en</language>

<item>
<title><![CDATA[True paging using SQL script]]></title>
<link>http://query4dotnet.wordpress.com/2009/12/22/true-pagging-using-sql-script/</link>
<pubDate>Tue, 22 Dec 2009 11:06:23 +0000</pubDate>
<dc:creator>query4dotnet</dc:creator>
<guid>http://query4dotnet.wordpress.com/2009/12/22/true-pagging-using-sql-script/</guid>
<description><![CDATA[The system gets overloaded when we fetch complete data from the database and display a fixed sized o]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>The system gets overloaded when we fetch complete data from the database and display a fixed sized of<br />
data per page.</p>
<p>Although the data is distributed among different pages however it is fetched at a longer period of time</p>
<p>An efficient way is to fetch data per page.</p>
<p>Following example helps you search news and display results accordingly by stored procedure.</p>
<p><strong>CREATE PROCEDURE [dbo].[News_Search]<br />
@SearchText nvarchar(100) &#8211;Search text,what we want ot search in news.<br />
,@PageNo int &#8212;-Page number<br />
,@PageSize int&#8212;&#8211;Page size<br />
,@TotalRecords int output&#8211;Total how many records are there in search result<br />
AS<br />
BEGIN</strong></p>
<p><strong>SET NOCOUNT ON;<br />
DECLARE @StartFrom int<br />
SET @StartFrom = @PageSize * (@PageNo &#8211; 1);<br />
SET @TotalRecords=(SELECT ISNULL(COUNT(*),0)FROM ViwNews<br />
WHERE ViwNews.NewsIsDisable &#60;&#62; 0 and<br />
@SearchText Is Null OR ViwNews.NewsTitle Like  @SearchText);</strong></p>
<p><strong>SELECT searchtable.*<br />
FROM<br />
(SELECT<br />
ROW_NUMBER() OVER (ORDER BY ViwNews.NewsTitle)AS [RecNo]<br />
,ViwNews.*<br />
FROM ViwNews<br />
WHERE ViwNews.NewsIsDisable &#60;&#62; 0 and<br />
@SearchText Is Null OR ViwNews.NewsTitle Like  @SearchText<br />
) AS searchtable<br />
WHERE searchtable.RecNo &#62; @StartFrom And searchtable.RecNo &#60;=(@StartFrom+@PageSize);</strong></p>
<p><strong>END</strong></p>
<p>I</p>
<p>In above query we have 4 parameters.</p>
<p>1) @SearchText used to pass for the search criteria.<br />
2) @PageNo used to fetch which page number we want to fetch from the result.<br />
3) @PageSize used to determine page size<br />
4) @TotalRecords used to create number of pages<br />
We can determine number of pages by dividing total records with page size.</p>
<p>In query we have used ROW_NUMBER() function which gives Record number obtained in the result sequentially.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Christmastime]]></title>
<link>http://andrewdarwitan.wordpress.com/2009/12/22/christmastime/</link>
<pubDate>Tue, 22 Dec 2009 09:28:42 +0000</pubDate>
<dc:creator>Andrew Darwitan</dc:creator>
<guid>http://andrewdarwitan.wordpress.com/2009/12/22/christmastime/</guid>
<description><![CDATA[It is that time of year again &#8211; that peaceful atmosphere surrounds you wherever you go. Or if ]]></description>
<content:encoded><![CDATA[It is that time of year again &#8211; that peaceful atmosphere surrounds you wherever you go. Or if ]]></content:encoded>
</item>
<item>
<title><![CDATA[Afterglow]]></title>
<link>http://andrewdarwitan.wordpress.com/2009/12/21/afterglow/</link>
<pubDate>Mon, 21 Dec 2009 15:58:31 +0000</pubDate>
<dc:creator>Andrew Darwitan</dc:creator>
<guid>http://andrewdarwitan.wordpress.com/2009/12/21/afterglow/</guid>
<description><![CDATA[I was re-watching Sarah McLachlan&#8217;s Afterglow Live DVD this morning &#8211; after a whole nigh]]></description>
<content:encoded><![CDATA[I was re-watching Sarah McLachlan&#8217;s Afterglow Live DVD this morning &#8211; after a whole nigh]]></content:encoded>
</item>
<item>
<title><![CDATA[Common Projects Achilles Low]]></title>
<link>http://cmpiez.wordpress.com/2009/12/21/common-projects-achilles-low/</link>
<pubDate>Mon, 21 Dec 2009 08:55:51 +0000</pubDate>
<dc:creator>cmpiez</dc:creator>
<guid>http://cmpiez.wordpress.com/2009/12/21/common-projects-achilles-low/</guid>
<description><![CDATA[Unfortunately, the mid one doesnt fits on me perfectly! So here comes my new low one! The tax killed]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Unfortunately, the mid one doesnt fits on me perfectly!<br />
<a href="http://s285.photobucket.com/albums/ll73/cmpiez/?action=view&#38;current=dsafasdfasdf.jpg" target="_blank"><img src="http://i285.photobucket.com/albums/ll73/cmpiez/dsafasdfasdf.jpg" border="0" alt="Photobucket"></a><br />
<a href="http://s285.photobucket.com/albums/ll73/cmpiez/?action=view&#38;current=asdf.jpg" target="_blank"><img src="http://i285.photobucket.com/albums/ll73/cmpiez/asdf.jpg" border="0" alt="Photobucket"></a></p>
<p>So here comes my new low one! <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /><br />
The tax killed me tho.. It costed me abt 2,400 Baht!<br />
I love it anyway!</p>
<p>CMPIEZ <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Sick Sister, Ill-Mannered Bride]]></title>
<link>http://andrewdarwitan.wordpress.com/2009/12/19/sick-sister-ill-mannered-bride/</link>
<pubDate>Sat, 19 Dec 2009 14:33:36 +0000</pubDate>
<dc:creator>Andrew Darwitan</dc:creator>
<guid>http://andrewdarwitan.wordpress.com/2009/12/19/sick-sister-ill-mannered-bride/</guid>
<description><![CDATA[More movies watched. This time, for a change, me and my friends are watching drama and comedy. I wou]]></description>
<content:encoded><![CDATA[More movies watched. This time, for a change, me and my friends are watching drama and comedy. I wou]]></content:encoded>
</item>
<item>
<title><![CDATA[iron man 2]]></title>
<link>http://commejesuis.wordpress.com/2009/12/17/iron-man-2-3/</link>
<pubDate>Thu, 17 Dec 2009 18:50:30 +0000</pubDate>
<dc:creator>comme je suis</dc:creator>
<guid>http://commejesuis.wordpress.com/2009/12/17/iron-man-2-3/</guid>
<description><![CDATA[i just creamed my pants.]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><embed src='http://admin.brightcove.com/destination/player/player.swf' bgcolor='#FFFFFF' flashvars='viewerSecureGatewayURL=https://services.brightcove.com/services/amfgateway&#038;servicesURL=http://services.brightcove.com/services&#038;cdnURL=http://admin.brightcove.com&#038;autoStart=false&#038;initVideoId=57780504001' base='http://admin.brightcove.com' name='bcPlayer' width='480' height='360' allowFullScreen='true' allowScriptAccess='always' seamlesstabbing='false' type='application/x-shockwave-flash' swLiveConnect='true' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' /></p>
<p>i just creamed my pants.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[iron man 2]]></title>
<link>http://commejesuis.wordpress.com/2009/12/17/iron-man-2/</link>
<pubDate>Thu, 17 Dec 2009 18:45:57 +0000</pubDate>
<dc:creator>comme je suis</dc:creator>
<guid>http://commejesuis.wordpress.com/2009/12/17/iron-man-2/</guid>
<description><![CDATA[i just creamed my pants]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><embed src='http://admin.brightcove.com/destination/player/player.swf' bgcolor='#FFFFFF' flashvars='viewerSecureGatewayURL=https://services.brightcove.com/services/amfgateway&#038;servicesURL=http://services.brightcove.com/services&#038;cdnURL=http://admin.brightcove.com&#038;autoStart=false&#038;initVideoId=57780504001' base='http://admin.brightcove.com' name='bcPlayer' width='480' height='360' allowFullScreen='true' allowScriptAccess='always' seamlesstabbing='false' type='application/x-shockwave-flash' swLiveConnect='true' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' /></p>
<p>i just creamed my pants</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[When I Was Your Age]]></title>
<link>http://andrewdarwitan.wordpress.com/2009/12/15/when-i-was-your-age/</link>
<pubDate>Tue, 15 Dec 2009 12:17:15 +0000</pubDate>
<dc:creator>Andrew Darwitan</dc:creator>
<guid>http://andrewdarwitan.wordpress.com/2009/12/15/when-i-was-your-age/</guid>
<description><![CDATA[I decided to compile those When-I-Was-Your-Age groups that I joined on FaceBook and post it on Secon]]></description>
<content:encoded><![CDATA[I decided to compile those When-I-Was-Your-Age groups that I joined on FaceBook and post it on Secon]]></content:encoded>
</item>
<item>
<title><![CDATA[Dior Homme UMC'08 19cm]]></title>
<link>http://cmpiez.wordpress.com/2009/12/15/dior-homme-umc08-19cm/</link>
<pubDate>Tue, 15 Dec 2009 11:58:26 +0000</pubDate>
<dc:creator>cmpiez</dc:creator>
<guid>http://cmpiez.wordpress.com/2009/12/15/dior-homme-umc08-19cm/</guid>
<description><![CDATA[After Ive been waitin for this shit for a long long time! Hmm.. Finally!!!!!! It fits on me perfectl]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>After Ive been waitin for this shit for a long long time!<br />
Hmm.. Finally!!!!!! <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /><br />
<a href="http://s285.photobucket.com/albums/ll73/cmpiez/?action=view&#38;current=IMG_2923.jpg" target="_blank"><img src="http://i285.photobucket.com/albums/ll73/cmpiez/IMG_2923.jpg" border="0" alt="Photobucket" /></a><br />
<a href="http://s285.photobucket.com/albums/ll73/cmpiez/?action=view&#38;current=IMG_2904.jpg" target="_blank"><img src="http://i285.photobucket.com/albums/ll73/cmpiez/IMG_2904.jpg" border="0" alt="Photobucket" /></a><br />
<a href="http://s285.photobucket.com/albums/ll73/cmpiez/?action=view&#38;current=IMG_2907.jpg" target="_blank"><img src="http://i285.photobucket.com/albums/ll73/cmpiez/IMG_2907.jpg" border="0" alt="Photobucket" /></a><br />
<a href="http://s285.photobucket.com/albums/ll73/cmpiez/?action=view&#38;current=IMG_2917.jpg" target="_blank"><img src="http://i285.photobucket.com/albums/ll73/cmpiez/IMG_2917.jpg" border="0" alt="Photobucket" /></a><br />
<a href="http://s285.photobucket.com/albums/ll73/cmpiez/?action=view&#38;current=IMG_2926.jpg" target="_blank"><img src="http://i285.photobucket.com/albums/ll73/cmpiez/IMG_2926.jpg" border="0" alt="Photobucket" /></a><br />
<a href="http://s285.photobucket.com/albums/ll73/cmpiez/?action=view&#38;current=IMG_2922.jpg" target="_blank"><img src="http://i285.photobucket.com/albums/ll73/cmpiez/IMG_2922.jpg" border="0" alt="Photobucket" /></a></p>
<p>It fits on me perfectly!<br />
Damn, I love this jeans loadssssssssss&#60;3<br />
Hopefully, I can get some more in the future!</p>
<p>Big Big thanks to<strong> P&#8217;Nutz (Stupid_pimp)</strong>.<br />
You are appreciated! <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>CMPIEZ :/</p>
<p>PS. Fit pics are comin&#8217; soon!</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Creepy Movie Week]]></title>
<link>http://andrewdarwitan.wordpress.com/2009/12/14/creepy-movie-week/</link>
<pubDate>Mon, 14 Dec 2009 12:38:10 +0000</pubDate>
<dc:creator>Andrew Darwitan</dc:creator>
<guid>http://andrewdarwitan.wordpress.com/2009/12/14/creepy-movie-week/</guid>
<description><![CDATA[Three frightening flicks in one night and, a few nights prior, a non-horror The Storm Warriors which]]></description>
<content:encoded><![CDATA[Three frightening flicks in one night and, a few nights prior, a non-horror The Storm Warriors which]]></content:encoded>
</item>
<item>
<title><![CDATA[The 987 System: Solution or Fad?]]></title>
<link>http://andrewdarwitan.wordpress.com/2009/12/12/the-987-system-solution-or-fad/</link>
<pubDate>Fri, 11 Dec 2009 16:01:24 +0000</pubDate>
<dc:creator>Andrew Darwitan</dc:creator>
<guid>http://andrewdarwitan.wordpress.com/2009/12/12/the-987-system-solution-or-fad/</guid>
<description><![CDATA[01. Is your writing objective? This is a controversial issue affecting a huge amount of NTU students]]></description>
<content:encoded><![CDATA[01. Is your writing objective? This is a controversial issue affecting a huge amount of NTU students]]></content:encoded>
</item>
<item>
<title><![CDATA[Vampires, Ninjas, and the Apocalypse]]></title>
<link>http://andrewdarwitan.wordpress.com/2009/12/11/vampires-ninjas-and-the-apocalypse/</link>
<pubDate>Thu, 10 Dec 2009 16:01:23 +0000</pubDate>
<dc:creator>Andrew Darwitan</dc:creator>
<guid>http://andrewdarwitan.wordpress.com/2009/12/11/vampires-ninjas-and-the-apocalypse/</guid>
<description><![CDATA[Just a short review and compilation of thoughts on three movies that I have watched recently. New Mo]]></description>
<content:encoded><![CDATA[Just a short review and compilation of thoughts on three movies that I have watched recently. New Mo]]></content:encoded>
</item>
<item>
<title><![CDATA[For the Twihard...:)]]></title>
<link>http://wito1006.wordpress.com/2009/12/10/for-the-twihard/</link>
<pubDate>Thu, 10 Dec 2009 07:41:44 +0000</pubDate>
<dc:creator>wito1006</dc:creator>
<guid>http://wito1006.wordpress.com/2009/12/10/for-the-twihard/</guid>
<description><![CDATA[3 Covers of Twilight&#8217;s Stars&#8230;pick your team!  ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>3 Covers of Twilight&#8217;s Stars&#8230;pick your team! <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a href="http://wito1006.wordpress.com/files/2009/12/ew1078bb.jpg"><img class="size-thumbnail wp-image-50 alignleft" title="ew1078bb" src="http://wito1006.wordpress.com/files/2009/12/ew1078bb.jpg?w=105" alt="" width="105" height="150" /></a><a href="http://wito1006.wordpress.com/files/2009/12/ew1078cc.jpg"><img class="size-thumbnail wp-image-49   alignleft" title="ew1078cc" src="http://wito1006.wordpress.com/files/2009/12/ew1078cc.jpg?w=105" alt="" width="105" height="150" /></a><a href="http://wito1006.wordpress.com/files/2009/12/ew1078aa.jpg"><img class="size-thumbnail wp-image-48 alignleft" title="ew1078aa" src="http://wito1006.wordpress.com/files/2009/12/ew1078aa.jpg?w=105" alt="" width="105" height="150" /></a></p>
<p style="text-align:left;"> </p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[On Singapore Idol 3 Top 03]]></title>
<link>http://andrewdarwitan.wordpress.com/2009/12/10/on-singapore-idol-3-top-03/</link>
<pubDate>Thu, 10 Dec 2009 03:53:35 +0000</pubDate>
<dc:creator>Andrew Darwitan</dc:creator>
<guid>http://andrewdarwitan.wordpress.com/2009/12/10/on-singapore-idol-3-top-03/</guid>
<description><![CDATA[Tabitha Nauser &#8211; Spotlight There is nothing to be doubted about her vocal performance already.]]></description>
<content:encoded><![CDATA[Tabitha Nauser &#8211; Spotlight There is nothing to be doubted about her vocal performance already.]]></content:encoded>
</item>
<item>
<title><![CDATA[Burberry Blue Label]]></title>
<link>http://auggiezhuan.wordpress.com/2009/12/10/burberry-blue-label/</link>
<pubDate>Thu, 10 Dec 2009 01:25:06 +0000</pubDate>
<dc:creator>Augustine &amp; Claudia</dc:creator>
<guid>http://auggiezhuan.wordpress.com/2009/12/10/burberry-blue-label/</guid>
<description><![CDATA[My most expensive item from japan. Lol. Burberry Blue Label worth about SG$400]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>My most expensive item from japan. Lol. Burberry Blue Label worth about SG$400</p>
<p><a href="http://auggiezhuan.files.wordpress.com/2009/12/p_1600_1200_06348806-e08e-4bc1-be6b-e211485cb437.jpeg"><img src="http://auggiezhuan.files.wordpress.com/2009/12/p_1600_1200_06348806-e08e-4bc1-be6b-e211485cb437.jpeg?w=225&#038;h=300" alt="" width="225" height="300" class="alignnone size-full wp-image-364" /></a></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Micky Mouse Bag]]></title>
<link>http://auggiezhuan.wordpress.com/2009/12/09/micky-mouse-bag/</link>
<pubDate>Wed, 09 Dec 2009 04:00:42 +0000</pubDate>
<dc:creator>Augustine &amp; Claudia</dc:creator>
<guid>http://auggiezhuan.wordpress.com/2009/12/09/micky-mouse-bag/</guid>
<description><![CDATA[Cute micky mouse bag bought from Japan.]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Cute micky mouse bag bought from Japan. </p>
<p><a href="http://auggiezhuan.files.wordpress.com/2009/12/l_1600_1200_8272a098-f1d9-4b97-bf3c-0e8f87e8d4bc.jpeg"><img src="http://auggiezhuan.files.wordpress.com/2009/12/l_1600_1200_8272a098-f1d9-4b97-bf3c-0e8f87e8d4bc.jpeg?w=300&#038;h=225" alt="" width="300" height="225" class="alignnone size-full wp-image-364" /></a></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Course Review: MB102]]></title>
<link>http://andrewdarwitan.wordpress.com/2009/12/09/course-review-mb102/</link>
<pubDate>Tue, 08 Dec 2009 16:01:07 +0000</pubDate>
<dc:creator>Andrew Darwitan</dc:creator>
<guid>http://andrewdarwitan.wordpress.com/2009/12/09/course-review-mb102/</guid>
<description><![CDATA[MB102 Business Finance Instructor: Kong Yoon Kee, Lee-Chin Foong Tow Marina Official Description The]]></description>
<content:encoded><![CDATA[MB102 Business Finance Instructor: Kong Yoon Kee, Lee-Chin Foong Tow Marina Official Description The]]></content:encoded>
</item>
<item>
<title><![CDATA[Hello Kitty luggage]]></title>
<link>http://auggiezhuan.wordpress.com/2009/12/08/hello-kitty-luggage/</link>
<pubDate>Tue, 08 Dec 2009 08:42:37 +0000</pubDate>
<dc:creator>Augustine &amp; Claudia</dc:creator>
<guid>http://auggiezhuan.wordpress.com/2009/12/08/hello-kitty-luggage/</guid>
<description><![CDATA[This is the Hello Kitty luggage won during our honeymoon trip. Only 2 luggages to be won! First time]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>This is the Hello Kitty luggage won during our honeymoon trip. Only 2 luggages to be won! First time attempt and won the big prize. Kekeke </p>
<p><a href="http://auggiezhuan.files.wordpress.com/2009/12/p_1600_1200_7a94eab5-8d81-412b-8d94-2bf928214730.jpeg"><img src="http://auggiezhuan.files.wordpress.com/2009/12/p_1600_1200_7a94eab5-8d81-412b-8d94-2bf928214730.jpeg?w=225&#038;h=300" alt="" width="225" height="300" class="alignnone size-full wp-image-364" /></a></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Course Review: EE8086]]></title>
<link>http://andrewdarwitan.wordpress.com/2009/12/08/course-review-ee8086/</link>
<pubDate>Mon, 07 Dec 2009 16:01:35 +0000</pubDate>
<dc:creator>Andrew Darwitan</dc:creator>
<guid>http://andrewdarwitan.wordpress.com/2009/12/08/course-review-ee8086/</guid>
<description><![CDATA[EE8086 Astronomy &#8211; Stars, Galaxies and Cosmology Instructor: Ng Beng Koon, Yu Siu Fung Officia]]></description>
<content:encoded><![CDATA[EE8086 Astronomy &#8211; Stars, Galaxies and Cosmology Instructor: Ng Beng Koon, Yu Siu Fung Officia]]></content:encoded>
</item>
<item>
<title><![CDATA[How to send email Asynchronously ]]></title>
<link>http://query4dotnet.wordpress.com/2009/12/07/how-to-send-email-asynchronously/</link>
<pubDate>Mon, 07 Dec 2009 13:33:45 +0000</pubDate>
<dc:creator>query4dotnet</dc:creator>
<guid>http://query4dotnet.wordpress.com/2009/12/07/how-to-send-email-asynchronously/</guid>
<description><![CDATA[When Our smtp Serve does not respond to immediately at that time it takes time to send email. So it ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>When Our smtp Serve does not respond to immediately at that time it takes time to send email. So it happens that our application does not respond to user and user shut down our application. In this case its wise that we should send email Asynchronously and when email send successfully we just give notification it send successfully or not sent what so ever. This all things are available in the .net framework 2.0.</p>
<p>I am assuming that we know how to send email like to create MailMessage object then add subject,From and To address, body ,attachment etc..</p>
<p>Then create object of SmtpClient to send email.</p>
<p>After the send method call SendAsync method and pass the MailMessage Object also wire up method to SendComplete event.</p>
<p>//Send email</p>
<p>SmtpClient sc = new SmtpClient(“smtp.abc.com”);</p>
<p>//we have MailMessage Object mm.</p>
<p>sc.Send(mm);</p>
<p>//Wire up event of SendCompleted</p>
<p>sc.SendCompleted += new SendCompletedEventHandler(sc_SendCompleted);</p>
<p>sc.SendAsync(mm,null);</p>
<p>In the method of sc_SendCompleted we can cancel to sending of email, whether email is sent successfully or email encountered any error to deliver etc.</p>
<p>//Write method for sc_SendCompleted</p>
<p>void sc_SendCompleted(object sender, AsyncCompletedEventArgs e)</p>
<p>{</p>
<p>if(e.Cancelled)</p>
<p>{</p>
<p>MessageBox.Show(“Message sending is Cancelled”);</p>
<p>}</p>
<p>else if(e.Error != null)</p>
<p>{</p>
<p>MessageBox.Show(“Error to Send Email Error is:” + e.Error.ToString() );</p>
<p>}</p>
<p>else</p>
<p>{</p>
<p>MessageBox.Show(“Message sent Successfully”);</p>
<p>}</p>
<p>}</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Send Image in the body of Email in .Net]]></title>
<link>http://query4dotnet.wordpress.com/2009/12/07/send-image-in-the-body-of-email-in-net/</link>
<pubDate>Mon, 07 Dec 2009 13:25:04 +0000</pubDate>
<dc:creator>query4dotnet</dc:creator>
<guid>http://query4dotnet.wordpress.com/2009/12/07/send-image-in-the-body-of-email-in-net/</guid>
<description><![CDATA[Its occasionally require to send images in the body of the email. I am assuming that we have the bas]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Its occasionally require to send images in the body of the email. I am assuming that we have the basic idea of send email in .net. As we know to send image ,its obvious that we need to use IsHTML flag turned on. So it renders the body as HTML. In the body of HTML we can embed the image as we use in the HTML page. But it’s a bit differ as we do for the HTML page. Sometimes it happens that receipt email client does not support to render HTML in that case we should have plain text.</p>
<p>Alternateview and LinkedResource classes are used to do above things.</p>
<p>Below code demonstrates all the things.</p>
<p>//Create HTML message body</p>
<p>//Reference embed image with content ID</p>
<p>string htmlBody = “&#60;html&#62;&#60;body&#62;&#60;h1&#62;Hi! Picture Email&#60;/h1&#62;&#60;br&#62;&#60;img src=\<a href="img1%5C">cid:img1\</a>&#62;&#60;/body&#62;&#60;/htm&#62;”;</p>
<p>AlternateView avHtml = AlternateView.CreateAlternateViewFromString(htmlBody,null,MediaTypeNames.Text.Html);</p>
<p>//Create LinkedResource Object for each embedded image.</p>
<p>LinkedResource img1 = new LinkedResource(“c:\pic.jpg”,MediaTypeNames.Image.Jpeg);</p>
<p>Img1.ContentId = “img1”;</p>
<p>avHtml.LinkedResource.Add(img1);</p>
<p>//Create alternate view for unsupported clients</p>
<p>string textBody = “To view Image you must use email client which supports HTML message”;</p>
<p>AlternateView.CreateAlternateViewFromString(textBody,null,MediaTypeNames.Text.Html);</p>
<p>//Add the altenate view instead of body of MailMessage.Body</p>
<p>MailMessage mm = new MailMessage();</p>
<p>mm.AlternateViews.Add(avHtml);</p>
<p>mm.AlternateViews.Add(textBody);</p>
<p>//Address and Send the Message.</p>
<p>m.From = new MailAddress(“<a href="mailto:me@abc.com">me@abc.com</a>”, “My Self”);</p>
<p>m.To.Add(new MailAddress(“<a href="mailto:you@abc.com">you@abc.com</a>”,”Your Self”);</p>
<p>m.Subject = “Picture Message Using Alternate Views”;</p>
<p>SmtpClient client = new Smtpclient(“smtp.abc.com”);</p>
<p>client.Send(mm);</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Course Review: CBC811]]></title>
<link>http://andrewdarwitan.wordpress.com/2009/12/07/course-review-cbc811/</link>
<pubDate>Sun, 06 Dec 2009 16:09:03 +0000</pubDate>
<dc:creator>Andrew Darwitan</dc:creator>
<guid>http://andrewdarwitan.wordpress.com/2009/12/07/course-review-cbc811/</guid>
<description><![CDATA[CBC811 Forensic Science Instructor: Roderick Wayland Bates Official Description Provides general kno]]></description>
<content:encoded><![CDATA[CBC811 Forensic Science Instructor: Roderick Wayland Bates Official Description Provides general kno]]></content:encoded>
</item>

</channel>
</rss>
