Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Global resources file

Posted on 2016-08-17
6
Medium Priority
?
34 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 12

Assisted Solution

by:funwithdotnet
funwithdotnet earned 2000 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
 
LVL 1

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 2000 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
 
LVL 1

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 2000 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

Tech or Treat!

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

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

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …

610 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