I'm adding a custom control dynamically in master page code-behind: try { // Add custom sidenav menu control dynamically SideNavMenu sidenav = new SideNavMenu(); tempPath = Request.RawUrl.ToLower(); path = tempPath.Contains(@"/sitename") ? tempP
I want to open a regular .aspx page in a rad window.But the regular page consists of Site Map.I don't want that sitemap to be displayed when it is opened in rad window. Please suggest me some solution. I already tried this: this.MasterpageFile="..//t
i use this code in master page: <script src="Scripts/jquery.min.js" type="text/javascript"></script> <script src="Scripts/jquery.cycle.all.js" type="text/javascript"></script> <script type
This is a simple question, or not. I have a master page which has three sections, in one section is a logo gallery. There are certain pages in the site i would like to inject text in that area and remove the image gallery, can this be done with jquer
I'm developing my ASP.NET web app using VS2010,C#. I have a user control contained in my masterpage, and now I'm going to access my usercontrol from the content page, is it possible to change usercontrol via content page client side events? I'm going
I have requirement in which i want to set different Master Pages for the Same Page depending upon userid(i.e. for one user it must set one master page and for another user it must set another master ).Can we set different Master pages for any page dy
Is it possible not to show the google analytic code on the master page? I mean can I place it somewhere where no one can see it but still get all the analysis on the application ?You can use the mobile code for google analytic to make what you ask. h
The short question: *takes deep breath* How I can ClientID of TableRow inside Table added to PlaceHolder, which is in a UserControl inside a Web Part added to a SharePoint page using a MasterPage? The explanation: I'm building a usercontrol that dyna
It works fine when I dont use virtual folder. My virtual folder is named test which points to an application inside MyDocuments. The path to my App is localhost\test\app\login.aspx Note that if I move the application in the root folder wwwroot and ma
I have tried this <head id="Head1" runat="server"> <title>Back Office</title> <link href="~/Styles/MasterPage.css" rel="stylesheet" type="text/css" /> <link href="Styles/cus
I have developed a script with jQuery that everytime a <select> selection is changed then some logic is executed. Initially I added that script to the MasterPage, in order to be sure that every page would be considered - however, I have some externa
Master page: <form runat="server"> <Scirra:MainMenu runat="server" ID="MainMenu" TopTabSelected="home" SubTabSelected="link2" /> <asp:ContentPlaceHolder id="MainContent" runat=&quo
In ASP.NET MVC2 how do you call a controller method from the master page? Say for example I wanted to include some overview data in the master: +--------------------------------------+ | Logo Welcome xyz| +--------------------------------------+ | to
I have several aspx pages and one site.master. I defined *.js file with any javascript functions. And now I want to find ID of FileUpload control on one of this subpage. function CheckFile() { var filePath = document.getElementById('<%= this.fileUp.C
I have an MVC application that I am creating that I have to integrate regular WebForms into the site. The WebForm pages will be using a ReportViewer control so I believe that won't work in a regular MVC view because ReportViewer uses ViewState, etc.
I'm prototyping an environment where multiple applications run on the same server, but they all share a master page. Is it possible to load a master page from another application? In one of my applications, I have this code: protected override void O
I'm trying to use JQuery with some asp.net pages, that use master pages, and I'm having problems with loading the JQuery javascript file. When I include the file in the markup of the master page, it works just fine on pages that are in the same direc
If i have an ASP.NET MVC 2 Web Application with the following Views: Main.aspx Page1.aspx Page2.aspx And all Views inherit from a MasterView called Site.master, I want to be able to have a default Title/H1 for the page, which can be overriden in the
Here is my master page code behind: namespace mysite.MasterPages { public partial class Main : System.Web.UI.MasterPage { public bool isLoggedIn; protected void Page_Load(object sender, EventArgs e) { isLoggedIn = Request.IsAuthenticated; // Is the u
Or any viable workaround. So, imagine a Master page that implements IFooMaster with a method ShowFancyMessagePopupTheBusinessCantLiveWithout(string message); I am in a page that inherits this master page. Upon a checkbox being unchecekd, I want to sh
I am trying to set a default button in my ASPX page. I have a master page so the form is there. I have a panel in the content page that holds a table that organizes a number of textboxes, dropdowns and other inputs. The last row of the table holds so
i have a master page. i try to add js files. vs editor is not draw green color. But no affect my pages with js. i can not use below js. How can i write src? (i can use pickurl) but i don't see effects of js on page <script src="Engineering/EngDyna
Is it possible to alter the visible property of hyperlinks on a masterpage at runtime? thanksIf you expose the hyperlink as a property on the master page, you can get a reference to a pages master and cast that to your specific master page then set v
1) I assume Themes can be set programatically only inside Page.PreInit event handler due to the following reasons: if we'd set a Theme inside Page.Init event handler, then by that time ViewState would already be tracked and thus any data applied by T
I want to do some client side validation using javascript in ASP.NET page. I tried using <script src="../../../JS/Registration.js" language="javascript" type="text/javascript" /> but its not working. Please help.Probabl
I have a master page which contains everything that inherits it within a form. A page inheriting from it needs to run some javascript to act on a text field on a page. However, I can't seem to reference that text field through the javascript, since t
I'm working on a .net 3.5 site, standard website project. I've written a custom page class in the sites App_Code folder (MyPage). I also have a master page with a property. public partial class MyMaster : System.Web.UI.MasterPage { ... private string
I have the requirement to support different Master pages on my application (ASP.NET MVC). What is the recommended way to: Pass the master page name to the view from. Store the master page (in session, or something) so it sticks during a user's visit.
We would like to have several internal web applications which use the same master page. Is there a way to store a master page in a common library referenced by all projects?You can do this, but it is difficult and has quite a few drawbacks. This proc
Here is a scenario: Let's say I have site with two controllers responsible for displaying different type of content - Pages and Articles. I need to embed Partial View into my masterpage that will list pages and articles filtered with some criteria, a