?
Solved

Global resources file

Posted on 2016-08-17
6
Medium Priority
?
33 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

752 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