Re: Master Page Best Practice



I thought that ~/ did not work with html controls.
Has this changed?

--

AG
Email: discuss at adhdata dot com



"Steve C. Orr [MVP, MCSD]" <Steve@xxxxxxx> wrote in message
news:uirz3pG2GHA.4648@xxxxxxxxxxxxxxxxxxxxxxx
I prefer the second option you mentioned for most situations.
<a href="~/somewhere.aspx"> runat="server">

It is optimal, giving as much functionality as is needed without any
additional overhead.
WebControls (such as Hyperlink) require more server resources than the
simple href, and the last option you mentioned is usually more of a
maintenance headache.

--
I hope this helps,
Steve C. Orr
MCSD, MVP, CSM
http://SteveOrr.net


"LaptopHeaven" <LaptopHeaven@xxxxxxxxxxxxxxx> wrote in message
news:%237IHllF2GHA.4388@xxxxxxxxxxxxxxxxxxxxxxx
When using Master Pages, what is the best Best Practice when it comes to
images and hyperlinks on the master page? Is it better to use WebControls
(<asp:Hyperlink/>), HtmlControls (<a href="~/somewhere.aspx"
runat="server">) or using ResolveClientUrl("~/somewhere") inline?







.



Relevant Pages

  • Re: Bad Design
    ... platform, when used properly. ... > functionality in asp pages so that I can get a simple little hyperlink ... I'd more appreciate suggestions on how to get a hyperlink ... > open an access database to a specific record. ...
    (microsoft.public.access.devtoolkits)
  • Bad Design
    ... using the tables and creating secondary and tertiary tiers for record access ... functionality in asp pages so that I can get a simple little hyperlink ... I'd more appreciate suggestions on how to get a hyperlink to ... open an access database to a specific record. ...
    (microsoft.public.access.devtoolkits)
  • Re: Master Page Best Practice
    ... additional overhead. ... WebControls (such as Hyperlink) require more server resources than the ...
    (microsoft.public.dotnet.framework.aspnet)
  • New window + server side method
    ... I need the functionality of the _blank of the hyperlink but need the onclick ... functionality of the LinkButton. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: www Link in VB 6...
    ... Camile wrote: ... > I just want the simple functionality I have grown to like in MS ... To convert a simple Label to a Hyperlink. ...
    (microsoft.public.vb.general.discussion)

Loading