Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Senior Coder DanInMa's Avatar
    Join Date
    Nov 2010
    Location
    Salem,Ma
    Posts
    1,577
    Thanks
    13
    Thanked 248 Times in 248 Posts

    reusing masters in VS 2010

    Hello. I work onwhat is primarily a classic asp/vb website. I haqve slowly been adding .net pages in folders I setup manually in varying locations on the server.
    I am currently building a separate project for each web app that I build, instead of managing it as an entire .net website project.

    I have a site.master, css, javascript, and design images I would like to use as a starting point with each project as they are on the same site. The css, js, and images are all located off of the root /css/main . /images/main, /js/main .
    I usually have to add them manually to every project. I was wondering if there was an easier way to go about this and use the same design on all my projects

  • #2
    Senior Coder DanInMa's Avatar
    Join Date
    Nov 2010
    Location
    Salem,Ma
    Posts
    1,577
    Thanks
    13
    Thanked 248 Times in 248 Posts
    seems really tough to get answers on simple issues with .net and VS. not just here I mean.

  • #3
    $object->toCD-R(LP); vinyl-junkie's Avatar
    Join Date
    Jun 2003
    Posts
    3,082
    Thanks
    2
    Thanked 23 Times in 23 Posts
    Setup common file directories for each of them to use. Then set values to their path in the web.config file. When deploying your code to another server (QA, test, production, etc.) setup a separate web.config that uses file transformation to specific the new location for each directory. Microsoft has some good tutorials on their site on how to use web.config this way. Start here. Side Note: It's a little involved to set this up but a real time saver in the long run when it comes to deploying projects.
    Music Around The World - Collecting tips, trade
    and want lists, album reviews, & more
    SNAP to it!

  • #4
    New Coder
    Join Date
    May 2011
    Posts
    44
    Thanks
    0
    Thanked 3 Times in 3 Posts
    Hai,

    Since you have two levels for each of these folders, I believe that a relative referencing to these files will help you achieve a common design template.

    Thanks
    Windows Web Hosting Package Backed by 14 years Windows Hosting Experience
    Unlimited Reseller Hosting


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •