How To Have Common Layout For Multiple Websites
Dec 18, 2010
we are working on a portal which will have multiple websites sites loaded in same container meaning there will be a
1)Top Header showing Portals name and currently loaded app's name
2)left hand side frame having menu which will list applications which are independent of one another.Each of these application is hosted on different servers sharing same DNS name for ex .
i) [URl]
ii) [URl]
3) Righ hand frame ::this is very individual applications pages will load with there own submenu.
Now top header and left hand side menu are common across the applications while the contents in right hand frame will application specific. How can I achieve this using master page ,without requiring indivdual application to have same master page copied in there virtual directory
View 2 Replies
Similar Messages:
Jun 24, 2010
Creating 4 websites with one common admin panel
View 6 Replies
Mar 9, 2011
I'm looking at doing a pair of MVC applications. One of the application will be a public website and the other for a POS kiosk. There will be some common views between the two applications. I'm considering having a single Visual Studio solution that will contain the two projects. But, I'm not sure how I can go about sharing the common views between the two projects, without just copy and pasting.
Is there way of doing it? Or should I be looking at using a different approach?
View 3 Replies
Apr 2, 2011
can i use common web.config across multiple projects
suppose say i have one web and one wcf service both are using same data base
then if change database the i need to make changes in both config files
or i have some common keys and values
is it there any we to common out the things in to one config file and that can be shared by multiple projects
View 1 Replies
May 7, 2015
As I am using textbox in html table.How to write common for alll textbox in html table. As we use selected index change inasp.net. Here how to code ?
<head runat="server">
<title></title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript">
[Code].....
View 1 Replies
May 20, 2013
If I have 10 radio button and the value of ten is same 1,0, 2
<asp:RadioButtonList ID="rd_12_a" runat="server" onclick="" RepeatDirection="Horizontal">
<asp:ListItem Value="1">Yes/asp:ListItem>
<asp:ListItem Value="0">no</asp:ListItem>
<asp:ListItem Value="2">other</asp:ListItem>
</asp:RadioButtonList>
So instead of writing if condition for all can i write like this
radiobuttonlist rbl =(radiobuttonlist)sender;
if (rbl.selectedvalue="1" || rbl.selectedvalue="2")
then the javascript modal pop-up will display a message...
View 1 Replies
May 7, 2015
I am using multiple gridview in my asp page.How to bind mutiple gridview Like code below this.
protected void Page_Load(object sender, EventArgs e) {
if (!Page.IsPostBack) {
Label1.Text = Session["projectname"].ToString();
GridBind();
} else {
//Response.Write("Postbac occurs");
[code].....
View 1 Replies
Mar 11, 2011
We have about 50 web-sites, running in different application pools, that read from a common cache database (using Microsoft Enterprise Library Caching application block). We currently have a console application which populates the cache at 3AM every morning. However, we want to get rid of this application and get the cache to automatically refresh expired items, using the ICacheItemRefreshAction interface.
We were going to create our cache object in the Global.asax of each of the 50 web-sites. However, my concern is that if we set a cache-expiration policy in Global.asax, that each of the 50 web-sites will trigger a refresh action, causing the data to be re-cached 50 times. We don't want only 1 web-site to set the expiration policies, as then the 49 other web-sites will have a dependency on that 1 web-site, and that's an architecture no-no.
View 2 Replies
Mar 30, 2011
There are existing questions that pertain to this subject, but I feel my case may be slightly different(correct me if i'm wrong).
I have two web sites that are almost identical as far as graphics go. They will need only to have a different logo. Additionally I have set up the database so that products can be flagged to show up on either or, or both web sites. Is it possible to set up IIS to point the second web site to the first web site and then have my code determine which domain the request is coming from?
For instance, web site 1 will have domain www.myfirstwebsite.com and the second web site will have a domain like www.mysecondwebsite.com.
If I did go this route I'm guessing I would check in the master page code behinds Page_Load event for the domain and then when I want to display products on my front end I can reference against the variable in the master page.
View 1 Replies
Nov 12, 2010
I was wondering about the best MVC practices for handling multiple websites from one MVC codebase. The functitonallity will pretty much be the same on all five sites, with most differences coming from styling/branding. Is it possible to dynamically set a Masterpage in MVC ? Should this even be attempted? Can everything get handled cleverly with routing?
View 2 Replies
Jun 4, 2010
I have 3 web.configs and 1 web project. I compile it once, and when deploy it, all I do is copy the correct web.config to the correct directory.
This is too complicate to maintain, when I have web.config change I must change all the three.
So, what I want is to keep only one web.config file, for all three websites.
In order of doing so, I have created a new settings.xml file, and I wish to read everything from there instead of te web.config file.
to my questions:
1. I need to remove ConnectionString from web.config to the settings.xml file. How do I change the providers connection string programatically?
[Code]....
Seems like moving the connection string to a different file might be a difficult task:)
2. How programatically can I do what I did on the web.config easily:
[Code]....
View 6 Replies
Apr 14, 2010
I am currently working on a project which involves three different websites with a lot of common functionality. At the moment the common functionality is placed in a different website full of user controls.
The problem is sharing the user controls across the multiple websites. Looking around on SO and other websites, the only solution seems the be using virtual directories. As this is a workable solution (we us this at the moment) it doesn't seem as a "clean" solution.
Which "best practices" exist on sharing common functionality (including the GUI/HTML) between different site?
Is it (for example) possible to create a single Web Application project and deploy subdirectories (each with their own web.config) to different production environments?
View 3 Replies
Jun 8, 2010
I'm trying to plan a series of websites that all share many of the resources such as css/jscript/images/content etc. For this reason I wanted to run all of the websites under the same application and IIS profile, but depending on the URL being used change the masterpage and theme/skin.
The ASP.NET membership database seems as if it was designed with this goal in mind because it allows you to setup multiple applications, however I believe the purpose for which this was built was to allow applications to be run under virtual directories/fodlers, not on seperate urls.
View 2 Replies
Feb 1, 2010
We have about 70 sites on our server that use same application (with different Application Pools) and they use for example a shared skin file. So is there a way to load this file to memory and share for all applications? what I mean is to sharing cache in multiple websites to decrease pressure on server.
View 3 Replies
Dec 20, 2010
I have a IIS server in my company which runs our intranet application, We assigned one static IP to it in order to access through internet. when we to mapped our application address eg : http://ip/applicationname to one host name, after loading when i try to access any page it was again showing ip address instead of my host name. When I check with my ISP, he told me that to resolve this either you have to put your application folder in root directory(directly in Inetput/wwwroot) or you have to create sub domain, when I put all my fies to root directory it is working well, but , I found that for all other application which i put the folders inside wwroot are taking the config file from root, how can i resolve it... or just explain me how to configure subdomain in my server to solve this issue....
View 1 Replies
Mar 23, 2011
I just upgraded to windows 4G hosting from old windows hosting on Godaddy. I have hosted multiple websites on this hosting account. The primary domain website [URL] is working fine after the upgrade but all other sites hosted in same account report some errors.
The structure is like this:
Root: inHouseRecipes.com
Root/s/Website1
Root/s/Website2
I have checked that the websites in subfolders are set up as an application in IIS 7. Also, the web.config of parent (root) website has the following
<location
path="."
inheritInChildApplications="false"
>
tag to stop other child web.config to inherit anything from parent.
I use asp.net to code my websites. Before 4G upgrade everything used to work like a charm.
Has anybody else also experiences the same issues? If yes, what are the changes that we need to make to support multiple web sites in same 4G hosting account?
View 5 Replies
Nov 24, 2010
I would like to have several websites that use the same styles, scripts, and App_GlobalResources. What would be the best way to structure my websites (web applications) to use the same files? I also need to share user controls with code behind.
View 6 Replies
Dec 25, 2010
At work, we've developed a custom ASP.NET Web Portal (That's very similar to iGoogle). We have "Apps" (self-contained, large web forms) and "Modules" (similar to Google Gadgets).Currently, we use a single-solution model. Right now, we have:
3 core projects
60 application projects
80 module projects
To reduce copy and pasting between projects, we're going to factor out common functionality (Data Access, Business Logic) into separate projects. I'd also like to introduce Unit Tests, which is going to increase the number of projects even more.We've already reached the point where Visual Studio is choking on the number of projects. We generally only load the 3 core projects and then whatever app's/module's project we're working on.Would a different solution structure help us out? Our number of projects is only going to increase.
In general, an app or module only references the 3 core projects. Soon, apps/modules may start referencing the Data Access/Business Logic projects. But in general, apps and modules do not make references between themselves.So to recap, what is the best practice for solution structure when there are MANY projects that use a small number of core projects?
View 1 Replies
Jan 26, 2010
I created a mixed mode authentication mechanism based on a few of the articles that I have read on this topic. It's similar to something like this: [URL]
Basically, there are two web applications. One accepts the Windows Auth and one accepts Forms Auth. The Windows Auth then creates a forms auth ticket and passes control to the Forms auth application. This solution works fine when both applications are housed within the same IIS web site.
Now, order to control the security of this solution we set up multiple IIS web sites on the same machine. Web Site 1 serves external traffic (forms auth) and Web Site 2 serves internal traffic (windows auth).
So the design is that an internal user can hit the site using Windows auth via a internal name (myserver) while the external users use Forms Auth hitting [URL].
All that said, the solution works when the two applications are in the same site. Doesn't work when they are in different sites.
View 4 Replies
Feb 2, 2010
I have a user control that contains an image of a product along with some product details.
If the product image is landscape, I want to render the control one way, and if the product image is portrait, I want to render the control a second way.
Example HTML Layouts (drastically simplified):
<div><table><tr><td>
<p><strong>XXXXXX</strong></p>
</td></tr><table></div>
versus
<div><table><tr><td>
<p><em>XXXXXX</em></p>
</td></tr><table></div>
Right now, both layouts are rendered. How can I conditionally render one layout and not the other?
View 13 Replies
Mar 1, 2011
Im working on a page which will display videos, on that page there will be other related videos, the requirement is to allow the user to watch up to 4 videos at a time, if you chose to watch only 1 video, then it takes up the allotted space, if you chose 2 videos then the space is divided in 2 and so on, we are still working out the specs on the size that will work..
basically i need assistance on how i can display the individual videos based on the users selection. Right now we have a page that is setup displaying charts( i know not the same thing) but those charts are
[code]....
which seem to be a decent size for the 4 smaller video clips..
View 4 Replies
Oct 15, 2010
the account we use to copy/publish websites to our web server is not allowing us access to push websites. I've added this account to the permissions in the links listed in the below link, but i don't have success when trying to push remotely. When the account is in the local admins account, everything works flawlessly, but we are not allowed to have it in there. http://social.msdn.microsoft.com/Forums/en-US/vssetup/thread/31be047e-4716-4974-b8a1-be0111b50199 I've googled and searched a lot for this particular error, but am not finding an answer that helps. We get this error, 'Unable to create the Web 'http://edea01/test/planning'. You are not authorized to perform the current operation', and the above link is the scenario that matches mine the most. I don't do develompment work, but am asked to figure out this connection problem.
View 3 Replies
Aug 11, 2010
I have a solution I'm working on in VS2010 Professional, using ASP.NET 4.0 with the AJAX Toolkit.This has been working fine, but when I started it up today, I got the runtime exception shown above. This exception occurs on any page with a control from the toolkit.Sometimes when I load a page, I get an exception "Could not load file or assembly 'System.Windows, Version=2.0.5.0, Culture=neutral, ublicKeyToken=7cec85d7bea7798e' or one of its dependencies. The system cannot find the file specified." If I then reload the page (without making any changes), I then get the exception shown in the subject line.I tried dragging an AJAX Toolkit control from the toolbox onto a page, and then deleting it, and that worked - once. The next time I tried the page (or any other), I got the exception again. Dragging a control out didn't help this time.
View 5 Replies
May 13, 2010
I have several web sites, all of which use the same JavaScript library. How can I "reference" this library from each of my web sites? If I just import the library into my web site in Visual Studio, I get in trouble as soon as the library changes, because I then have to update it in all web sites manually. It would be much easier to place the library in an external folder and just reference it from my web sites. How can I do this with Visual Studio?
View 9 Replies
Oct 21, 2010
List<user> Collection1 =new List<user>
List<user> Collection2 =new List<user>
I have to get all items common to both the collection using linq .Even though the object user has a lot of properties I just want to compare FirstName and LastName how can i get the items not in Collection1 but not in Collection2 using the same comparison rule
View 2 Replies