master-pages

Rendering Javascript in an asp.net master page at a specific spot

Hi, I've a specific requirement of rendering Javascript onto a master page of an asp.net site. There are two specific requirements of it: 1) The position - It should be rendered at the very end of the page just before BODY tag 2) Control - Render it only when requested. I solved #2 by creating a web-part which will render the javascri...

Repositioning loading image

I have a loading image (gif) that shows up when a user is waiting for a response to an action on a ASP.NET page. The way it's implemented currently is: In a JS file, I have: document.write( '<span class="loadingbar" ID="loadingbar"><p>Loading Data... </p>' ); document.write( '<img id="loadingbarimage" src="Images/loading.gif" />' ); d...

Master page controls are resetting

Hi, I am using master page and child pages in asp.net application. I am having a drop down list and treeview( which uses sitemapdatasource) on master page. When I click on any of the treeview node,page is redirected to child page. The problem is if select any value in the drop dwn list and click on treeview node, the selected value shou...

get site.master over web.referance

I want to develop a plugin web project for a web project. In this case i have to build an aspx which needs to use site.master of the main web project. Is it possible using site.master from any other webreference? ...

Get ControllerName and ActionName and populate the ViewData in Master Page?

I've a SuperController which will be inherited from all the controllers. In the constructor I'm trying to populate the ViewData using the ControllerName and the ActionName. I'm not going to pass the ControllerName and the ActionName as the ViewData. I've a method that needs the ControllerName and the ActionName and I need to pass the re...

SharePoint masterpage css styles not showing for other users

I'm setting up a SharePoint Site where the masterpage is built using one of the existing masterpages as a starting point (Blue Band). When I test the site while logged in as the super admin, everything looks fine. But if I log in as a general user the default masterpage shows as Blue Band again. I'm guessing there must be some permissi...

Select a Master Page in Web Developer Express

The dialog box for adding a web form to a web project in Visual Studio has a checkbox to 'Select Master Page'. This checkbox doesn't exist in the Web Developer Express Edition. Is there a simple alternative to attach a Master Page while adding a new web form in the Express Version? ...

How do you access user controls on a masterpage from the asp:content page using the master?

I keep getting these requests for 'make me a tool to do xyz' for a web app we're putting up. So after the third one, I realized it'd be easier to lump them all together and use a master page. I've got a user control called MessageCenter I use for error, success, and informational messages, and so I dropped that on the master page. <%@...

Using javascript on an aspx page that uses a master page, which contains the page in a form?

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 the form begins on the master page. The following line will come up bogus: document....

Overriding a master page function in ASP.net

In my master page I have the line <div class ="breadcrumbs" runat="server"><%= SitePath()%></div> SitePath() involks a custom class that builds navigation elements based on the combination of the static sitemap and dynamically generated pages. It returns the html for a custom breadcrumb navigation element. Here is the SitePath() cod...

Multiple web projects, (almost) same layout in Visual Studio

Hi guys. Im currently developing an application with two web projects (MVC): Frontend Backend These two are going to have almost the same layout (few minor changes). Therefore I thought about creating a MasterPage, they can share. But since it's two projects in two different locations, where should I put the masterpage, images and j...

Loading a control From a master Page

The "Header control" we use holds a jquery reference. When I attempt to leverage any jquery functionality from the Master page it fails because the jquery reference has not been added yet. Is there a way to force the Header Control that is embedded into the Master Page to load it's resources before the Master Page attempts to reference...

MasterType problem after converting from ASP.Net WebSite to Web Application project

After converting a Asp.net website to web application, I receive 'Type MyNameSpace.MyMaster is not defined' error on pages that use the MasterType directive. eg In the aspx file <%@ MasterType VirtualPath="~/MyMaster.master" %> In the designer.vb file the following code is generated and has the error described above: Public Shadows...

MasterPage and UserControl Interaction

I have a situation where I need to update a control referenced in a masterpage from a control that is referenced from the content page. Below is hierarhcy: MainMasterPage BreadCrumbUserControl(a user control) - has a public string property ContentPage(uses MainMasterPage) DataUserControl I want to be able to upda...

Access an HTML control on ASP Master Page from the code behind of a Content Page

Hi, I have an ASP.NET / C# application in which the Master Page contain the main menu of my application and several content pages that depend of this master page. I would like to highlight the menu link of my master page corresponding to the current content page displayed. To do that, I already have a CSS class dedicated to this (call...

What master page is used for SharePoint Site Settings pages?

I'm wanting to edit the master page that is used for the Site Settings pages in a SharePoint site. I've changed the main master page but it doesn't alter the Site Settings page. What page do I need to edit? ...

SetFocus to asp:TextBox within asp:Panel within asp:Content from content Page Load event

I have an asp web page(login.aspx) that uses a master page (master.page). I need to set focus to an asp:textbox(TextBox1) that is inside an asp:Panel(Panel1) on Login.aspx I want to set focus to TextBox1 on an asp:Button click event (or page load on login.aspx for testing, I've tried both). I have tried the following solutions with no...

Change pictures on a Masterpage depending on documents in Document Library.

I have to display a picture with a link on the masterpage of a sharepoint site. I also have a document library with a custom field named status. When in the library exists a document with the status "Active" the picture should be red with the link pointing to the document. When there is no Active document the picture should be blue and p...

What is the best approach to populate a masterpage control which is dependent on the content page?

I have a master page called SampleMaster.master and this page contains a Repeater control The Repeater control will be used to display the relevant tags associated with each content page and the tags will vary between content pages The data extraction method Tags.GetTags() is working but I do not know the best approach to populate the ...

jQuery fadeTo effect applied to <tr>

I want to add the fadeTo effect to a tr tag using jQuery. This should be possible, right? Here's my code: if ($) { $(document).ready(function() { $("tr[id$='_trPendingRequest_Manager']").fadeTo("slow", 0.33); }); } For whatever reason, the effect is not happening. I decided to do a bit more testing and added a paragr...