Re: Master Page Best Practice
- From: "LaptopHeaven" <LaptopHeaven@xxxxxxxxxxxxxxx>
- Date: Thu, 14 Sep 2006 22:47:59 -0400
Thanks. That what I was guessing.
How about handling the <script...></script> tag inside the <head>. The ~/
does not seem to work.
"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: Steven Cheng[MSFT]
- 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: Re: Calendar Help in ASP.NET 2.0
- Next by Date: File upload control
- Previous by thread: Re: Master Page Best Practice
- Next by thread: Re: Master Page Best Practice
- Index(es):
Relevant Pages
|
Loading