freelanceprogrammers.org Forum Index » ASP
Re: hyperlink control vs. <a href>
Joined: 06 Dec 2005
Posts: 4
Re: hyperlink control vs. <a href>
Without seeing the rest of your code try adding runat="server" after
Target="_blank" and make sure you have <form>....</form> tags around it.
----- Original Message -----
From: "sas0riza" <sas0riza@...>
To: <AspNetAnyQuestionIsOk@yahoogroups.com>
Sent: Friday, September 09, 2005 10:14 AM
Subject: [AspNetAnyQuestionIsOk] hyperlink control vs. <a href>
> Hello,
>
> I would like to change the following line:
>
> <a class="SiteLink" href="<%= Global.GetApplicationPath(Request) %
>>/Docs/Docs.htm" target="_blank">Documentation</a>
>
> -TO-
>
> <asp:HyperLink id="Documentation" runat="server" cssclass="SiteLink"
> NavigateUrl="<%= Global.GetApplicationPath(Request) %
>>/Docs/Docs.htm" Target="_blank">Documentation</asp:HyperLink>
>
> Are these lines the same?
>
> For some reason, the second line gives me an error when I click on
> the link:
>
> Server Error in `/` Application.
> ---------------------------------------------------------------------
> -----------
>
> HTTP Error 400 - Bad Request.
>
> ---------------------------------------------------------------------
> -----------
> Version Information: Microsoft ASP.NET Web Matrix Server 0.6.0.0
>
>
> Any advice is greatly appreciated.
>
> Thanks.
>
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
>
All times are GMT
Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Freelace Website Designer - Customer web design and software building.
China Wholesale - Electronics Products
Character Studio - Tutorials and Help
China Wholesale - Electronics Products
Character Studio - Tutorials and Help







