Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Newbie stuck with simple ASP.NET and CSS question

Newbie stuck with simple ASP.NET and CSS question

Scheduled Pinned Locked Moved ASP.NET
questioncsharpcssasp-netdatabase
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    Infernojericho
    wrote on last edited by
    #1

    Hi fellas. I am currently working on a website for my project. I am trying to create a settings page where users can change the color schemes (via css) of the page via a dropdown menu. My question is after the user has inputted the color schema, or in other words, the appropriate css file to load, how do I load that particular css file to the current page? And even if I managed to load it to the current page, the entire site is supposed to use that particular css file. How do I ensure that? Thank you and looking forward to your replies! ~A confused and desperate newbie. :confused:

    M 1 Reply Last reply
    0
    • I Infernojericho

      Hi fellas. I am currently working on a website for my project. I am trying to create a settings page where users can change the color schemes (via css) of the page via a dropdown menu. My question is after the user has inputted the color schema, or in other words, the appropriate css file to load, how do I load that particular css file to the current page? And even if I managed to load it to the current page, the entire site is supposed to use that particular css file. How do I ensure that? Thank you and looking forward to your replies! ~A confused and desperate newbie. :confused:

      M Offline
      M Offline
      Michael Sync
      wrote on last edited by
      #2

      ASP.NET 1.1 or ASP.NET 2.0? In ASP.NET, the path of CSS file can be changed in BasePage. We used to re-generate the whole HTML code from head to bottom. Maybe. you can declare one variable to set the dynamic path of CSS file. (You will get what I mean if you have any idea about creating base page in ASP.NET. ) In ASP.NET 2.0, you can change the theme by setting Page.Theme = "MyTheme"; Example ~ http://www.codeproject.com/useritems/dynamicThemes.asp?df=100&forumid=317422&exp=0&select=1556933 More : http://www.google.com.sg/search?q=asp.net+dynamic+theme&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a[^]

      Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you. :)

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups