Any ASP.NET developers here?
#1
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!
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!
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