Re: Web User Controls And StyleSheets
From: MLibby (mlibby_at_nospam.nospam)
Date: 07/02/04
- Next message: Sunny: "Re: Anchor <a name=... > tag"
- Previous message: Nick Malik: "Re: Help in remoting !"
- In reply to: Steven Cheng[MSFT]: "Re: Web User Controls And StyleSheets"
- Next in thread: Steven Cheng[MSFT]: "Re: Web User Controls And StyleSheets"
- Reply: Steven Cheng[MSFT]: "Re: Web User Controls And StyleSheets"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 2 Jul 2004 07:24:01 -0700
Hi Steven, Thank you for your reply!
I tried something interesting that is contrary to your response, "Yes, as for a html page, we have to link a css file in the <link > tag in the <head> area.":
When I link to a css file anywhere within a web user control (ascx) it works. css styles are aplied to the html in the ascx. The link is not in the .aspx page's head tags! This does NOT work on an aspx page.
Can you please verify this and let me know if this behavior is by design or will this css, .ascx implmentation break my code is some future release of visual studio?
Kind regards,
Mike
-- mcp, mcse, mcsd, mcad.net, mcsd.net "Steven Cheng[MSFT]" wrote: > Hi Mike, > > Thanks for your response. To answer you the questions in the last reply: > 1. Yes, as for a html page, we have to link a css file in the <link > tag > in the <head> area. > > 2. Currently, there aren't any other means which can help modify the <head> > area without touching the aspx page template. Because we need to declare > the <head> area as a serverside control so as to manipulate it in code > behind. > > In addition, in asp.net we can set a Response Filter for a asp.net 's > Response object so as to hook its output result and do some modification. > Here are some tech articles on this: > > #HOW TO: Archive the Results of a Dynamic Page to an HTML Page in ASP.NET > by Using Visual C# .NET > http://support.microsoft.com/?id=810205 > > #Capturing the Output of ASP.NET Pages > http://weblogs.asp.net/despos/archive/2004/06/01/145436.aspx > > > Regards, > > Steven Cheng > Microsoft Online Support > > Get Secure! www.microsoft.com/security > (This posting is provided "AS IS", with no warranties, and confers no > rights.) > > Get Preview at ASP.NET whidbey > http://msdn.microsoft.com/asp.net/whidbey/default.aspx > >
- Next message: Sunny: "Re: Anchor <a name=... > tag"
- Previous message: Nick Malik: "Re: Help in remoting !"
- In reply to: Steven Cheng[MSFT]: "Re: Web User Controls And StyleSheets"
- Next in thread: Steven Cheng[MSFT]: "Re: Web User Controls And StyleSheets"
- Reply: Steven Cheng[MSFT]: "Re: Web User Controls And StyleSheets"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|