473,383 Members | 1,859 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,383 software developers and data experts.

How edit page in design view when has a master page?

For my web pages that have an associated master page, when I try to work
with them in design mode, I get this "gray film" over it and I can edit only
the master.

How can I get to my page in design mode without having to remove the
association with the master page?

Thanks,
Ron
Mar 11 '07 #1
3 2413
Ronald S. Cook schrieb:
For my web pages that have an associated master page, when I try to work
with them in design mode, I get this "gray film" over it and I can edit only
the master.
Hi Ron,
are you sure you have a contentplaceholder-tag in your master page and
fill that in you aspx page?

The VS designer renders the whole page, i.e. master and content parts,
but "greys out" the master parts. The contents should not be greyed out
(unless something prevents the contentplaceholder-tag in the master page
from being rendered; for example, a contentplaceholder in the
loggedintemplate of a loginview on the master page as in:

<asp:LoginView ID="LoginView2" runat="server">
<AnonymousTemplate>
You are not logged in!
</AnonymousTemplate>
<LoggedInTemplate>
<asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
</asp:ContentPlaceHolder>
</LoggedInTemplate>
</asp:LoginView>

Here, the designer always displays the anonymoustemplate and therefore
no contentplaceholder at all. If someone knows a way around this, let me
know..

Hope that helps, otherwise post some code.

Cheers,
Roland
Mar 12 '07 #2
Thanks Roland. It looks like it did it because I had my contentplaceholder
in my mater page enclosed within table elements. I removed them (and
shifted that responsibility to the indivisual pages) and I can now see those
pages in designer.

I appreciate the response.

Ron
"Roland Dick" <br*****@web.dewrote in message
news:O1**************@TK2MSFTNGP06.phx.gbl...
Ronald S. Cook schrieb:
>For my web pages that have an associated master page, when I try to work
with them in design mode, I get this "gray film" over it and I can edit
only the master.

Hi Ron,
are you sure you have a contentplaceholder-tag in your master page and
fill that in you aspx page?

The VS designer renders the whole page, i.e. master and content parts, but
"greys out" the master parts. The contents should not be greyed out
(unless something prevents the contentplaceholder-tag in the master page
from being rendered; for example, a contentplaceholder in the
loggedintemplate of a loginview on the master page as in:

<asp:LoginView ID="LoginView2" runat="server">
<AnonymousTemplate>
You are not logged in!
</AnonymousTemplate>
<LoggedInTemplate>
<asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
</asp:ContentPlaceHolder>
</LoggedInTemplate>
</asp:LoginView>

Here, the designer always displays the anonymoustemplate and therefore no
contentplaceholder at all. If someone knows a way around this, let me
know..

Hope that helps, otherwise post some code.

Cheers,
Roland

Mar 12 '07 #3
This is what I do between my development on my machine and NOT the
production server.

On my dev machine, I'll take out the following tags and paste them to
notepad:

<asp:LoginView ID="LoginView1" runat="server">
<LoggedInTemplate>
<<< leave this content here >>>
</LoggedInTemplate>
<AnonymousTemplate>
<<< this content here should be moved as well >>>
</AnonymousTemplate>
</asp:LoginView>

This way, you can locally use the GUI and Smart Tags to edit your pages
while using Master Pages. When you are ready to push the site back to the
production server OR need to test the LoginView functionality, just put back
your code into the Master Page.

Cheers,

James
Pier Cove Software
www.piercove.com
Aug 13 '07 #4

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

Similar topics

0
by: David | last post by:
In ASP.NET 2.0, is it possible to use a control that's on a Master Page as a select parameter in a content page's datasource control? For example, the Master Page has a drop down list of...
0
by: Peter Aitken | last post by:
I am using ASP.Net 2.0 to design a web site with several pages based on a master page. In design view the master page will not display any of the images I placed on it, but a page that is based on...
2
by: P. Yanzick | last post by:
Hello, I am creating an edit template for a FormView control, changing one of the textboxes to a dropdown box. The dropdown will be populated from a simple table with the primary key, and a...
2
by: SR | last post by:
I have started a web site using ASP.NET 2.0. I would like to centralize all of my classes in a StyleSheet but I cannot figure out how to link the StyleSheet to a Content Page since there is no...
0
by: Sam | last post by:
Folks, Attached I am sending 2 URL's from MSFT ASP.net Quick Start Tutorial Web Site. 1) Run it URL: http://www.asp.net/QuickStart/aspnet/samples/data/GridViewMasterDetailsInsertPage_vb.aspx 2)...
1
by: Sam | last post by:
Attached I am sending 2 URL's from MSFT ASP.net Quick Start Tutorial Web Site. 1) Run it URL: http://www.asp.net/QuickStart/aspnet/samples/data/GridViewMasterDetai... 2) View Source URL:...
0
by: Sam | last post by:
Sorry to post the same post multiple times but the URL Addresses were not Correct in Earlier Posts. Here are the correct URL's: 1) Run It URL is here: ...
6
by: Matt | last post by:
On my master page i have build 5 link buttons. First Page I receive ID and set the ID in master page Property so i can do the work with it. How ever when i clicked to second button i lose this ID....
2
by: =?Utf-8?B?QnJhdmVoZWFydA==?= | last post by:
Open a new web form and switch to design view no problems. When the new web form uses my master page and I switch to design view, VS2008 crashes with 'Not Responding'. I use virtual machines and...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.