1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Create physical page using the Sitefinity master page

Create physical page using the Sitefinity master page

2 posts, 0 answered
  1. reza meshksar
    reza meshksar avatar
    2 posts
    Registered:
    19 Dec 2005
    15 Apr 2009
    Link to this post
    I am wondering if I can achieve the following goal in Sitefinity:

    - I want to add a physical aspx page in the Sitefinity web site and use one of the master pages.
    - In Sitefinity the master page (Template) can be modified runtime , so this modification is saved in the database not in the physical master page file.

    Now my physical aspx page which uses the same master page does not have the latest changes of the master page which has been applied runtime.

    Is there any solution for this issue?

  2. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    17 Apr 2009
    Link to this post
    Hi Reza,

    Let's say you have a master pages named default.master in the App_Master directory. You can create an .aspx page and make it use your master page:
    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="ext.aspx.cs" Inherits="ext"  
    MasterPageFile="~/App_Master/Default.master" %> 
     
    <asp:content ID="c1" runat="server" ContentPlaceHolderID="Content"
    <sfWeb:Breadcrumb ID="br1" runat="server" /> 
        this is my test aspx page
    </asp:content> 
     

    Unfortunately there is no way to use the master page version stored in the database. We will think for these kind of scenarios in the future.

    Sincerely yours,
    Georgi
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
2 posts, 0 answered