<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Techreceipe.com &#187; asp</title>
	<atom:link href="http://www.techreceipe.com/tag/asp/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.techreceipe.com</link>
	<description>Technical Tutorials,Video Tutorials on .Net and Windows</description>
	<lastBuildDate>Mon, 04 Feb 2013 13:55:18 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>HyperLink vs LinkButton in Asp.Net</title>
		<link>http://www.techreceipe.com/2011/06/hyperlink-vs-linkbutton-in-asp-net/</link>
		<comments>http://www.techreceipe.com/2011/06/hyperlink-vs-linkbutton-in-asp-net/#comments</comments>
		<pubDate>Wed, 01 Jun 2011 16:27:31 +0000</pubDate>
		<dc:creator>Techreceipe.com</dc:creator>
				<category><![CDATA[Asp.Net]]></category>
		<category><![CDATA[asp]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[hyperlink]]></category>
		<category><![CDATA[linkbutton]]></category>
		<category><![CDATA[vs2010]]></category>

		<guid isPermaLink="false">http://techreceipe.com/?p=83</guid>
		<description><![CDATA[In many of the forums I have seen developers asking where to use Link Button and Hyperlink. This articles covers some of the points to taken care while choosing between these two controls. HyperLink : Hyperlink control create a link in your forms . when clicking that link the user will be redirected to a [...]]]></description>
				<content:encoded><![CDATA[<p>In many of the forums I have seen developers asking where to use Link Button and Hyperlink.</p>
<p>This articles covers some of the points to taken care while choosing between these two controls.</p>
<p><strong>HyperLink :</strong></p>
<p>Hyperlink control create a link in your forms . when clicking that link the user will be</p>
<p>redirected to a particular  Page,mentioned in the NavigateUrl property of the control.</p>
<p>If no NavigateUrl  property is specified for the control then it will be displayed as Label control,</p>
<p>missing the hyperlink in it.</p>
<p><a href="http://techreceipe.com/wp-content/uploads/2011/06/HyperlinkvsLinkbutton-Image1.jpg"><img class="alignnone size-full wp-image-84" title="HyperlinkvsLinkbutton-Image1" src="http://techreceipe.com/wp-content/uploads/2011/06/HyperlinkvsLinkbutton-Image1.jpg" alt="" width="498" height="263" /></a></p>
<p>With the NavigateUrl is specified and we click the link , we will be redirected to that particular page.</p>
<p>During the process of redirection, no server side events will be fired. So you can&#8217;t perform any</p>
<p>server side validation when this controls link is clicked.</p>
<p>If you have validation controls in your page, those validations will also not get executed.</p>
<p><strong>Link Button :</strong></p>
<p>On other hand, the Link Button controls causes the form validation to be fired when clicking the Link .</p>
<p>It also supports Postback url property , which sets the location to redirect when the post back occurs.</p>
<p>When you have the validation in your form, all the validation is fired before posting to the other page.</p>
<p><a href="http://techreceipe.com/wp-content/uploads/2011/06/HyperlinkvsLinkbutton-Image2.jpg"><img class="alignnone size-full wp-image-85" title="HyperlinkvsLinkbutton-Image2" src="http://techreceipe.com/wp-content/uploads/2011/06/HyperlinkvsLinkbutton-Image2.jpg" alt="" width="508" height="267" /></a></p>
<p>You can force the validation not fire setting the  <a title="CausesValidation" href="http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.linkbutton.causesvalidation.aspx" target="_blank"><strong>CausesValidation</strong></a> property of control to false.</p>
<p>By default the value is <strong>TRUE</strong>. When no postpack url property is mentioned for the control, then the page</p>
<p>will be posted back to the same page.</p>
<p>If the Postback url property is not defined for the control, then the page will be posted back to the same</p>
<p>Page. And this causes the Page_Load Event and LinkButton_Click Event to be fired. If the Post back url is</p>
<p>mentioned , then the  LinkButton_Click Event not fired.</p>
<p><a href="http://techreceipe.com/wp-content/uploads/2011/06/LinkButtonwithPostBackURL1.jpg"><img class="alignnone size-full wp-image-87" title="LinkButtonwithPostBackURL" src="http://techreceipe.com/wp-content/uploads/2011/06/LinkButtonwithPostBackURL1.jpg" alt="" width="1174" height="233" /></a></p>
<p>You can see the control Link properties as</p>
<ul>
<li> NavigateUrl ( HyperLink)            -  Navigate to a particular page</li>
<li> PostBackUrl (Link Button)          -  Post back to some other page or same page.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.techreceipe.com/2011/06/hyperlink-vs-linkbutton-in-asp-net/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Tool Tip for DropDown List Items</title>
		<link>http://www.techreceipe.com/2011/06/tool-tip-for-dropdown-list-items/</link>
		<comments>http://www.techreceipe.com/2011/06/tool-tip-for-dropdown-list-items/#comments</comments>
		<pubDate>Wed, 01 Jun 2011 16:13:55 +0000</pubDate>
		<dc:creator>Techreceipe.com</dc:creator>
				<category><![CDATA[Asp.Net]]></category>
		<category><![CDATA[asp]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[vs2010]]></category>

		<guid isPermaLink="false">http://techreceipe.com/?p=77</guid>
		<description><![CDATA[Asp.Net Drop Down List doesn&#8217;t support the tool tip property. You have designed a Page with Drop Down List and the width of the items exceeds the width of the Drop Down List. In this case the user has to select the item to see the full text. This makes users annoying experience. Using Javascript [...]]]></description>
				<content:encoded><![CDATA[<p>Asp.Net Drop Down List doesn&#8217;t support the tool tip property.</p>
<p>You have designed a Page with Drop Down List and the width of the items exceeds the width of the Drop Down List.</p>
<p>In this case the user has to select the item to see the full text. This makes users annoying experience.</p>
<p>Using Javascript we can display the tool tip for individual items in Drop Down List.</p>
<p>In the code behind of the page ( Page Init Event) , use the below code to display the tool tip for individual items.</p>
<p>Code :</p>
<pre class="brush: csharp; title: ; notranslate">
CultureDropDownList.Attributes.Add(&quot;onmouseover&quot;,
   &quot;this.title=this.options[this.selectedIndex].text&quot;)
&amp;nbsp;

</pre>
<p>The above displays tool tip for individual items in drop List</p>
<p>In the mouse move event of the the Drop Down List , we set the TITLE property for the Drop Down List. This makes the</p>
<p>tool tip for the control.</p>
<p>CultureDropDownList                                    -  Name of the Drop Down List</p>
<p>this.title                                                               &#8211; Sets the tool tip for the item</p>
<p>this.options[this.selectedIndex].text     &#8211; Reads the selected index of the item (this.selectedIndex)  , and using that</p>
<p>get the text of the currently selected item.</p>
<p>Screen Shot:</p>
<p><a href="http://techreceipe.com/wp-content/uploads/2011/06/ToolTip_for_DropDown.jpg"><img class="alignnone size-full wp-image-79" title="ToolTip_for_DropDown" src="http://techreceipe.com/wp-content/uploads/2011/06/ToolTip_for_DropDown.jpg" alt="" width="315" height="87" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.techreceipe.com/2011/06/tool-tip-for-dropdown-list-items/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
