<?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:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Vision beyond horizons</title>
	<atom:link href="http://yourtahir.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://yourtahir.wordpress.com</link>
	<description>Be Honest.</description>
	<lastBuildDate>Fri, 10 Oct 2008 12:57:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='yourtahir.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Vision beyond horizons</title>
		<link>http://yourtahir.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://yourtahir.wordpress.com/osd.xml" title="Vision beyond horizons" />
	<atom:link rel='hub' href='http://yourtahir.wordpress.com/?pushpress=hub'/>
		<item>
		<title>How to get thumbnail image of a website.</title>
		<link>http://yourtahir.wordpress.com/2008/10/10/how-to-get-thumbnail-image-of-a-website/</link>
		<comments>http://yourtahir.wordpress.com/2008/10/10/how-to-get-thumbnail-image-of-a-website/#comments</comments>
		<pubDate>Fri, 10 Oct 2008 12:57:26 +0000</pubDate>
		<dc:creator>tahir24434</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[capture thumbnail image]]></category>
		<category><![CDATA[capture thumbnail image with c#]]></category>
		<category><![CDATA[create thumbnail with asp.net]]></category>
		<category><![CDATA[create thumbnail with c#]]></category>
		<category><![CDATA[get thumbnail of url]]></category>
		<category><![CDATA[get thumbnail of url with asp.net 2.0]]></category>

		<guid isPermaLink="false">http://yourtahir.wordpress.com/?p=40</guid>
		<description><![CDATA[Quite often, in web site development we need to capture the thumbnail image of particular website. Following is the way to do it. Step 1. Make a new class which will hold all neccessary things to capture the thumbnail public class WebsiteThumbnailImageGenerator { public static Bitmap GetWebSiteThumbnail(string Url, int BrowserWidth, int BrowserHeight, int ThumbnailWidth, int [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yourtahir.wordpress.com&amp;blog=2422879&amp;post=40&amp;subd=yourtahir&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Quite often, in web site development we need to capture the thumbnail image of particular website. Following is the way to do it.</p>
<p><strong>Step 1. Make a new class which will hold all neccessary things to capture the thumbnail</strong></p>
<p><span style="color:#ff9900;">public class WebsiteThumbnailImageGenerator<br />
{<br />
public static Bitmap GetWebSiteThumbnail(string Url, int BrowserWidth, int BrowserHeight, int ThumbnailWidth, int ThumbnailHeight)<br />
{<br />
WebsiteThumbnailImage thumbnailGenerator = new WebsiteThumbnailImage(Url, BrowserWidth, BrowserHeight, ThumbnailWidth, ThumbnailHeight);<br />
return thumbnailGenerator.GenerateWebSiteThumbnailImage();<br />
}</span></p>
<p><span style="color:#ff9900;">private class WebsiteThumbnailImage<br />
{<br />
public WebsiteThumbnailImage(string Url, int BrowserWidth, int BrowserHeight, int ThumbnailWidth, int ThumbnailHeight)<br />
{<br />
this.m_Url = Url;<br />
this.m_BrowserWidth = BrowserWidth;<br />
this.m_BrowserHeight = BrowserHeight;<br />
this.m_ThumbnailHeight = ThumbnailHeight;<br />
this.m_ThumbnailWidth = ThumbnailWidth;<br />
}</span></p>
<p><span style="color:#ff9900;">private string m_Url = null;<br />
public string Url<br />
{<br />
get<br />
{<br />
return m_Url;<br />
}<br />
set<br />
{<br />
m_Url = value;<br />
}<br />
}</span></p>
<p><span style="color:#ff9900;">private Bitmap m_Bitmap = null;<br />
public Bitmap ThumbnailImage<br />
{<br />
get<br />
{<br />
return m_Bitmap;<br />
}<br />
}</span></p>
<p><span style="color:#ff9900;">private int m_ThumbnailWidth;<br />
public int ThumbnailWidth<br />
{<br />
get<br />
{<br />
return m_ThumbnailWidth;<br />
}<br />
set<br />
{<br />
m_ThumbnailWidth = value;<br />
}<br />
}</span></p>
<p><span style="color:#ff9900;">private int m_ThumbnailHeight;<br />
public int ThumbnailHeight<br />
{<br />
get<br />
{<br />
return m_ThumbnailHeight;<br />
}<br />
set<br />
{<br />
m_ThumbnailHeight = value;<br />
}<br />
}</span></p>
<p><span style="color:#ff9900;">private int m_BrowserWidth;<br />
public int BrowserWidth<br />
{<br />
get<br />
{<br />
return m_BrowserWidth;<br />
}<br />
set<br />
{<br />
m_BrowserWidth = value;<br />
}<br />
}</span></p>
<p><span style="color:#ff9900;">private int m_BrowserHeight;<br />
public int BrowserHeight<br />
{<br />
get<br />
{<br />
return m_BrowserHeight;<br />
}<br />
set<br />
{<br />
m_BrowserHeight = value;<br />
}<br />
}</span></p>
<p><span style="color:#ff9900;">public Bitmap GenerateWebSiteThumbnailImage()<br />
{<br />
Thread m_thread = new Thread(new ThreadStart(_GenerateWebSiteThumbnailImage));<br />
m_thread.SetApartmentState(ApartmentState.STA);<br />
m_thread.Start();<br />
m_thread.Join();<br />
return m_Bitmap;<br />
}</span></p>
<p><span style="color:#ff9900;">private void _GenerateWebSiteThumbnailImage()<br />
{<br />
WebBrowser m_WebBrowser = new WebBrowser();<br />
m_WebBrowser.ScrollBarsEnabled = false;<br />
m_WebBrowser.Navigate(m_Url);<br />
m_WebBrowser.DocumentCompleted += new WebBrowserDocumentCompletedEventHandler(WebBrowser_DocumentCompleted);<br />
while (m_WebBrowser.ReadyState != WebBrowserReadyState.Complete)<br />
Application.DoEvents();<br />
m_WebBrowser.Dispose();<br />
}</span></p>
<p><span style="color:#ff9900;">private void WebBrowser_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)<br />
{<br />
WebBrowser m_WebBrowser = (WebBrowser)sender;<br />
m_WebBrowser.ClientSize = new Size(this.m_BrowserWidth, this.m_BrowserHeight);<br />
m_WebBrowser.ScrollBarsEnabled = false;<br />
m_Bitmap = new Bitmap(m_WebBrowser.Bounds.Width, m_WebBrowser.Bounds.Height);<br />
m_WebBrowser.BringToFront();<br />
m_WebBrowser.DrawToBitmap(m_Bitmap, m_WebBrowser.Bounds);<br />
m_Bitmap = (Bitmap)m_Bitmap.GetThumbnailImage(m_ThumbnailWidth, m_ThumbnailHeight, null, IntPtr.Zero);<br />
}<br />
}<br />
}</span></p>
<p><strong>Step 2: Call the GetWebSiteThumbnail() function of class like this</strong></p>
<p><span style="color:#ff9900;">string address = www.google.com;</span></p>
<p><span style="color:#ff9900;">int width  = 200;</span></p>
<p><span style="color:#ff9900;">int height = 140;</span></p>
<p><span style="color:#ff9900;">int capWidth = 800;<br />
</span></p>
<p><span style="color:#ff9900;">int capHeight = 600;<br />
</span></p>
<p><span style="color:#ff9900;">Bitmap thumbnail = WebsiteThumbnailImageGenerator.GetWebSiteThumbnail(address, capWidth, capHeight, width, height);</span></p>
<p><strong>Step 3 : Save the image to particular place of your website.</strong></p>
<p><span style="color:#ff9900;">thumbnail.Save(Server.MapPath(&#8220;FolderName\\&#8221;) + &#8220;MyImageName&#8221;,ImageFormat.Jpeg);</span></p>
<p>Now you can find a jpeg image on your desired location.</p>
<p><strong>Optional enhancement:</strong></p>
<p>You can also directly give it on your aspx page like</p>
<p>On Step 3: <span style="color:#ff9900;">thumbnail.Save (Response.OutputStream, ImageFormat.Jpeg);</span></p>
<p>&lt;asp:Image ID=&#8221;Image1&#8243; ImageUrl=&#8221;snapshot.aspx?site=www.google.com&amp;width=100&amp;height=80&amp;capWidth=800&amp;capHeight=600&#8243; runat=&#8221;server&#8221; /&gt;</p>
<p>and on this image place you will have image.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yourtahir.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yourtahir.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/yourtahir.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/yourtahir.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/yourtahir.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/yourtahir.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/yourtahir.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/yourtahir.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/yourtahir.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/yourtahir.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/yourtahir.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/yourtahir.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/yourtahir.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/yourtahir.wordpress.com/40/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yourtahir.wordpress.com&amp;blog=2422879&amp;post=40&amp;subd=yourtahir&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yourtahir.wordpress.com/2008/10/10/how-to-get-thumbnail-image-of-a-website/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a80cece216415e62bc3487c841bf3270?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Tahir Rauf</media:title>
		</media:content>
	</item>
		<item>
		<title>How to make IE6 to respect height attribute</title>
		<link>http://yourtahir.wordpress.com/2008/10/10/how-to-make-ie6-to-respect-height-attribute/</link>
		<comments>http://yourtahir.wordpress.com/2008/10/10/how-to-make-ie6-to-respect-height-attribute/#comments</comments>
		<pubDate>Fri, 10 Oct 2008 11:14:04 +0000</pubDate>
		<dc:creator>tahir24434</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://yourtahir.wordpress.com/?p=38</guid>
		<description><![CDATA[It is too much annoying when IE6 totally ignores height attribute of div. In order to work exactly same in both IE6 and IE7. just add overflow:hidden and it is done. thanx<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yourtahir.wordpress.com&amp;blog=2422879&amp;post=38&amp;subd=yourtahir&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>It is too much annoying when IE6 totally ignores height attribute of div.</p>
<p>In order to work exactly same in both IE6 and IE7. just add</p>
<p><strong>overflow:hidden</strong></p>
<p>and it is done.</p>
<p>thanx</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yourtahir.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yourtahir.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/yourtahir.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/yourtahir.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/yourtahir.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/yourtahir.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/yourtahir.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/yourtahir.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/yourtahir.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/yourtahir.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/yourtahir.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/yourtahir.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/yourtahir.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/yourtahir.wordpress.com/38/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yourtahir.wordpress.com&amp;blog=2422879&amp;post=38&amp;subd=yourtahir&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yourtahir.wordpress.com/2008/10/10/how-to-make-ie6-to-respect-height-attribute/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a80cece216415e62bc3487c841bf3270?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Tahir Rauf</media:title>
		</media:content>
	</item>
		<item>
		<title>test link</title>
		<link>http://yourtahir.wordpress.com/2008/10/02/test-link/</link>
		<comments>http://yourtahir.wordpress.com/2008/10/02/test-link/#comments</comments>
		<pubDate>Thu, 02 Oct 2008 08:45:33 +0000</pubDate>
		<dc:creator>tahir24434</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://yourtahir.wordpress.com/?p=35</guid>
		<description><![CDATA[Ask questions, get answers, and share tips at  &#60;a href=&#8221;http://www.linkbuildingforum.com/&#8221;&#62;linkbuilding&#60;/a&#62; forum. http://www.linkbuildingforum.com<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yourtahir.wordpress.com&amp;blog=2422879&amp;post=35&amp;subd=yourtahir&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Ask questions, get answers, and share tips at  &lt;a<br />
href=&#8221;http://www.linkbuildingforum.com/&#8221;&gt;linkbuilding&lt;/a&gt;<br />
forum.</p>
<p>http://www.linkbuildingforum.com</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yourtahir.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yourtahir.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/yourtahir.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/yourtahir.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/yourtahir.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/yourtahir.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/yourtahir.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/yourtahir.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/yourtahir.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/yourtahir.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/yourtahir.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/yourtahir.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/yourtahir.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/yourtahir.wordpress.com/35/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yourtahir.wordpress.com&amp;blog=2422879&amp;post=35&amp;subd=yourtahir&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yourtahir.wordpress.com/2008/10/02/test-link/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a80cece216415e62bc3487c841bf3270?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Tahir Rauf</media:title>
		</media:content>
	</item>
		<item>
		<title>Hot to add CSS style to your Controls at runtime?</title>
		<link>http://yourtahir.wordpress.com/2008/09/27/hot-to-add-css-style-to-your-controls-at-runtime/</link>
		<comments>http://yourtahir.wordpress.com/2008/09/27/hot-to-add-css-style-to-your-controls-at-runtime/#comments</comments>
		<pubDate>Sat, 27 Sep 2008 04:45:09 +0000</pubDate>
		<dc:creator>tahir24434</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Misclenious]]></category>
		<category><![CDATA[add css style dynamically to your control]]></category>
		<category><![CDATA[give style to your asp.net control on fly]]></category>
		<category><![CDATA[how to give css style to your asp.net control]]></category>

		<guid isPermaLink="false">http://yourtahir.wordpress.com/?p=29</guid>
		<description><![CDATA[You can add css style to any of asp.net control dynamically as given below btnViewed.Style["font-weight"] = &#8220;bold&#8221;; Hopefully it will help.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yourtahir.wordpress.com&amp;blog=2422879&amp;post=29&amp;subd=yourtahir&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;">You can add css style to any of asp.net control dynamically as given below</p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;">
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:&quot;">btnViewed.Style[<span style="color:maroon;">"font-weight"</span>] = <span style="color:maroon;">&#8220;bold&#8221;</span>;</span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;">Hopefully it will help.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yourtahir.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yourtahir.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/yourtahir.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/yourtahir.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/yourtahir.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/yourtahir.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/yourtahir.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/yourtahir.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/yourtahir.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/yourtahir.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/yourtahir.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/yourtahir.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/yourtahir.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/yourtahir.wordpress.com/29/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yourtahir.wordpress.com&amp;blog=2422879&amp;post=29&amp;subd=yourtahir&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yourtahir.wordpress.com/2008/09/27/hot-to-add-css-style-to-your-controls-at-runtime/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a80cece216415e62bc3487c841bf3270?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Tahir Rauf</media:title>
		</media:content>
	</item>
		<item>
		<title>Finding control In Ajax Tab container</title>
		<link>http://yourtahir.wordpress.com/2008/09/27/finding-control-in-ajax-tab-container/</link>
		<comments>http://yourtahir.wordpress.com/2008/09/27/finding-control-in-ajax-tab-container/#comments</comments>
		<pubDate>Sat, 27 Sep 2008 04:41:44 +0000</pubDate>
		<dc:creator>tahir24434</dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Misclenious]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[ajax tab container]]></category>
		<category><![CDATA[Finding control in Ajax tab container]]></category>
		<category><![CDATA[Finding repeater control in ajax tab container]]></category>
		<category><![CDATA[How to locate repeater in ajax tab container]]></category>
		<category><![CDATA[Repeater in ajax tab container]]></category>
		<category><![CDATA[using repeater in ajax tab container]]></category>

		<guid isPermaLink="false">http://yourtahir.wordpress.com/?p=27</guid>
		<description><![CDATA[Suppose you have a repeater control inside ajax tab container and you want to bind data with that repeater. If on your page you try to directly bind data with it, it will generate error and say that &#8220;repeater is not found&#8221;. You have to first find the repeater and then you can do all [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yourtahir.wordpress.com&amp;blog=2422879&amp;post=27&amp;subd=yourtahir&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Suppose you have a repeater control inside ajax tab container and you want to bind data with that repeater. If on your page you try to directly bind data with it, it will generate error and say that &#8220;repeater is not found&#8221;.</p>
<p>You have to first find the repeater and then you can do all the things with it as you do in normal .</p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;">
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:&quot;">Control myControl = TabContainer1.Tabs[0].FindControl(&#8220;RepeaterName&#8221;);</span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;">
<p><span style="font-size:10pt;font-family:&quot;">Repeater MyRepeater = (Repeater)myControl;</span></p>
<p>or simply in single step</p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;">
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:&quot;">Repeater </span><span style="font-size:10pt;font-family:&quot;">MyRepeater </span><span style="font-size:10pt;font-family:&quot;">=(Repeater)TabContainer1.Tabs[0].FindControl(&#8220;</span><span style="font-size:10pt;font-family:&quot;">RepeaterName</span><span style="font-size:10pt;font-family:&quot;">&#8220;);</span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;">Now you can bind data with it or do any operation with this repeater.</p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;">Hopefully it will help, if find helpful please leave a comment</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yourtahir.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yourtahir.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/yourtahir.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/yourtahir.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/yourtahir.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/yourtahir.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/yourtahir.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/yourtahir.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/yourtahir.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/yourtahir.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/yourtahir.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/yourtahir.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/yourtahir.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/yourtahir.wordpress.com/27/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yourtahir.wordpress.com&amp;blog=2422879&amp;post=27&amp;subd=yourtahir&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yourtahir.wordpress.com/2008/09/27/finding-control-in-ajax-tab-container/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a80cece216415e62bc3487c841bf3270?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Tahir Rauf</media:title>
		</media:content>
	</item>
		<item>
		<title>How to Programmatically add JavaScript File to Asp.Net page?</title>
		<link>http://yourtahir.wordpress.com/2008/09/27/how-to-programmatically-add-javascript-file-to-aspnet-page/</link>
		<comments>http://yourtahir.wordpress.com/2008/09/27/how-to-programmatically-add-javascript-file-to-aspnet-page/#comments</comments>
		<pubDate>Sat, 27 Sep 2008 04:33:28 +0000</pubDate>
		<dc:creator>tahir24434</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Misclenious]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[add java script on fly in c#]]></category>
		<category><![CDATA[adding java script dynamically in asp.net]]></category>
		<category><![CDATA[dynamically adding java script]]></category>
		<category><![CDATA[Programmatically add JavaScript File to Asp.Net page]]></category>

		<guid isPermaLink="false">http://yourtahir.wordpress.com/?p=25</guid>
		<description><![CDATA[If you do not want to add your JavaScript files declaratively via HTML to your ASP.Net page, you can do it in code, and here is how: Just add this code to the Page_Init event handler on your page: protected void Page_Init(object sender, EventArgs e) { HtmlGenericControl js = new HtmlGenericControl(&#8220;script&#8221;); js.Attributes["type"] = &#8220;text/javascript&#8221;; js.Attributes["src"] [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yourtahir.wordpress.com&amp;blog=2422879&amp;post=25&amp;subd=yourtahir&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<table class="MsoNormalTable" border="0" cellpadding="0">
<tbody>
<tr>
<td style="padding:.75pt;" valign="top">
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:12pt;font-family:&quot;"> If you do not want to add your   JavaScript files declaratively via HTML to your ASP.Net page, you can do it   in code, and here is how:</span></p>
<p>Just add this code to the Page_Init event handler on your page:</p>
<p><!--[if !supportLineBreakNewLine]--><br />
<!--[endif]--></p>
<p class="MsoNormal" style="background:white none repeat scroll 0;margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:&quot;color:black;"> </span><span style="font-size:10pt;font-family:&quot;color:blue;">protected</span><span style="font-size:10pt;font-family:&quot;color:black;"> </span><span style="font-size:10pt;font-family:&quot;color:blue;">void</span><span style="font-size:10pt;font-family:&quot;color:black;"> Page_Init(</span><span style="font-size:10pt;font-family:&quot;color:blue;">object</span><span style="font-size:10pt;font-family:&quot;color:black;"> sender, </span><span style="font-size:10pt;font-family:&quot;color:#2b91af;">EventArgs</span><span style="font-size:10pt;font-family:&quot;color:black;"> e)</span></p>
<p class="MsoNormal" style="background:white none repeat scroll 0;margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:&quot;color:black;"> {</span></p>
<p class="MsoNormal" style="background:white none repeat scroll 0;margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:&quot;color:black;"> </span></p>
<p class="MsoNormal" style="background:white none repeat scroll 0;margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:&quot;color:black;"> </span><span style="font-size:10pt;font-family:&quot;color:#2b91af;">HtmlGenericControl</span><span style="font-size:10pt;font-family:&quot;color:black;"> js = </span><span style="font-size:10pt;font-family:&quot;color:blue;">new</span><span style="font-size:10pt;font-family:&quot;color:black;"> </span><span style="font-size:10pt;font-family:&quot;color:#2b91af;">HtmlGenericControl</span><span style="font-size:10pt;font-family:&quot;color:black;">(</span><span style="font-size:10pt;font-family:&quot;color:#a31515;">&#8220;script&#8221;</span><span style="font-size:10pt;font-family:&quot;color:black;">); </span></p>
<p class="MsoNormal" style="background:white none repeat scroll 0;margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:&quot;color:black;"> js.Attributes[</span><span style="font-size:10pt;font-family:&quot;color:#a31515;">"type"</span><span style="font-size:10pt;font-family:&quot;color:black;">] = </span><span style="font-size:10pt;font-family:&quot;color:#a31515;">&#8220;text/javascript&#8221;</span><span style="font-size:10pt;font-family:&quot;color:black;">;</span></p>
<p class="MsoNormal" style="background:white none repeat scroll 0;margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:&quot;color:black;"> js.Attributes[</span><span style="font-size:10pt;font-family:&quot;color:#a31515;">"src"</span><span style="font-size:10pt;font-family:&quot;color:black;">] = </span><span style="font-size:10pt;font-family:&quot;color:#a31515;">&#8220;jscript/formfunctions.js&#8221;</span><span style="font-size:10pt;font-family:&quot;color:black;">;</span></p>
<p class="MsoNormal" style="background:white none repeat scroll 0;margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:&quot;color:black;"> Page.Header.Controls.Add(js);</span></p>
<p class="MsoNormal" style="background:white none repeat scroll 0;margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:&quot;color:black;"> </span></p>
<p class="MsoNormal" style="background:white none repeat scroll 0;margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:&quot;color:black;"> }</span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:12pt;font-family:&quot;"><br />
And thats all there is to it <span><!--[if gte vml 1]&gt;                    &lt;![endif]--><!--[if !vml]--><img src="/DOCUME~1/Dcs/LOCALS~1/Temp/msohtmlclip1/01/clip_image001.gif" alt="http://www.aspdotnetfaq.com/fckeditor/editor/images/smiley/msn/wink_smile.gif" width="19" height="19" /><!--[endif]--></span>.</span></td>
</tr>
</tbody>
</table>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yourtahir.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yourtahir.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/yourtahir.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/yourtahir.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/yourtahir.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/yourtahir.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/yourtahir.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/yourtahir.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/yourtahir.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/yourtahir.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/yourtahir.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/yourtahir.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/yourtahir.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/yourtahir.wordpress.com/25/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yourtahir.wordpress.com&amp;blog=2422879&amp;post=25&amp;subd=yourtahir&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yourtahir.wordpress.com/2008/09/27/how-to-programmatically-add-javascript-file-to-aspnet-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a80cece216415e62bc3487c841bf3270?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Tahir Rauf</media:title>
		</media:content>
	</item>
		<item>
		<title>How to Programmatically add CSS Stylesheet file to Asp.Net page?</title>
		<link>http://yourtahir.wordpress.com/2008/09/27/how-to-programmatically-add-css-stylesheet-file-to-aspnet-page/</link>
		<comments>http://yourtahir.wordpress.com/2008/09/27/how-to-programmatically-add-css-stylesheet-file-to-aspnet-page/#comments</comments>
		<pubDate>Sat, 27 Sep 2008 04:30:20 +0000</pubDate>
		<dc:creator>tahir24434</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[add stylesheet on fly]]></category>
		<category><![CDATA[adding StyleSheet in Csharp]]></category>
		<category><![CDATA[dynamically adding css]]></category>
		<category><![CDATA[dynamically adding stylesheet in c#]]></category>
		<category><![CDATA[programmatically addin css stylesheet]]></category>
		<category><![CDATA[Programmatically adding Stylesheet]]></category>

		<guid isPermaLink="false">http://yourtahir.wordpress.com/?p=23</guid>
		<description><![CDATA[Sometimes its necessary to programmatically add some CSS stylesheets to your ASP.NET page, Following is the way protected void Page_Init(object sender, EventArgs e) { HtmlLink css = new HtmlLink(); css.Href = &#8220;css/fancyforms.css&#8221;; css.Attributes["rel"] = &#8220;stylesheet&#8221;; css.Attributes["type"] = &#8220;text/css&#8221;; css.Attributes["media"] = &#8220;all&#8221;; Page.Header.Controls.Add(css); } And thats it, next time you load this page, reference to your [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yourtahir.wordpress.com&amp;blog=2422879&amp;post=23&amp;subd=yourtahir&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><strong><span style="font-size:12pt;font-family:&quot;"> </span></strong><span style="font-size:12pt;font-family:&quot;">Sometimes its necessary to programmatically add some CSS stylesheets to your ASP.NET page,</p>
<p>Following is the way </span></p>
<p class="MsoNormal" style="background:white none repeat scroll 0;margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:&quot;color:black;"> </span></p>
<p class="MsoNormal" style="background:white none repeat scroll 0;margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:&quot;color:black;"> </span><span style="font-size:10pt;font-family:&quot;color:blue;">protected</span><span style="font-size:10pt;font-family:&quot;color:black;"> </span><span style="font-size:10pt;font-family:&quot;color:blue;">void</span><span style="font-size:10pt;font-family:&quot;color:black;"> Page_Init(</span><span style="font-size:10pt;font-family:&quot;color:blue;">object</span><span style="font-size:10pt;font-family:&quot;color:black;"> sender, </span><span style="font-size:10pt;font-family:&quot;color:#2b91af;">EventArgs</span><span style="font-size:10pt;font-family:&quot;color:black;"> e)</span></p>
<p class="MsoNormal" style="background:white none repeat scroll 0;margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:&quot;color:black;"> {</span></p>
<p class="MsoNormal" style="background:white none repeat scroll 0;margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:&quot;color:black;"> </span></p>
<p class="MsoNormal" style="background:white none repeat scroll 0;margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:&quot;color:black;"> </span><span style="font-size:10pt;font-family:&quot;color:#2b91af;">HtmlLink</span><span style="font-size:10pt;font-family:&quot;color:black;"> css = </span><span style="font-size:10pt;font-family:&quot;color:blue;">new</span><span style="font-size:10pt;font-family:&quot;color:black;"> </span><span style="font-size:10pt;font-family:&quot;color:#2b91af;">HtmlLink</span><span style="font-size:10pt;font-family:&quot;color:black;">();</span></p>
<p class="MsoNormal" style="background:white none repeat scroll 0;margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:&quot;color:black;"> css.Href = </span><span style="font-size:10pt;font-family:&quot;color:#a31515;">&#8220;css/fancyforms.css&#8221;</span><span style="font-size:10pt;font-family:&quot;color:black;">;</span></p>
<p class="MsoNormal" style="background:white none repeat scroll 0;margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:&quot;color:black;"> css.Attributes[</span><span style="font-size:10pt;font-family:&quot;color:#a31515;">"rel"</span><span style="font-size:10pt;font-family:&quot;color:black;">] = </span><span style="font-size:10pt;font-family:&quot;color:#a31515;">&#8220;stylesheet&#8221;</span><span style="font-size:10pt;font-family:&quot;color:black;">;</span></p>
<p class="MsoNormal" style="background:white none repeat scroll 0;margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:&quot;color:black;"> css.Attributes[</span><span style="font-size:10pt;font-family:&quot;color:#a31515;">"type"</span><span style="font-size:10pt;font-family:&quot;color:black;">] = </span><span style="font-size:10pt;font-family:&quot;color:#a31515;">&#8220;text/css&#8221;</span><span style="font-size:10pt;font-family:&quot;color:black;">;</span></p>
<p class="MsoNormal" style="background:white none repeat scroll 0;margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:&quot;color:black;"> css.Attributes[</span><span style="font-size:10pt;font-family:&quot;color:#a31515;">"media"</span><span style="font-size:10pt;font-family:&quot;color:black;">] = </span><span style="font-size:10pt;font-family:&quot;color:#a31515;">&#8220;all&#8221;</span><span style="font-size:10pt;font-family:&quot;color:black;">;</span></p>
<p class="MsoNormal" style="background:white none repeat scroll 0;margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:&quot;color:black;"> Page.Header.Controls.Add(css);</span></p>
<p class="MsoNormal" style="background:white none repeat scroll 0;margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:&quot;color:black;"> </span></p>
<p class="MsoNormal" style="background:white none repeat scroll 0;margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:&quot;color:black;"> }</p>
<p>And thats it, next time you load this page, reference to your CSS file will be added at runtime to the page HTML code and loaded.</span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yourtahir.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yourtahir.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/yourtahir.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/yourtahir.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/yourtahir.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/yourtahir.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/yourtahir.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/yourtahir.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/yourtahir.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/yourtahir.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/yourtahir.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/yourtahir.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/yourtahir.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/yourtahir.wordpress.com/23/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yourtahir.wordpress.com&amp;blog=2422879&amp;post=23&amp;subd=yourtahir&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yourtahir.wordpress.com/2008/09/27/how-to-programmatically-add-css-stylesheet-file-to-aspnet-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a80cece216415e62bc3487c841bf3270?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Tahir Rauf</media:title>
		</media:content>
	</item>
		<item>
		<title>Download YouTube video through .net code</title>
		<link>http://yourtahir.wordpress.com/2008/06/27/download-youtube-video-through-net-code/</link>
		<comments>http://yourtahir.wordpress.com/2008/06/27/download-youtube-video-through-net-code/#comments</comments>
		<pubDate>Fri, 27 Jun 2008 14:24:05 +0000</pubDate>
		<dc:creator>tahir24434</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Misclenious]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[.NET code for Downloading YouTube video]]></category>
		<category><![CDATA[asp.net code for downloading youtube video]]></category>
		<category><![CDATA[asp.net youTube video downloading]]></category>
		<category><![CDATA[c# code for downloading youtube video]]></category>
		<category><![CDATA[Download you tube video throug programming]]></category>
		<category><![CDATA[Download youTube Video]]></category>
		<category><![CDATA[Download YouTube video in aspx page]]></category>
		<category><![CDATA[How to download YouTube Video]]></category>
		<category><![CDATA[How to Download YouTube Video through Code]]></category>

		<guid isPermaLink="false">http://yourtahir.wordpress.com/?p=21</guid>
		<description><![CDATA[Using following methods you can download youtube videos directly from your browser without using any software. 1. Retrieve the id video from the link (the code after ‘v=’) example: http://www.youtube.com/watch?v=NegsNQy1ZoU =&#62; NegsNQy1ZoU 2. In your favourite browser go to http://youtube.com/v/{ID video} example: http://youtube.com/v/NegsNQy1ZoU 3. Link in the address bar will change. Replace ’swf/l.swf’ with ‘get_video’ [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yourtahir.wordpress.com&amp;blog=2422879&amp;post=21&amp;subd=yourtahir&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Using following methods you can download youtube videos directly from your browser without using any software.</p>
<p>1. Retrieve the id video from the link (the code after ‘v=’)<br />
example: http://www.youtube.com/watch?v=NegsNQy1ZoU<a href="http://www.youtube.com/watch?v=muP9eH2p2PI" target="_blank"></a> =&gt; NegsNQy1ZoU<br />
2. In your favourite browser go to <a href="http://youtube.com/v/%7BID" target="_blank">http://youtube.com/v/{ID</a> video}<br />
example: <a href="http://youtube.com/v/muP9eH2p2PI" target="_blank">http://youtube.com/v/NegsNQy1ZoU</a><br />
3. Link in the address bar will change. Replace ’swf/l.swf’ with ‘get_video’ and press Enter<br />
4. Save your file</p>
<p>Just experienc it in your browser.</p>
<p><em><strong>Do It Progrmatically:</strong></em></p>
<p>Now we will do it programaticaly using asp.net. Just follow followin steps</p>
<p>1. Create a page named as DownloadUTube.aspx</p>
<p>&lt;body&gt;<br />
&lt;form id=&#8221;form1&#8243; runat=&#8221;server&#8221;&gt;<br />
&lt;div&gt;<br />
&lt;table&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;YouTube URL: &lt;asp:TextBox ID=&#8221;txtUrl&#8221; runat=&#8221;server&#8221;&gt;&lt;/asp:TextBox&gt;&lt;/td&gt;<br />
&lt;td&gt;&lt;asp:Button ID=&#8221;btnSubmit&#8221; runat=&#8221;server&#8221; Text=&#8221;Submit&#8221; OnClick=&#8221;btnSubmit_Click&#8221; /&gt;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td align=&#8221;center&#8221; colspan=&#8221;2&#8243;&gt;Example: http://www.youtube.com/watch?v=NegsNQy1ZoU &lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td colspan=&#8221;2&#8243;&gt;&lt;asp:Literal ID=&#8221;litResult&#8221; runat=&#8221;server&#8221;&gt;&lt;/asp:Literal&gt;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;/table&gt;<br />
&lt;/div&gt;<br />
&lt;/form&gt;<br />
&lt;/body&gt;</p>
<p>You have successfully completed 1st step now proceed to 2nd one.</p>
<p><em><span style="text-decoration:underline;"><strong>Step 2:</strong></span></em></p>
<p>Now in your cSharp file you have to go as follow.</p>
<p>// First of all we will change our utube link to our desired format.</p>
<p>string URL = this.txtUrl.Text;<br />
string VideoId = URL.Substring(URL.IndexOf(&#8216;=&#8217;)+1);<br />
URL = @&#8221;http://youtube.com/v/&#8221; + VideoId;</p>
<p>// Now we will send request to server which will create new link.<br />
WebRequest MyRequest = HttpWebRequest.Create(URL);<br />
WebResponse MyResponse = MyRequest.GetResponse();</p>
<p>// we get newly create link into string RealURL<br />
string RealURL = MyResponse.ResponseUri.ToString();</p>
<p>// Creates an HttpWebRequest with the specified URL.<br />
HttpWebRequest myHttpWebRequest = (HttpWebRequest)WebRequest.Create(RealURL);</p>
<p>// Sends the HttpWebRequest and waits for the response.<br />
HttpWebResponse myHttpWebResponse = (HttpWebResponse)myHttpWebRequest.GetResponse();</p>
<p>// Gets the stream associated with the response.<br />
Stream receiveStream = myHttpWebResponse.GetResponseStream();<br />
Encoding encode = System.Text.Encoding.GetEncoding(&#8220;utf-8&#8243;);</p>
<p>// Pipes the stream to a higher level stream reader with the required encoding format.<br />
StreamReader readStream = new StreamReader(receiveStream, encode);</p>
<p>// Now we will write whole stream to specified. It is the path within your website.<br />
StreamWriter writer = new StreamWriter(Server.MapPath(@&#8221;Contents\Videos\YourVideoName.flv&#8221;), true);<br />
writer.Write(readStream.ReadToEnd());<br />
writer.Close();</p>
<p>Just go on specified path and u will see the video.</p>
<p>Final saying, if you have any problem about this. write to me. I will try my best to solve it.</p>
<p><strong>Muhammad Tahir Rauf</strong></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/yourtahir.wordpress.com/21/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/yourtahir.wordpress.com/21/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yourtahir.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yourtahir.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/yourtahir.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/yourtahir.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/yourtahir.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/yourtahir.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/yourtahir.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/yourtahir.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/yourtahir.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/yourtahir.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/yourtahir.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/yourtahir.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/yourtahir.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/yourtahir.wordpress.com/21/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yourtahir.wordpress.com&amp;blog=2422879&amp;post=21&amp;subd=yourtahir&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yourtahir.wordpress.com/2008/06/27/download-youtube-video-through-net-code/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a80cece216415e62bc3487c841bf3270?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Tahir Rauf</media:title>
		</media:content>
	</item>
		<item>
		<title>The state information is invalid for this page and might be corrupted</title>
		<link>http://yourtahir.wordpress.com/2008/06/26/the-state-information-is-invalid-for-this-page-and-might-be-corrupted/</link>
		<comments>http://yourtahir.wordpress.com/2008/06/26/the-state-information-is-invalid-for-this-page-and-might-be-corrupted/#comments</comments>
		<pubDate>Thu, 26 Jun 2008 05:45:53 +0000</pubDate>
		<dc:creator>tahir24434</dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[ASP.NET Errors]]></category>
		<category><![CDATA[Firefox problem]]></category>
		<category><![CDATA[prevent firefox to cache]]></category>
		<category><![CDATA[Response.Cache.SetNoStore()]]></category>
		<category><![CDATA[state information is invalid for this page and might be]]></category>
		<category><![CDATA[stop firefox cache]]></category>

		<guid isPermaLink="false">http://yourtahir.wordpress.com/?p=18</guid>
		<description><![CDATA[IN one of my project, I was getting this error in Mozilla Firefox only that whenever i clicked a button or link. It is because of the fact that firefox caches the form fields. Two ways to encounter this problem. 1.Write following snipet in your cs file protected override void OnPreInit(EventArgs e) { base.OnPreInit(e); if [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yourtahir.wordpress.com&amp;blog=2422879&amp;post=18&amp;subd=yourtahir&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>IN one of my project, I was getting this error in Mozilla Firefox only that whenever i clicked a button or link.</p>
<p>It is because of the fact that firefox caches the form fields. Two ways to encounter this problem.</p>
<p>1.Write following snipet in your cs file</p>
<p>protected override void OnPreInit(EventArgs e)<br />
{<br />
base.OnPreInit(e);<br />
if (Request.Browser.MSDomVersion.Major == 0) // If it is Non IE Browser<br />
{<br />
Response.Cache.SetNoStore();<br />
}<br />
}</p>
<p>2. In page load, write following statemet</p>
<p>Response.Cache.SetNoStore();</p>
<p>Now error has been removed and you can sleep with satisfaction.</p>
<p>Muhammad Tahir Rauf.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/yourtahir.wordpress.com/18/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/yourtahir.wordpress.com/18/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yourtahir.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yourtahir.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/yourtahir.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/yourtahir.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/yourtahir.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/yourtahir.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/yourtahir.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/yourtahir.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/yourtahir.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/yourtahir.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/yourtahir.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/yourtahir.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/yourtahir.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/yourtahir.wordpress.com/18/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yourtahir.wordpress.com&amp;blog=2422879&amp;post=18&amp;subd=yourtahir&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yourtahir.wordpress.com/2008/06/26/the-state-information-is-invalid-for-this-page-and-might-be-corrupted/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a80cece216415e62bc3487c841bf3270?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Tahir Rauf</media:title>
		</media:content>
	</item>
		<item>
		<title>Basic Screen scraping sample</title>
		<link>http://yourtahir.wordpress.com/2008/06/16/basic-screen-scraping-sample/</link>
		<comments>http://yourtahir.wordpress.com/2008/06/16/basic-screen-scraping-sample/#comments</comments>
		<pubDate>Mon, 16 Jun 2008 05:58:08 +0000</pubDate>
		<dc:creator>tahir24434</dc:creator>
				<category><![CDATA[Misclenious]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[basic scraping using asp.net]]></category>
		<category><![CDATA[screen scraping]]></category>
		<category><![CDATA[Asp.net Screen scraping]]></category>
		<category><![CDATA[grab contents of site]]></category>
		<category><![CDATA[grabing the contents using Screen scraping]]></category>
		<category><![CDATA[webclient]]></category>

		<guid isPermaLink="false">http://yourtahir.wordpress.com/?p=15</guid>
		<description><![CDATA[&#8220;Screen scraping&#8221; means grab the contents of a web page. ASP.NET makes scraping easy. You can grab the contents of any site and then use that contents according to your needs. For example, you can grab the contents of stock exchange site and then extract useful information from that one. We will remain at very [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yourtahir.wordpress.com&amp;blog=2422879&amp;post=15&amp;subd=yourtahir&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>&#8220;Screen scraping&#8221; means grab the contents of a web page. ASP.NET makes scraping easy. You can grab the contents of any site and then use that contents according to your needs.</p>
<p>For example, you can grab the contents of stock exchange site and then extract useful information from that one. We will remain at very basic level in this article. In future we will move to some useful practical knowledge.</p>
<p><em><strong>Scraping through ASP.NET:</strong></em></p>
<p>You have to include following name spaces</p>
<p>1. System.Net (For WebClient)      2. System.Text (For UTF8Encoding)</p>
<p>// make object of WebClient.</p>
<p>WebClient MyClient = new WebClient();</p>
<p>// the url of site whose contents you want to grab.<br />
string Url = &#8220;http://www.google.com.pk&#8221;</p>
<p>// to get string, as downloaded data returns byte[]<br />
UTF8Encoding MyEncoding = new UTF8Encoding();</p>
<p>// Calling DownloadData function. It will return all contents inform of byte[] array. You can get the                    string by calling GetString method of UTF8Encoding object<br />
string str = MyEncoding.GetString(MyClient.DownloadData(Url));</p>
<p>In this string you have all the contents. you can extract any thing from it.</p>
<p>Enjoy.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/yourtahir.wordpress.com/15/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/yourtahir.wordpress.com/15/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yourtahir.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yourtahir.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/yourtahir.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/yourtahir.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/yourtahir.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/yourtahir.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/yourtahir.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/yourtahir.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/yourtahir.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/yourtahir.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/yourtahir.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/yourtahir.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/yourtahir.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/yourtahir.wordpress.com/15/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yourtahir.wordpress.com&amp;blog=2422879&amp;post=15&amp;subd=yourtahir&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yourtahir.wordpress.com/2008/06/16/basic-screen-scraping-sample/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a80cece216415e62bc3487c841bf3270?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Tahir Rauf</media:title>
		</media:content>
	</item>
	</channel>
</rss>
