master-pages

Calendarextender is not displayed with masterpages

Hi! I'm working with masterpages and after reading a lot of answers I can't find why my calendarextender doesn't appear Here is my code http://pastebin.com/m789f935e ...

ASP.NET master pages- does the order of the contentplaceholders matter on the web content forms?

I want to rearrange my master page layout. The problem is, i already have dozens of web content forms created off of that master. Namely- i want to create a Header contentplaceholder and Footer placeholder, and move my css and javascript loads to the header and footer respectively. my question is- can i just place the contentplacehold...

Nested MasterPage in SharePoint not working

I have a SharePoint 2007 Server and want to create a site with a nested Master Page. I created a new Master Page, test.master: <%@ Master MasterPageFile="~masterurl/default.master" %> <asp:Content ID="Content1" ContentPlaceHolderID="PlaceHolderMain" runat="server"> Test123 <b> <asp:ContentPlaceHolder runat="server" ID="Test...

Help with ViewData asp.net mvc

In my master page I have a menu that uses jquery ui accordion. What is the best way to specify which item should be active?? the only thing I can think of is $(document).ready(function() { $("#accordion").accordion({ collapsible: true, autoHeight: false, active:<%=ViewData["a...

Master page property access from Content page.

FROM BOOK: To reference public properties in a master page, we add the @MasterType declaration to the content page and reference the property using Master.<PropertyName>. QUESTION: But what happens internally? Does all of the master's and content page's properties, function gets complied into one class? Or something else? ...

Why is @MasterType directive not implied when setting @Page masterPageFIle?

The docs for @MasterType have this example. <%@ Page masterPageFile="~/MasterPage.master"%> <%@ MasterType virtualPath="~/MasterPage.master"%> Why is @MasterType even needed? Couldn't the compiler automatically take the same actions based solely on @Page masterPageFile? When would you not want to use both? ...

In my master page, want to output HTML only if the user is an administrator

My user object has the property: IsAdministrator Now I want to inject HTML on every page, so in my master page, only if the user is an administrator. What is the best way to do this? I was thinking of creating a user control, and then calling RenderPartial. But I need to access the Request object to see if the user is authenticated, ...

Can I bubble up event from Master page to ASPX

Can I bubble up a button click event of a button in master page to be handled by an event handler in the aspx page ? ...

Content Placeholder Javascript Object Expected Error

I have the following code behind that was, until recently, working fine and dandy! tbxProdAC.Attributes.Add("onclick", "$('#" + GridView1.ClientID + "').remove(); $('#" + radProdAC.ClientID + "').attr('checked', true); $('#" + ddlBuyer.ClientID + "').val('--Choose Buyer--'); $('#" + ddlSub.ClientID + "').val('--Choose Sub Category--...

There is another SharePoint MasterPage parameter different of Site and System

Hi, After the branding of a SharePoint site is done, I mean Site and System masterpages, there are still a few pages that uses the default style. My question is if we can change the master page for that pages too. Example: http:///_layouts/settings.aspx always looks like a fresh SharePoint ...

ASP.NET - Can a content page call a function in its master page?

I have a site with a master page, Site.master. Many of Site.master's content pages have the same button that functions the same way on each page: <asp:ImageButton ID="btn" runat="server" OnClick="btn_Click" /> Is it possible to write btn_Click once in Site.master's CodeFile and have it called in the OnClick attribute of each content pa...

Web applications - combine or separate?

For our company I'm creating a big Extranet website which will feature a set of sub-applications. I'm a bit puzzled by what should be the right setup of the solution and projects. I have one web application that we call the Portal. It contains the authentication/authorization classes, masterpages, navigation/url routing classes and them...

How can I reach form values from Content Page in ASP .NET

Hi I have a master page which has a <form runat="server"> line and a ContentPlaceHolder in it. I am trying create a content page using this master page whitch has text boxes in it. But I cannot reach values of theese text boxes using Request.Form["textbox"] from that conent page. I need to use Request.Form["ctl00$ContentPlaceHolder1$te...

how do you access variables defined in masterpage.master.vb in masterpage.master

I have a collection of cookies filled with Browserhawk information in masterpage.master.vb such as; Dim useCSS as boolean = 0 Response.Cookies("Stylesheets").Value = brHawk.Stylesheets if Response.Cookies("Stylesheets") = True then useCSS = 1 if Stylesheets is True I set useCSS to 1, if false I set useCSS to 0 I need to access these i...

ASP.NET MVC master page.

In a custom viewengine in the findview method the mastername is always empty, even if the page has a masterpage defined. Any idea why, or how can I get the mastername? In the viewEngine class: MasterLocationFormats = new[] { "~/{0}.master", "~/Shared/{0}.master", "~/Views/{1}/{0}.master", "~/Views/Shared/{0}.master" };...

Javascript Validation not working on .Net Content Pages...

I'm wondering if anyone else has experienced the following issue. On a single non-linked (to a master page) .aspx page, I'm performing simple JS validations: function validateMaxTrans(sender, args) { // requires at least one digit, numeric only characters var error = true; var regexp = new RegExp("^[0-9]{1,40...

Accessing masterpage properties from child pages in ASP.net VB

I have masterpage.master.vb where I have properties, such as; Private _SQLerror As String Public Property SQLerror() As String Get Return _SQLerror End Get Set(ByVal value As String) _SQLerror = String.Empty End Set End Property Then I have an aspx page in which I need ...

Nullref Exc. on label detected by intellisense?

Okay so I'm quite new to ASP.NET and the MasterPage concept and there's an error I just can't figure out. This is a part of my default.aspx: <asp:Content ID="ContentLoginContent" ContentPlaceHolderID="LoginContentPlaceHolder" runat="server"> <div id="ContentLoginDiv"> You've got <asp:Label ID="MemberCreditLabel" runat="server" Text...

Combine ASP.Net MVC with WebForms

Would it be possible to create a MVC root application (Portal with masterpages and themes) and add a couple of WebForms based subprojects (we already have an existing WebForms application that we would like to integrate into the Portal)? How would you centralize navigation (sitemaps, url routing)? How would you share the masterpages? Ho...

ASP.NET MVC 1.0 Nested Masterpages

Hi, I have a problem with my master pages. They have such inheritance order: MainMaster1.Master can be nested by Nested1.Master, Nested2.Master, etc. At the same time MainMaster can be duplicated and have working copies like MainMaster2, MainMaster3, etc. Advise please how can I dynamically change the MasterPageFile of my Nested1, Nes...