Thanks, tweaking the editor options seems to have worked.

Phil

Paul Brinkley-Rogers wrote:

> This is a known bug in the designer. You could try this:
>
> <link href="<%= theLink %>">
>
> In code behind:
>
> public class MyPage : Page
> {
>    protected string theLink;
>
>    private void Page_Load(object sender, System.EventArgs e)
>    {
>       theLink = "/mycss.css";
>    }
> }
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:oxenberg@;attbi.com]
> Sent: Friday, November 08, 2002 6:30 AM
> To: dotnet
> Subject: asp.net equivalent for the html <link> tag
>
> Hi,
>
> We have a dozen or so aspx pages that all contain an html <link> tag
> that
> references a stylesheet.  By adding the attribute runat="server" and
> making the
> tag well formed <link/>  I can access its href attribute at runtime and
> change
> it dynamically.  Works just fine as long as we don't modify anything in
> the
> designer.  The designer removes the ending forward slash.  Any
> suggestions to
> work around this?
>
> Thanks
> Phil
>
> ---
> You are currently subscribed to dotnet as: [EMAIL PROTECTED]
> To unsubscribe send a blank email to
> %%email.unsub%%
>
> ---------
> Administrated by 15 Seconds : http://www.15Seconds.com
> List Archives/Search : http://local.15Seconds.com/search
> Subscription Information : http://www.15seconds.com/listserv.htm
> Advertising Information: http://www.internet.com/mediakit/
>
> ---
> You are currently subscribed to dotnet as: [EMAIL PROTECTED]
> To unsubscribe send a blank email to %%email.unsub%%
>
> ---------
> Administrated by 15 Seconds : http://www.15Seconds.com
> List Archives/Search : http://local.15Seconds.com/search
> Subscription Information : http://www.15seconds.com/listserv.htm
> Advertising Information: http://www.internet.com/mediakit/





---
You are currently subscribed to dotnet as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]

---------
Administrated by 15 Seconds : http://www.15Seconds.com
List Archives/Search : http://local.15Seconds.com/search
Subscription Information : http://www.15seconds.com/listserv.htm
Advertising Information: http://www.internet.com/mediakit/


Reply via email to