Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

Any ASP.NET developers here?

Thread Tools
 
Search this Thread
 
Old 01 May 2004, 01:47 PM
  #1  
Fatman
Scooby Regular
Thread Starter
 
Fatman's Avatar
 
Join Date: Aug 2002
Posts: 2,390
Likes: 0
Received 0 Likes on 0 Posts
Default Any ASP.NET developers here?

I'm trying to add a feature to my website which allows users to choose their own preference of CSS file (somewhat like the Default/Classic Scoobynet styles, bottom left of the page) . I'm not considering letting them create CSS files, just choose one I've already written. That preference will be stored in the dB.

How do I access the CSS file via .NET namespaces? I've seen references to doing this control-wise, but I want to have the entire page inherit a specifc CSS file (which I guess I'll 'decide' in logic at the Page_Load event...?). My immediate thought was to put a Form (run at server) with a Literal control sat in the Head section of the HTML (where the CSS link would naturally lie). However, Visual Studio objected and claimed I couldn't do this in the current Schema. What does that mean? Any tips?

Assuming there's an easy/obvious way of getting it into the Head section, would...
Response.Write("<link rel='style.css' type='text/css />")

...suffice?

cheers!
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Mattybr5@MB Developments
Full Cars Breaking For Spares
28
28 December 2015 11:07 PM
Mattybr5@MB Developments
Full Cars Breaking For Spares
12
18 November 2015 07:03 AM
InTurbo
Other Marques
20
08 October 2015 08:59 PM
bluebullet29
General Technical
2
27 September 2015 07:52 PM
Baskey
General Technical
3
25 September 2015 03:45 PM



Quick Reply: Any ASP.NET developers here?



All times are GMT +1. The time now is 02:38 AM.