i have created a masterpage with two panels on the top for tittle and other stuff.Then i started created a webform using masterpage .But i cant see those panels in my new page usually it automatically does show the cannot.can any one please suggest me whats the problem...

Dani AI

Generated

Short summary: created a master page with two top panels that do not appear in content pages. asked for the master markup and pointed toward ensuring the page references the master — good starting points. The issue is usually one of layout, visibility, or where/when the master is applied at runtime. The following practical checks will quickly narrow the cause.

  • View the page in a browser and inspect the HTML (View Source / F12). If the master header markup is absent from the rendered HTML, the content page is not using that master at runtime. If the markup is present but invisible, it is a styling/visibility problem.
  • Confirm the panels are placed in the body (not inside the <head>) and not wrapped in a server control that only renders for certain conditions (LoginView, authentication checks, etc.).
  • Use the DOM inspector to check computed styles and whether an ancestor has display:none, zero height, or z-index hiding the panels. Global CSS from the content page can override master styles.
  • Search code-behind for any assignments that set those panels to invisible (Panel.Visible = false) or code that changes the master at Page_PreInit. Also check for duplicate/nested server-side forms — content pages should not add a second form runat="server" when the master already has one.
  • Remember Visual Studio design view can differ from runtime. Always test in the browser.

If these checks do not find the problem, post the master page markup and the content page markup plus any code-behind lines that manipulate visibility or select the master. The official Microsoft master-page overview is a useful reference: ASP.NET Master Pages overview.

Recommended Answers

All 2 Replies

Please post the markup of .master page. Do wrap your programming code blocks within [code] ... [/code] tags.

<%@ Page Title="" Language="C#" MasterPageFile="~/master.Master" CodeBehind="addressBook.aspx.cs" %>

in user aspx code side write on Page ==>MasterPageFile="~/master.Master"

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.