I wanted to know if it is possible to refer to the value of my "appSetting" file directly in the ".css" stylesheet? eg:
body { background-color: <%$ AppSettings:myColorValue %>; }
It's just beautiful ^^ Thank you very much
Out of the box, the ASP script ISAPI engine only processes files supported by supported extensions ( .asp ). In addition, .css files are static and are usually cached by the browser.
.asp
.css
You can move the body style to the <style> in your .asp code (for example, in #include ), where it will deal with the engine.
body
<style>
#include
No, you canโt. The application settings file is specific to ASP.Net, CSS files are not.
However, you can define your own token scheme and return a processed, de-wedged file, which is then cached.
Source: https://habr.com/ru/post/1447462/More articles:Do java libraries ".jar" exist for performing backup and recovery - javaC ++ - Template Specialization and Partial Specialization - c ++syntax error in creating trigger, what's wrong? - mysqlIs it possible to get the iQSI initiator of the IQN of another Linux machine? - linuxHow to make the client a spray client to follow forwarding - redirectPlay reverse routing 2.1-RC1 without compiling - scalaHow to handle a key from a console application - pythonImplicit arguments and applying a function to the tail of fixed size vectors - dependent-typeCan I use instance variables created for auto-synthesized properties? - propertiesHow to customize Pandas columns to align columns of data by subindex? - pythonAll Articles