.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Masterpage issues

Posted By:      Posted Date: October 03, 2010    Points: 0   Category :ASP.Net

Hey people,


I've got an interesting one here - I honestly don't think I've had this issue before.


My folder system looks something like this (as noobish as it may be):

  • -Root
  • ../Pages
  • ../Pages/Admin
  • ../Pages/OtherFolder
  • ../Pages/AnotherFolder
  • etc.


    Now - I've got a Masterpage file in the Pages folder which is the general look of the entire site. Then, in each Pages Folder there's going to be another Masterpage inheriting the Page Folder Masterpage File.

    This seemed like a very simple and standard approach. But I'm having an issue. When editing the application in VWD2008E - I can see the Page Masterpage file just fine in Design View. But when trying to look at the the Masterpage Files, say the Admin Folder or the OtherFolder, in Design View - nothing shows except the Page Masterpage. It's really frustrating. Oddly, when running the application, no errors pop up and the sub-folder masterpages/pages show up just fine. They simply won't display in the editor.

    Has anyone run across this before? And if so, what was the solution?


    Thanks in advance.


    Matt B.

    View Complete Post

    More Related Resource Links

    Facing Issues to change the Masterpage using HttpModule.



        I am working on SharePoint2010 for to change the Masterpage dynamically using HttpModule interface,

    I have refereed this article http://vspug.com/dwise/2007/01/08/one-master-to-rule-them-all-two-actually

    As per that i have followed all the steps, but still i am facing issue in changing the masterpage & not getting any kind of error message or warring.

    Can anyone have any idea to find the issues & get resolved?



     Aamer Yafai.

    (Software Engineer-PSL)&

    IE 8 Issues with Chinese/Japanese Characters


    On my web application, I display information in different languages. Everything works fine in IE compatibility mode and FireFox but it shows boxes for chinese/japanese languages. I am pretty much having the same issue as described here



    Thanks for your help.

    Concurrency: Tools And Techniques to Identify Concurrency Issues


    Efficient parallel applications aren't born by merely running an old app on a parallel processor machine. Tuning needs to be done if you're to gain maximum benefit.

    Rahul V. Patil and Boby George

    MSDN Magazine June 2008

    CLR Inside Out: Investigating Memory Issues


    Memory issues can manifest in a wide variety of ways. This column shows you how to collect the data you need to determine what types of mem¬ory issues you are experiencing.

    Claudio Caldato and Maoni Stephens

    MSDN Magazine November 2006

    Stress Testing: Custom LoadGenerator Tool Identifies the Issues Your Application Faces Under Stress


    It's easy to postpone stress testing when developing an application, and it's easy to forgo it altogether. Having an easy-to-use framework at your fingertips to conduct these tests can make the task far less painful. This article walks you through an application that eases the task of generating load for a variety of layers within an application.

    Brian Otto

    MSDN Magazine April 2004

    Versioning Issues With Optional Arguments

    One nice new feature introduced in C# 4 is support for named and optional arguments . While these two features are often discussed together, they really are orthogonal concepts. Let's look at a quick example of these two concepts at work. Suppose we have a class with one method having the following signature. // v1 public static void Redirect( string url, string protocol = "http" ); This hypothetical library contains a single method that takes in two parameters, a required string url and an optional string protocol . The following shows the six possible ways this method can be called. HttpHelpers.Redirect( "http://haacked.com/" ); HttpHelpers.Redirect(url: "http://haacked.com/" ); HttpHelpers.Redirect( "http...(read more)

    Parser Error Message: Could not load type MasterPage File



    Server Error in '/' Application.

    Parser Error

    Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

    Parser Error Message: Could not load type 'wamsilverlight.Web.Wam'.

    Source Error:

    Line 1:  <%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Wam.master.cs" Inherits="wamsilverlight.Web.Wam" %>
    Line 2:  
    Line 3:  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    Source File: /Wam.Master    Line: 1

    Version Information: Microsoft .NET Framework Version:2.0.50727.4952; ASP.NET Version:2.0.50727.4927


    All of the following have been tried over and over again:

    1.) Delete all existing .dlls

    2.) Delete MasterPage File and recreate it.

    3.) Delete MasterPage perform a c

    Issues with Visual Studio 2010 editor


    hi all,

    I am having a weird problem with VS 2010. I am using the premium edition.

    It seems that none of the asp controls <asp:..> tag are recognized by the editor. I keep getting a green underline under each control name. To check this, I have created a brand new web site targeting .NET framework 4.0 and even in the auto-generated pages, none of the asp controls is recognized. I am also unable to see the properties of any control if I click inside the tag (at an attribute). All I get is the ID of the button and the tag <HTML ELEMENT>! Furthermore, when I drop an ASP control from the toolbox, the attribute "ID" is not generated. Only when I switch to the design view that I can get to see the properties of the control and the ID is set automatically. The message for the green underline says: Element 'Button' is not a known element. This can occur if there is a compilation error in the Web Site, or the web.config file is missing.

    Does anyone know what is going on?





    Session Variable issues


    Hello everyone,

    I ran into an issud to day with the follwoing code.  The strPanelOrder session variable is false, however, once it goes into the next if statement and sets the strTrimOrder to True, it changes the strPanelOrder session varialbe to true as well.  Why is this and how to I stop that from happening?

    If Session(strPanelOrder) Is "False" Then
                    If (strItemNumber.Length() = 10) And (strItemNumber.Substring(0, 2) = "FS" Or strItemNumber.Substring(0, 2) = "FC" Or strItemNumber.Substring(0, 2) = "DS" Or strItemNumber.Substring(0, 2) = "DC") Then
                        Session(strPanelOrder) = "True"
                    End If
    End If
    If Session(strTrimOrder) Is "False" Then
                   If (strItemNumber.Substring(4, 1) = "T") And (strItemNumber.Substring(0, 2) <> "AC") And (strItemNumber <> "Length") Then
                        Session(strTrimOrder) = "True"
                    End If
    End If


    Thanks in advance for taking a look at this.



    Session issues with IE8



    I am trying to invoke a window using the following commands:

    Response.Write("<script>" & vbCrLf)"

    Response.Write(window.open('" & url & "','','toolbar=0,status=1,resizable=1,scrollbars=1,menubar=1');" & vbCrLf)"


    The problem however is that on IE8 the session object is not carried over to this new window. I get "Nullpointerexception" when I try to retrieve the connection object from the session. It works on IE6 though.

    Any help would be greatly appreciated.


    Setting webpage/masterpage background...image?


    I want to have the background of my masterpage (the master page for all of my .aspx pages) have a sort of gradient.  I imagine the only way I can do that is with an image.  Or maybe even some other design, but I want to move away from the "solid color" background.

    Is the easiest way to do this just to make an image and set that as the background?  What image size should I make it, because some users could possibly have the normal aspect ratio, or maybe a widescreen?  What should I make it like so that it looks good on all computers?

    Thanks in advance. :) 

    Migrating aspnet tables to dev server - having issues



    We're trying to migrate a one of our apps to our dev server for testing and development, but we're having problems with the membership functionality. We can add users, but there seems to be a disconnect with roles. We can query the aspnet_users table and find the new user in there, but when we query the aspnet_usersinroles table, that user id is not present.

    We're also unable to run the Roles.GetUsersInRole("somerole") method. It returns 0 records. When I run Roles.ApplicationName, it returns the correct name, so .NET should be passing the correct app name.

    We're just a little baffled. If anyone could shed some light on what could be the issue, we would appreciate it.

    Thanks! :)

    Trying to get Roles to populate a checkboxlist based on tutorial and having issues.


    I have been using the following tutorial and had to convert the code to C# for my project, now i cant get the code to work, im getting red line under the word "in" in the UpdateRolesFromList,
    i tried to add a datasource on page load for the checkboxlist like so RoleList.DataSource = PopulateRoleList(User.Identity.Name.ToString());

    and gives me error saying cannot implictly convert type 'void' to 'object'


    What am i missing, that when i load the page or even do a search it never displays the checkbox list as it shows in the tutorial?

            protected void Page_Load(object sender, EventArgs e)
            public void PopulateRoleList(string userName)
                string[] roleNames = null;
                string roleName = null;
                roleNames = Roles.GetAllRoles();
                foreach (string roleName_loopVariable in roleNames)
                    roleName = r

    how can i use stylesheet file on pages that derives from masterpage


    Hello. i use masterpage on my project. i want to add stylesheet file on pages that derives from masterpage. I add default.aspx page like this:

    <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <link href="styles/salon.css" rel="s." type="text/css" />

    But i can't see design page like this. It gives error like this:
    Error 1 Cannot switch views: Validation (Internet Explorer 6): Element 'link' cannot be nested within element 'div'. 

    i use IE7. Also how can i use jquery pages that derives from masterpage. Thanks...


    Workflow timing issues?


    I am creating a new workflow using SPD on MOSS 2007, SP2, and having a problem with it.

    The workflow is fairly basic, where when a user creates a new infopath form it sends an email to another person, who enters some info, then selects where it get's routed to next.  There are 3 more similar processes before the form is marked as completed.  At each step the WF emails the person selected as next reciepient and updates a "flag" saying which step the process is in.

    The problem is that sometimes when I update a form, (all emails come to me since it's still in testing), the workflow stops with a message of "Failed on Start (retrying)".  After doing some digging I found this link:


    So I went in and added an action for every update I do to first check the document out, do the update, and then check the document back in.  Well the problem I get now is that the WF fails with a message about unable to check the document back in.  I tried troubleshooting it by putting in WF Stop and Log entry actions to try to figure out exactly where the problem was happening.

    I thought I had fixed it

    ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
    Sql Server  SharePoint  Silverlight  Others  All   

    Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend