<?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/"
	xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Ashraf's Blog</title>
	<atom:link href="http://ashrafur.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://ashrafur.wordpress.com</link>
	<description>Weblogs of Ashrafur Rahaman</description>
	<lastBuildDate>Mon, 13 Jul 2009 10:14:24 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='ashrafur.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/ee9ead71c89b7a06482cd3fb859f57a3?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Ashraf's Blog</title>
		<link>http://ashrafur.wordpress.com</link>
	</image>
			<item>
		<title>Auto Growing TextArea</title>
		<link>http://ashrafur.wordpress.com/2009/07/11/auto-growing-textarea/</link>
		<comments>http://ashrafur.wordpress.com/2009/07/11/auto-growing-textarea/#comments</comments>
		<pubDate>Sat, 11 Jul 2009 19:38:01 +0000</pubDate>
		<dc:creator>ashraf</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://ashrafur.wordpress.com/?p=305</guid>
		<description><![CDATA[Ehsan was telling me about the litte, simple and useful control.  All of us already seen that control in facebook chatting window. that textboox automatically bacome bigger according to the text written in the textbox.
Here is the demo of that JQuery http://www.aclevercookie.com/demos/autogrow_textarea.html
I have tested that in asp.net TextBox it works. Here is my code in [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ashrafur.wordpress.com&blog=1768637&post=305&subd=ashrafur&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Ehsan was telling me about the litte, simple and useful control.  All of us already seen that control in facebook chatting window. that textboox automatically bacome bigger according to the text written in the textbox.</p>
<p>Here is the demo of that JQuery <a href="http://www.aclevercookie.com/demos/autogrow_textarea.html">http://www.aclevercookie.com/demos/autogrow_textarea.html</a></p>
<p>I have tested that in asp.net TextBox it works. Here is my code in asp.net for auto growing textbox.</p>
<p>You should download <a href="http://www.jquery.com">JQuery </a>and <a href="http://www.aclevercookie.com/files/jquery.autogrow-1.2.2.zip">JQuery Auto Grow</a> to use it.</p>
<p>&lt;script type=&#8221;text/javascript&#8221; src=&#8221;jquery-1.3.2.js&#8221;&gt;&lt;/script&gt;<br />
&lt;script type=&#8221;text/javascript&#8221; src=&#8221;jquery.autogrow.js&#8221;&gt;&lt;/script&gt;<br />
&lt;script type=&#8221;text/javascript&#8221;&gt;<br />
$(document).ready(function() {<br />
$(&#8216;.expanding&#8217;).autogrow();<br />
});</p>
<p>&lt;style type=&#8221;text/css&#8221;&gt;<br />
.expanding {line-height: 18px;}<br />
&lt;/style&gt;</p>
<p>&lt;asp:TextBox ID=&#8221;myTxt&#8221; runat=&#8221;server&#8221; CssClass=&#8221;expanding&#8221; AutoPostBack=&#8221;false&#8221; TextMode=&#8221;MultiLine&#8221;&gt;&lt;/asp:TextBox&gt;</p>
Posted in Programming  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ashrafur.wordpress.com/305/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ashrafur.wordpress.com/305/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ashrafur.wordpress.com/305/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ashrafur.wordpress.com/305/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ashrafur.wordpress.com/305/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ashrafur.wordpress.com/305/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ashrafur.wordpress.com/305/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ashrafur.wordpress.com/305/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ashrafur.wordpress.com/305/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ashrafur.wordpress.com/305/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ashrafur.wordpress.com&blog=1768637&post=305&subd=ashrafur&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://ashrafur.wordpress.com/2009/07/11/auto-growing-textarea/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4dbea6e5000e7de0a2e678852c3f6d78?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ashraf</media:title>
		</media:content>
	</item>
		<item>
		<title>ASP.NET Web Site Performance Improvement</title>
		<link>http://ashrafur.wordpress.com/2009/05/27/asp-net-web-site-performance-improvement/</link>
		<comments>http://ashrafur.wordpress.com/2009/05/27/asp-net-web-site-performance-improvement/#comments</comments>
		<pubDate>Wed, 27 May 2009 04:56:07 +0000</pubDate>
		<dc:creator>ashraf</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://ashrafur.wordpress.com/?p=291</guid>
		<description><![CDATA[Recently I developed a web application which calls many services and loads a lot of data in every page with a lot of calculation in the background from the database, so the site became slower. Then I start searching Google to find out a good solution and got some real good ideas to improve my [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ashrafur.wordpress.com&blog=1768637&post=291&subd=ashrafur&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Recently I developed a web application which calls many services and loads a lot of data in every page with a lot of calculation in the background from the database, so the site became slower. Then I start searching Google to find out a good solution and got some real good ideas to improve my web application&#8217;s performance. Here, <a title="ASP.NET Web Site Performance Improvement" href="http://www.codeproject.com/KB/aspnet/aspnetPerformance.aspx" target="_blank">in this article</a>, I am shared the tips I applied in the application to improve performance and it really works fine now.</p>
<p><a title="ASP.NET Web Site Performance Improvement" href="http://www.codeproject.com/KB/aspnet/aspnetPerformance.aspx" target="_blank">http://www.codeproject.com/KB/aspnet/aspnetPerformance.aspx</a></p>
Posted in Programming  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ashrafur.wordpress.com/291/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ashrafur.wordpress.com/291/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ashrafur.wordpress.com/291/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ashrafur.wordpress.com/291/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ashrafur.wordpress.com/291/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ashrafur.wordpress.com/291/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ashrafur.wordpress.com/291/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ashrafur.wordpress.com/291/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ashrafur.wordpress.com/291/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ashrafur.wordpress.com/291/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ashrafur.wordpress.com&blog=1768637&post=291&subd=ashrafur&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://ashrafur.wordpress.com/2009/05/27/asp-net-web-site-performance-improvement/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4dbea6e5000e7de0a2e678852c3f6d78?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ashraf</media:title>
		</media:content>
	</item>
		<item>
		<title>JavaScript for GridView Row Level Access</title>
		<link>http://ashrafur.wordpress.com/2009/02/26/javascript-for-gridview-row-level-access/</link>
		<comments>http://ashrafur.wordpress.com/2009/02/26/javascript-for-gridview-row-level-access/#comments</comments>
		<pubDate>Thu, 26 Feb 2009 03:45:22 +0000</pubDate>
		<dc:creator>ashraf</dc:creator>
				<category><![CDATA[Asp.Net]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://ashrafur.wordpress.com/?p=204</guid>
		<description><![CDATA[I needed to access every cell of a GridView in Client Side in one of my application, so needed to call javascript from GridView Cell. Actually I have a Dropdownlist , select any of the item from the dropdownlist will change the value of the same row in a different cell and will change the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ashrafur.wordpress.com&blog=1768637&post=204&subd=ashrafur&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I needed to access every cell of a GridView in Client Side in one of my application, so needed to call javascript from GridView Cell. Actually I have a Dropdownlist , select any of the item from the dropdownlist will change the value of the same row in a different cell and will change the GridView footer row  value.<br />
<img src="http://ashrafur.files.wordpress.com/2009/02/1.jpg" alt="" /><img src="http://ashrafur.files.wordpress.com/2009/02/2.jpg" alt="" /><img src="http://ashrafur.files.wordpress.com/2009/02/3.jpg" alt="" /><img src="http://ashrafur.files.wordpress.com/2009/02/4.jpg" alt="" /><br />
Here is a article showing how to access row and cell of a gridview from client site.<a title="Javascript for GridView" href="http://weblogs.asp.net/ashrafurrahaman/archive/2009/02/26/javascript-for-gridview-row-level.aspx"><br />
http://weblogs.asp.net/ashrafurrahaman/archive/2009/02/26/javascript-for-gridview-row-level.aspx</a></p>
Posted in Asp.Net, Javascript  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ashrafur.wordpress.com/204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ashrafur.wordpress.com/204/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ashrafur.wordpress.com/204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ashrafur.wordpress.com/204/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ashrafur.wordpress.com/204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ashrafur.wordpress.com/204/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ashrafur.wordpress.com/204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ashrafur.wordpress.com/204/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ashrafur.wordpress.com/204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ashrafur.wordpress.com/204/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ashrafur.wordpress.com&blog=1768637&post=204&subd=ashrafur&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://ashrafur.wordpress.com/2009/02/26/javascript-for-gridview-row-level-access/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4dbea6e5000e7de0a2e678852c3f6d78?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ashraf</media:title>
		</media:content>

		<media:content url="http://ashrafur.files.wordpress.com/2009/02/1.jpg" medium="image" />

		<media:content url="http://ashrafur.files.wordpress.com/2009/02/2.jpg" medium="image" />

		<media:content url="http://ashrafur.files.wordpress.com/2009/02/3.jpg" medium="image" />

		<media:content url="http://ashrafur.files.wordpress.com/2009/02/4.jpg" medium="image" />
	</item>
		<item>
		<title>Run WebApp in a fixed port of development web server</title>
		<link>http://ashrafur.wordpress.com/2009/02/23/run-webapp-in-a-fixed-port-of-development-web-server/</link>
		<comments>http://ashrafur.wordpress.com/2009/02/23/run-webapp-in-a-fixed-port-of-development-web-server/#comments</comments>
		<pubDate>Mon, 23 Feb 2009 06:28:09 +0000</pubDate>
		<dc:creator>ashraf</dc:creator>
				<category><![CDATA[Asp.Net]]></category>

		<guid isPermaLink="false">http://ashrafur.wordpress.com/?p=201</guid>
		<description><![CDATA[I needed to run my web application in a fixed port of my web server due to fixed SiteURL in the web site whcih I needed to change every time from the web config.
Here are simple and easy steps tp run your web application in a fixed port of your web server.

1. Go to Solution [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ashrafur.wordpress.com&blog=1768637&post=201&subd=ashrafur&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I needed to run my web application in a fixed port of my web server due to fixed SiteURL in the web site whcih I needed to change every time from the web config.</p>
<p>Here are simple and easy steps tp run your web application in a fixed port of your web server.</p>
<p><img src="http://ashrafur.files.wordpress.com/2009/02/fixedport.png" alt="" /></p>
<p>1. Go to <strong>Solution Explorer</strong> of your project<br />
2. Go to properties of your web site clicking <strong>F</strong>4 on your web site name.<br />
3. Make &#8220;<strong>Use Dynamic Port</strong>&#8221; to &#8220;<strong>False</strong>&#8221; and put a &#8220;<strong>Port Number</strong>&#8220;, you website will always run in that port number.</p>
Posted in Asp.Net  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ashrafur.wordpress.com/201/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ashrafur.wordpress.com/201/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ashrafur.wordpress.com/201/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ashrafur.wordpress.com/201/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ashrafur.wordpress.com/201/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ashrafur.wordpress.com/201/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ashrafur.wordpress.com/201/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ashrafur.wordpress.com/201/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ashrafur.wordpress.com/201/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ashrafur.wordpress.com/201/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ashrafur.wordpress.com&blog=1768637&post=201&subd=ashrafur&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://ashrafur.wordpress.com/2009/02/23/run-webapp-in-a-fixed-port-of-development-web-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4dbea6e5000e7de0a2e678852c3f6d78?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ashraf</media:title>
		</media:content>

		<media:content url="http://ashrafur.files.wordpress.com/2009/02/fixedport.png" medium="image" />
	</item>
		<item>
		<title>Send asynchronous mail using asp.net</title>
		<link>http://ashrafur.wordpress.com/2008/10/30/send-asynchronous-mail-using-aspnet/</link>
		<comments>http://ashrafur.wordpress.com/2008/10/30/send-asynchronous-mail-using-aspnet/#comments</comments>
		<pubDate>Thu, 30 Oct 2008 08:05:43 +0000</pubDate>
		<dc:creator>ashraf</dc:creator>
				<category><![CDATA[C#.NET]]></category>
		<category><![CDATA[ASP.NET]]></category>

		<guid isPermaLink="false">http://ashrafur.wordpress.com/?p=198</guid>
		<description><![CDATA[Send mail is an important and common feature in asp.net. using system.net.mail namespace  we can send mail. In that article my main concert is to show how shall we send mail asynchronously, as for a bulk of mail sending asynchronous mail send is very important and asp.net have that feature in it.
I had written a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ashrafur.wordpress.com&blog=1768637&post=198&subd=ashrafur&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Send mail is an important and common feature in asp.net. using <a title="system.net.mail" href="http://msdn.microsoft.com/en-us/library/system.net.mail.aspx">system.net.mail</a> namespace  we can send mail. In that article my main concert is to show how shall we send mail asynchronously, as for a bulk of mail sending asynchronous mail send is very important and asp.net have that feature in it.</p>
<p>I had written a wiki in asp.net on with code on  send asynchronous mail.</p>
<p>here you will get codes do send  asynchronous mail <a title="send asynchronous mail" href="http://wiki.asp.net/page.aspx/536/send-asynchronous-mail-using-aspnet/" target="_blank">http://wiki.asp.net/page.aspx/536/send-asynchronous-mail-using-aspnet/</a></p>
Posted in C#.NET Tagged: ASP.NET <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ashrafur.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ashrafur.wordpress.com/198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ashrafur.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ashrafur.wordpress.com/198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ashrafur.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ashrafur.wordpress.com/198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ashrafur.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ashrafur.wordpress.com/198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ashrafur.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ashrafur.wordpress.com/198/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ashrafur.wordpress.com&blog=1768637&post=198&subd=ashrafur&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://ashrafur.wordpress.com/2008/10/30/send-asynchronous-mail-using-aspnet/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4dbea6e5000e7de0a2e678852c3f6d78?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ashraf</media:title>
		</media:content>
	</item>
		<item>
		<title>Convert HTML data to text data</title>
		<link>http://ashrafur.wordpress.com/2008/10/18/convert-html-to-text-data/</link>
		<comments>http://ashrafur.wordpress.com/2008/10/18/convert-html-to-text-data/#comments</comments>
		<pubDate>Sat, 18 Oct 2008 20:04:06 +0000</pubDate>
		<dc:creator>ashraf</dc:creator>
				<category><![CDATA[C#.NET]]></category>

		<guid isPermaLink="false">http://ashrafur.wordpress.com/?p=178</guid>
		<description><![CDATA[I was reading httpwebresponse data and get the basic data from the html data. So i need to remove all html tag, script tags, style tags from page to get original text data. So use a simple regular expression to remove tags. this regular expression was simple like that.
Regex.Replace(mainData,@&#8221;&#60;scripts[^&#62;]*&#62;.*?&#60;/script&#62;&#124;&#60;s*(?!/?(?:br?&#124;i&#124;p&#124;u)b[^&#62;]*&#62;)[^&#62;]*&#62;&#8221;,&#8221;", RegexOptions.IgnoreCase &#124; RegexOptions.Singleline) ;
I was working [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ashrafur.wordpress.com&blog=1768637&post=178&subd=ashrafur&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I was reading httpwebresponse data and get the basic data from the html data. So i need to remove all html tag, script tags, style tags from page to get original text data. So use a simple regular expression to remove tags. this regular expression was simple like that.</p>
<p>Regex.Replace(mainData,@&#8221;&lt;scripts[^&gt;]*&gt;.*?&lt;/script&gt;|&lt;s*(?!/?(?:br?|i|p|u)b[^&gt;]*&gt;)[^&gt;]*&gt;&#8221;,&#8221;", RegexOptions.IgnoreCase | RegexOptions.Singleline) ;</p>
<p>I was working fine but i found that for some pages these are making problem specially problems are coming to remove javascript and styles from html data and data was not coming in a good format.</p>
<p>Finally I have got a very nice tool to do that . name of the tool is <a title="html agility pack" href="http://www.codeplex.com/htmlagilitypack" target="_blank">Html Agility</a> .</p>
<p>this is a very nice features in html agility , it has libraires to convert html to xml, html to rss and html to text. I used html to text yo convert my httpresponse data to text.</p>
<p>in html agility you will find a class HTMLDocument.cs If you want to convert your webresponses then just add these codes in Load method, bacuase in load method this is reading html file from a local drive so to read webresponse use that code.</p>
<p>HttpWebRequest request = (HttpWebRequest)WebRequest.Create(uri);<br />
HttpWebResponse response = (HttpWebResponse)request.GetResponse();<br />
StreamReader sr = new StreamReader(response.GetResponseStream(), OptionDefaultStreamEncoding);</p>
Posted in C#.NET  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ashrafur.wordpress.com/178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ashrafur.wordpress.com/178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ashrafur.wordpress.com/178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ashrafur.wordpress.com/178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ashrafur.wordpress.com/178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ashrafur.wordpress.com/178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ashrafur.wordpress.com/178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ashrafur.wordpress.com/178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ashrafur.wordpress.com/178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ashrafur.wordpress.com/178/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ashrafur.wordpress.com&blog=1768637&post=178&subd=ashrafur&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://ashrafur.wordpress.com/2008/10/18/convert-html-to-text-data/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4dbea6e5000e7de0a2e678852c3f6d78?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ashraf</media:title>
		</media:content>
	</item>
		<item>
		<title>ASP.NET Caching with Cache Dependency on a File</title>
		<link>http://ashrafur.wordpress.com/2008/10/17/aspnet-caching-with-cache-dependency-on-a-file/</link>
		<comments>http://ashrafur.wordpress.com/2008/10/17/aspnet-caching-with-cache-dependency-on-a-file/#comments</comments>
		<pubDate>Fri, 17 Oct 2008 07:41:57 +0000</pubDate>
		<dc:creator>ashraf</dc:creator>
				<category><![CDATA[C#.NET]]></category>

		<guid isPermaLink="false">http://ashrafur.wordpress.com/?p=172</guid>
		<description><![CDATA[Caching is a very important concept in programming . caching is a very nice technique to speed up processing. To increase performance of application caching is a great enhance.
One of my buddy razwan has written a very nice article on asp.net caching using cache dependency on file. You can follow this article to implement that [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ashrafur.wordpress.com&blog=1768637&post=172&subd=ashrafur&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Caching is a very important concept in programming . caching is a very nice technique to speed up processing. To increase performance of application caching is a great enhance.</p>
<p>One of my buddy razwan has written a very nice article on asp.net caching using cache dependency on file. You can follow this article to implement that in your applicaiton to speed it up.</p>
<p>here is the link <a title="caching with cache dependency on a file" href="http://www.razwankader.com/?p=3" target="_blank">ASP.NET Caching with Cache Dependency on a File</a></p>
Posted in C#.NET  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ashrafur.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ashrafur.wordpress.com/172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ashrafur.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ashrafur.wordpress.com/172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ashrafur.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ashrafur.wordpress.com/172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ashrafur.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ashrafur.wordpress.com/172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ashrafur.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ashrafur.wordpress.com/172/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ashrafur.wordpress.com&blog=1768637&post=172&subd=ashrafur&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://ashrafur.wordpress.com/2008/10/17/aspnet-caching-with-cache-dependency-on-a-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4dbea6e5000e7de0a2e678852c3f6d78?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ashraf</media:title>
		</media:content>
	</item>
		<item>
		<title>Wrapping text</title>
		<link>http://ashrafur.wordpress.com/2008/10/16/wrapping-text/</link>
		<comments>http://ashrafur.wordpress.com/2008/10/16/wrapping-text/#comments</comments>
		<pubDate>Thu, 16 Oct 2008 13:01:42 +0000</pubDate>
		<dc:creator>ashraf</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://ashrafur.wordpress.com/?p=170</guid>
		<description><![CDATA[Sometime we face problen to wrap text. this is a very easy solution to solve wrapping problem .
public string GetFormattedText(string str)
{
string[] parts = str.Split(new char[] { &#8216; &#8216; });
StringBuilder sb = new StringBuilder();
foreach (string s in parts)
{
sb.Append(Server.HtmlEncode(s));
sb.Append(&#8221; &#60;wbr&#62;&#8221;);
}
return sb.ToString();
}
In case of firefox its is more easier, just use white-space: -moz-pre-wrap in css style.
Posted in CSS [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ashrafur.wordpress.com&blog=1768637&post=170&subd=ashrafur&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Sometime we face problen to wrap text. this is a very easy solution to solve wrapping problem .</p>
<p>public string GetFormattedText(string str)<br />
{<br />
string[] parts = str.Split(new char[] { &#8216; &#8216; });<br />
StringBuilder sb = new StringBuilder();<br />
foreach (string s in parts)<br />
{<br />
sb.Append(Server.HtmlEncode(s));<br />
sb.Append(&#8221; &lt;wbr&gt;&#8221;);<br />
}<br />
return sb.ToString();<br />
}</p>
<p>In case of firefox its is more easier, just use white-space: -moz-pre-wrap in css style.</p>
Posted in CSS Tagged: Programming <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ashrafur.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ashrafur.wordpress.com/170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ashrafur.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ashrafur.wordpress.com/170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ashrafur.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ashrafur.wordpress.com/170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ashrafur.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ashrafur.wordpress.com/170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ashrafur.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ashrafur.wordpress.com/170/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ashrafur.wordpress.com&blog=1768637&post=170&subd=ashrafur&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://ashrafur.wordpress.com/2008/10/16/wrapping-text/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4dbea6e5000e7de0a2e678852c3f6d78?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ashraf</media:title>
		</media:content>
	</item>
		<item>
		<title>Singleton &#8211; instantiate just ONE OBJECT</title>
		<link>http://ashrafur.wordpress.com/2008/08/13/singleton-instantiate-just-one-object/</link>
		<comments>http://ashrafur.wordpress.com/2008/08/13/singleton-instantiate-just-one-object/#comments</comments>
		<pubDate>Wed, 13 Aug 2008 12:43:34 +0000</pubDate>
		<dc:creator>ashraf</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[design pattern]]></category>

		<guid isPermaLink="false">http://ashrafur.wordpress.com/?p=149</guid>
		<description><![CDATA[i was reading a book head first design pattern, actually read that book many times, an excellent  book. Sharing my  details idea  singleton design patter.
class diagram of Singleton design pattern

a singleton class is look like that
public class Singleton
{
private static Singleton UniqueInstance; //variable to hold one instance of the class Singleton
private Singleton(){}
public static [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ashrafur.wordpress.com&blog=1768637&post=149&subd=ashrafur&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>i was reading a book head first design pattern, actually read that book many times, an excellent  book. Sharing my  details idea  singleton design patter.</p>
<p>class diagram of Singleton design pattern</p>
<div><img src="http://ashrafur.files.wordpress.com/2008/08/singleton.png" alt="" /></div>
<p>a singleton class is look like that<br />
<strong>public class Singleton<br />
{<br />
private static Singleton UniqueInstance; //variable to hold one instance of the class Singleton<br />
private Singleton(){}<br />
public static Singleton getInstance()<br />
{<br />
if(UniqueInstance==null)UniqueInstance=new Singleton();<br />
return UniqueInstance;<br />
}<br />
}<br />
</strong> here the Singleton class constructor is private and it has only one static method to get it, that ensures that this class has only one instance, and provide a global point to access it.</p>
<p>Now think for multi threading&#8230;<br />
what will happen??? suppose you have 2 threads, so 2 different instance of the object will be created.<br />
WHATS THE SOLUTION ??? <span id="more-149"></span><br />
add keyword to getInstance(), so it will ensure that 2 threads will not enter in the method at the same time. So solution codes looks like that.<br />
<strong> public class Singleton<br />
{<br />
private static Singleton UniqueInstance; </strong></p>
<p><strong>private Singleton(){}<br />
public static synchronized Singleton getInstance()<br />
{<br />
if(UniqueInstance==null)UniqueInstance=new Singleton();<br />
return UniqueInstance;<br />
}<br />
}</strong></p>
<p>but Remember that Synchronization is EXPENSIVE.<br />
lets use &#8220;double-checked locking&#8221; to reduce the use of Synchronization in getInstance()<br />
<strong> public class Singleton<br />
{<br />
private </strong><strong> volatile</strong><strong> static Singleton UniqueInstance;<br />
private Singleton(){}<br />
public static Singleton getInstance()<br />
{<br />
if(UniqueInstance==null)<br />
{<br />
synchronized (Singleton.class)<br />
{<br />
if(UniqueInstance==null)<br />
UniqueInstance=new Singleton();<br />
}<br />
return UniqueInstance;<br />
}<br />
</strong> so this check for an instance and if there in not one, enter a synchronized block.<br />
and volatile keyword ensures that multiple threads handle the uniqueInstance variable perfectly.</p>
<p>so hope that now you can perfectly implement Singleton design pattern in you application.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ashrafur.wordpress.com/149/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ashrafur.wordpress.com/149/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ashrafur.wordpress.com/149/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ashrafur.wordpress.com/149/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ashrafur.wordpress.com/149/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ashrafur.wordpress.com/149/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ashrafur.wordpress.com/149/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ashrafur.wordpress.com/149/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ashrafur.wordpress.com/149/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ashrafur.wordpress.com/149/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ashrafur.wordpress.com/149/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ashrafur.wordpress.com/149/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ashrafur.wordpress.com&blog=1768637&post=149&subd=ashrafur&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://ashrafur.wordpress.com/2008/08/13/singleton-instantiate-just-one-object/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4dbea6e5000e7de0a2e678852c3f6d78?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ashraf</media:title>
		</media:content>

		<media:content url="http://ashrafur.files.wordpress.com/2008/08/singleton.png" medium="image" />
	</item>
		<item>
		<title>fun with Javascript</title>
		<link>http://ashrafur.wordpress.com/2008/08/07/fun-with-javascript/</link>
		<comments>http://ashrafur.wordpress.com/2008/08/07/fun-with-javascript/#comments</comments>
		<pubDate>Thu, 07 Aug 2008 09:07:13 +0000</pubDate>
		<dc:creator>ashraf</dc:creator>
				<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://ashrafur.wordpress.com/?p=166</guid>
		<description><![CDATA[I faced a problem to call 2 methods at the same time from body. and the solution is very simple. I wrote a script block at the end of the page look like that.
&#60;SCRIPT LANGUAGE=&#8221;JAVASCRIPT&#8221;&#62;
if(document.body.onload)
{
var existingOnLoad = document.body.onload;
document.body.onload = function()
{
existingOnLoad();
MyOwnMethod();
}
}
&#60;/SCRIPT&#62;
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ashrafur.wordpress.com&blog=1768637&post=166&subd=ashrafur&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I faced a problem to call 2 methods at the same time from body. and the solution is very simple. I wrote a script block at the end of the page look like that.</p>
<p>&lt;SCRIPT LANGUAGE=&#8221;JAVASCRIPT&#8221;&gt;</p>
<p>if(document.body.onload)</p>
<p>{</p>
<p>var existingOnLoad = document.body.onload;</p>
<p>document.body.onload = function()</p>
<p>{</p>
<p>existingOnLoad();</p>
<p>MyOwnMethod();</p>
<p>}</p>
<p>}</p>
<p>&lt;/SCRIPT&gt;</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ashrafur.wordpress.com/166/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ashrafur.wordpress.com/166/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ashrafur.wordpress.com/166/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ashrafur.wordpress.com/166/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ashrafur.wordpress.com/166/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ashrafur.wordpress.com/166/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ashrafur.wordpress.com/166/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ashrafur.wordpress.com/166/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ashrafur.wordpress.com/166/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ashrafur.wordpress.com/166/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ashrafur.wordpress.com/166/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ashrafur.wordpress.com/166/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ashrafur.wordpress.com&blog=1768637&post=166&subd=ashrafur&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://ashrafur.wordpress.com/2008/08/07/fun-with-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4dbea6e5000e7de0a2e678852c3f6d78?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ashraf</media:title>
		</media:content>
	</item>
	</channel>
</rss>