Solved

Global resources file

Posted on 2016-08-17
6
27 Views
Last Modified: 2016-10-13
I have 100 websites that hosting in the same server and they all use same company name and logo.

It is written in asp net and c# ... How can I make one changes to all?
0
Comment
Question by:ITsolutionWizard
  • 3
  • 2
6 Comments
 
LVL 12

Assisted Solution

by:funwithdotnet
funwithdotnet earned 500 total points
ID: 41761979
Have you considered using an SSI (Server-Side Include) #include directive?
<!-- #include file="styles/companybanner.css" -->
<!-- #include file="companybanner.html" -->

Open in new window

0
 

Author Comment

by:ITsolutionWizard
ID: 41762005
I can consider but u have to show me how it works
0
 
LVL 12

Assisted Solution

by:funwithdotnet
funwithdotnet earned 500 total points
ID: 41762061
Actually that answer was old-school. Since you have to edit anyway, perhaps:

   <%@ Page Language="vb"%>
   <html>
   <body>
        <%Response.WriteFile ("file.ext")%>
   </body>
   </html>

Open in new window


is the way to go.
0
 

Author Comment

by:ITsolutionWizard
ID: 41762691
Let us assume I have company name = "xyz" in the include file
How can I write on aspx page?
0
 
LVL 12

Accepted Solution

by:
funwithdotnet earned 500 total points
ID: 41762892
Pardon me if I don't really understand your question.
   <%@ Page Language="vb"%>
   <html>
   <body>
        <%Response.WriteFile ("includes\xyz_include.txt")%>
        <!-- or use an include directive ... -->
        <!-- #include file="xyz_companybanner.html" -->
        <!-- #include virtual="includes\xyz_companybanner.html" -->
   </body>
   </html>

Open in new window


... shows how you can add the contents of a file to an .aspx page.

To be honest, today, I probably wouldn't use either of the above examples for inclusion in 100 similar websites. I'd probably point all 100 host names at the same web site and adjust content as necessary. How that is done depends on many factors.

Good luck!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now