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. Changing Skin of Web Page [modified]

Changing Skin of Web Page [modified]

Scheduled Pinned Locked Moved ASP.NET
questioncsharpasp-netwpfcom
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.
  • W Offline
    W Offline
    wEb GuRu
    wrote on last edited by
    #1

    Hi Developers I want my customers to chooose from different templates for there Ad page like: http://www.onestopmotors.com/ad_details.aspx?ad_id=7365[^]. Please let me know what is the best way to implement this concept(having multiple skins)? I know there are skin files in ASP.net 2.0 but I have to use ASP.net 1.1. Thanks for your time

    All the way from Sialkot ...

    modified on Monday, January 28, 2008 12:28:18 PM

    N 1 Reply Last reply
    0
    • W wEb GuRu

      Hi Developers I want my customers to chooose from different templates for there Ad page like: http://www.onestopmotors.com/ad_details.aspx?ad_id=7365[^]. Please let me know what is the best way to implement this concept(having multiple skins)? I know there are skin files in ASP.net 2.0 but I have to use ASP.net 1.1. Thanks for your time

      All the way from Sialkot ...

      modified on Monday, January 28, 2008 12:28:18 PM

      N Offline
      N Offline
      newc1
      wrote on last edited by
      #2

      As you are using .Net 1.1, and don't have the option of theming, the easiest way would be to have multiple stylesheets, and use the QueryString variable to determine which stylesheet to link to. In the <head> section of your aspx page, add a standard link element that links to your default CSS file. Give it an ID and mark it to runat="server". In your code-behind file, make sure the link element is declared as type System.Web.UI.HtmlControls.HtmlLink along with the other page controls. Then, when the page loads you can simply check the QueryString to see which stylesheet to use. If you have a valid stylesheet then simply set your declared link elements href property. Hope this helps...

      Clean code is the key to happiness.

      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