473,387 Members | 1,440 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Master page as default

I have added a "Master Page" and noticed it is having the extension
".master". I want to set this master page as default and want to open
it as I open my web-site. I tried to set the startup properties, but
it gives error for the master page since it does not have an
extension .aspx. How to make this page as default?

Oct 19 '07 #1
3 1727
"Rohit" <rp*********@gmail.comwrote in message
news:11**********************@v23g2000prn.googlegr oups.com...
I have added a "Master Page" and noticed it is having the extension
".master". I want to set this master page as default and want to open
it as I open my web-site. I tried to set the startup properties, but
it gives error for the master page since it does not have an
extension .aspx. How to make this page as default?
A MasterPage is a template which content pages use to provide a common look
and feel to your site - it is not an aspx page itself.

In fact, a MasterPage is nothing more than a UserControl. Simply specify the
content page which you want to be your site's default page...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Oct 19 '07 #2
You create a web form Default.aspx using the master page and just don't
add any extra content.
>
I have added a "Master Page" and noticed it is having the extension
".master". I want to set this master page as default and want to open
it as I open my web-site. I tried to set the startup properties, but
it gives error for the master page since it does not have an
extension .aspx. How to make this page as default?
Oct 19 '07 #3
S_K
On Oct 19, 12:45 pm, "Ian Semmel" <any...@rocketcomp.com.auwrote:
You create a web form Default.aspx using the master page and just don't
add any extra content.


I have added a "Master Page" and noticed it is having the extension
".master". I want to set this master page as default and want to open
it as I open my web-site. I tried to set the startup properties, but
it gives error for the master page since it does not have an
extension .aspx. How to make this page as default?- Hide quoted text -

- Show quoted text -
In your Default.aspx page you have the <%@ Page ... %tag insert
MasterPageFile="~/MyMasterPage.master". Then just start the
Default.aspx page as you usually do.
Oct 19 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Michael Herman \(Parallelspace\) | last post by:
1. What are some compelling solutions for using Master/Content pages with Web Pages? 2. If a content area has a web part zone with web parts, what is the user experience like when "editting" the...
5
by: Howard | last post by:
i have a default.master and default.aspx in default.aspx i would like to access a variable in default.master pageTitle public partial class _Default : System.Web.UI.Page { protected void...
2
by: igotyourdotnet | last post by:
Is there a way to prevent the master page to reload every time the user makes a selection off of the menu? I want to give it a "Frame" like appearance were only the content section changes with a...
2
by: Argirop | last post by:
I have a page Default.aspx. Its first line is the following: <%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="default.aspx.cs"...
2
by: Darren.Ratcliffe | last post by:
Hi If I have functionX in my master page, how would I call the function from my .aspx page that has the master page assigned to it? Many thanks Darren
1
by: shapper | last post by:
Hello, I am creating a web site with Nested Master pages. I also need to have a class where the culture is set. When the culture is changed by the user the page refreshes and the change takes...
4
by: lichaoir | last post by:
I have two questions about the use of Master Page: 1. How to access properties and controls in the master page from content page? (I know I can use the "FindControl()" method of the "Master"...
5
by: xlar54 | last post by:
I have a very simple 2.0 website (framework), that uses a master page...not. I added the default.aspx page as a webcontent form, with the master page as it's master page, but the master page is...
3
by: =?Utf-8?B?U3RldmUgTGFGb3JnZQ==?= | last post by:
I have an intranet site and want to create a simple master page to be shared across all applications that are built for that site. I build my master page in c:\inetpub\wwwroot\Masters as...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.