<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: ASP.NET anchor link in user control</title>
	<atom:link href="http://www.tornstrand.com/2008/02/20/aspnet-anchor-link-in-user-control/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tornstrand.com/2008/02/20/aspnet-anchor-link-in-user-control/</link>
	<description>Drupal, PHP and web developing</description>
	<lastBuildDate>Thu, 22 Jul 2010 05:51:11 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: darko</title>
		<link>http://www.tornstrand.com/2008/02/20/aspnet-anchor-link-in-user-control/comment-page-1/#comment-769</link>
		<dc:creator>darko</dc:creator>
		<pubDate>Fri, 12 Jun 2009 10:06:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.tornstrand.com/2008/02/20/aspnet-anchor-link-in-user-control/#comment-769</guid>
		<description>@Jon Sagara : it didn&#039;t work to me. Instead I&#039;ve used 

listlink.HRef = Request.Url.PathAndQuery + &quot;#&quot;;</description>
		<content:encoded><![CDATA[<p>@Jon Sagara : it didn&#8217;t work to me. Instead I&#8217;ve used </p>
<p>listlink.HRef = Request.Url.PathAndQuery + &#8220;#&#8221;;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.tornstrand.com/2008/02/20/aspnet-anchor-link-in-user-control/comment-page-1/#comment-58</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Thu, 11 Sep 2008 07:40:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.tornstrand.com/2008/02/20/aspnet-anchor-link-in-user-control/#comment-58</guid>
		<description>Jon Sagara: Well how about that ... the simplest thing!</description>
		<content:encoded><![CDATA[<p>Jon Sagara: Well how about that &#8230; the simplest thing!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon Sagara</title>
		<link>http://www.tornstrand.com/2008/02/20/aspnet-anchor-link-in-user-control/comment-page-1/#comment-57</link>
		<dc:creator>Jon Sagara</dc:creator>
		<pubDate>Wed, 10 Sep 2008 18:19:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.tornstrand.com/2008/02/20/aspnet-anchor-link-in-user-control/#comment-57</guid>
		<description>Instead of NavigateUrl=&quot;#myanchor&quot;, change it to href=&quot;#myanchor&quot;.  Works just as well.</description>
		<content:encoded><![CDATA[<p>Instead of NavigateUrl=&#8221;#myanchor&#8221;, change it to href=&#8221;#myanchor&#8221;.  Works just as well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Barbaros Alp</title>
		<link>http://www.tornstrand.com/2008/02/20/aspnet-anchor-link-in-user-control/comment-page-1/#comment-20</link>
		<dc:creator>Barbaros Alp</dc:creator>
		<pubDate>Tue, 08 Jul 2008 11:52:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.tornstrand.com/2008/02/20/aspnet-anchor-link-in-user-control/#comment-20</guid>
		<description>I had the same problem today, after reading the comment i ve found a great solution without using CodeBehind.

Use  asp.net control and add attribute..

Go There

if there is no NavigateUrl defined in the HyperLinkField the cursor looks like there is no link under that button you will see just the cursor. For this i defined a little css 

.linkButtons
{
   cursor:pointer;
}

Thanks, hope this helps</description>
		<content:encoded><![CDATA[<p>I had the same problem today, after reading the comment i ve found a great solution without using CodeBehind.</p>
<p>Use  asp.net control and add attribute..</p>
<p>Go There</p>
<p>if there is no NavigateUrl defined in the HyperLinkField the cursor looks like there is no link under that button you will see just the cursor. For this i defined a little css </p>
<p>.linkButtons<br />
{<br />
   cursor:pointer;<br />
}</p>
<p>Thanks, hope this helps</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gregory McKenzie</title>
		<link>http://www.tornstrand.com/2008/02/20/aspnet-anchor-link-in-user-control/comment-page-1/#comment-6</link>
		<dc:creator>Gregory McKenzie</dc:creator>
		<pubDate>Tue, 08 Apr 2008 13:39:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.tornstrand.com/2008/02/20/aspnet-anchor-link-in-user-control/#comment-6</guid>
		<description>Try adding a attribute instead of populating the .NavigateUrl property.  For example:

                if (objAlert.Url.Substring(0, 1) == &quot;#&quot;)
                    objHyperLink.Attributes.Add(&quot;onClick&quot;, &quot;Javascript:location.href(&#039;&quot; + objAlert.Url + &quot;&#039;);&quot;);
                else
                    objHyperLink.NavigateUrl = objAlert.Url;</description>
		<content:encoded><![CDATA[<p>Try adding a attribute instead of populating the .NavigateUrl property.  For example:</p>
<p>                if (objAlert.Url.Substring(0, 1) == &#8220;#&#8221;)<br />
                    objHyperLink.Attributes.Add(&#8220;onClick&#8221;, &#8220;Javascript:location.href(&#8216;&#8221; + objAlert.Url + &#8220;&#8216;);&#8221;);<br />
                else<br />
                    objHyperLink.NavigateUrl = objAlert.Url;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
