Re: Master Page Best Practice
- From: "AG" <NOSPAMa-giam@xxxxxxxxxxxxxxxxx>
- Date: Fri, 15 Sep 2006 10:39:45 -0400
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?
.
- Follow-Ups:
- Re: Master Page Best Practice
- From: Steve C. Orr [MVP, MCSD]
- Re: Master Page Best Practice
- References:
- Master Page Best Practice
- From: LaptopHeaven
- Re: Master Page Best Practice
- From: Steve C. Orr [MVP, MCSD]
- Master Page Best Practice
- Prev by Date: problem in populating treeview --asp.net 2.0
- Next by Date: Re: gridview edit problems when paging
- Previous by thread: Re: Master Page Best Practice
- Next by thread: Re: Master Page Best Practice
- Index(es):
Relevant Pages
|
Loading