Solved

Global resources file

Posted on 2016-08-17
6
28 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

776 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