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

ContentPlaceHolder under a DIV tag - Visual Studio Design view?

Hello.

I have a master page with ContentPlaceHolder under a html Div tag.
That DIV tag has CSS that positions it.

While in Visual Studio design view, that div tag and contentplace
holder does not appear where it actually shows up when you run it the
code.

Is DIV the best way to go? How else can I do this? ContentPlaceHolder
does not appear to all for a style setting.

Thanks for any help or information.

Jul 12 '07 #1
3 14934
On Jul 12, 10:21 pm, jobs <j...@webdos.comwrote:
Hello.

I have a master page with ContentPlaceHolder under a html Div tag.
That DIV tag has CSS that positions it.

While in Visual Studio design view, that div tag and contentplace
holder does not appear where it actually shows up when you run it the
code.

Is DIV the best way to go? How else can I do this? ContentPlaceHolder
does not appear to all for a style setting.

Thanks for any help or information.
hi,
don't worry vs not suport design time of masterpage
check it
http://aspnet.4guysfromrolla.com/articles/010505-1.aspx

some copy paste from this article
Implement the needed HTML on each and every page on our site
Pros: Visual Studio .NET will provide a rich, WYSIWYG design-time
experience for each page.
Cons: If we want to change the look and feel of the site, we need to
edit every single page!
Implement the layout using a "top" and "bottom" User Control, which
will be added to each page
Pros: Altering the site's layout only involves changing at most two
files - the top and bottom User Controls.
Cons: Have to manually add the top and bottom User Controls to all
pages; no WYSIWYG support.
Utilize MasterPages support in ASP.NET 1.x
Pros: Can easily change the site layout by editing just the
MasterPage; allows for a more fluid layout than kludging together top
and bottom User Controls.
Cons: No WYSIWYG design-time support in VS.NET.

nahid
http://nahidulkibria.blogspot.com/
http://www.kaz.com.bd

Jul 12 '07 #2
Thanks, but is DIV the best way to position my ContentPlaceHolder in
my master page.

It does not appear to be positioning my child content pages in same
location:

<div id= "DivContent" class="DivContent" >
<asp:ContentPlaceHolder ID="Content1" runat="server" >
</asp:ContentPlaceHolder>
</div>

... css file

..DivContent
{
position:absolute;
left:105px;
width:700px;
height:600px;
top:220px;
background-color: rgb(246,246,246);
overflow: auto;

}
... child page: (the master page shows up, but the changepassword
control appears to be in the upper left. outside the
contentplaceholder.
%@ Page Language="VB" AutoEventWireup="false" MasterPageFile="~/Main/
MasterPage.master"
CodeFile="ChangePassword.aspx.vb" Inherits="Service_test" %>
<<asp:Content ID="Content1" ContentPlaceHolderID="Content1"
runat="Server">
<asp:ChangePassword ID="ChangePassword1" runat="server">
</asp:ChangePassword>
</asp:Content>
Jul 12 '07 #3
In article <11**********************@22g2000hsm.googlegroups. com>, jobs
<jo**@webdos.comwrites
>Thanks, but is DIV the best way to position my ContentPlaceHolder in my
master page.
Yes, positioning should always be done with CSS, and divs are the
logical way to do that, unless the content in question has a natural
block element around it (such as a <ulfor example, you can position
this directly and so don't need to wrap it in a div).
>It does not appear to be positioning my child content pages in same
location:
This sounds like a CSS problem, not one to do with ASP.NET or master
pages. I suspect you will be making work for yourself by trying to
tackle this problem from within VS.

Try saving the generated source of the page (File->Save in your
browser), and tinker around with the (X)HTML and CSS until you get it
working. Then copy the changes back into the master page and CSS file.

FWIW, I always design, test and debug (X)HTML and CSS in plain text
files from a text editor, I never do this from VS. I work with sample
content, or content generated from a real ASP.NET page, but saved from
the browser. That way you are concentrating on the real issue at hand.

HTH

--
Alan Silver
(anything added below this line is nothing to do with me)
Jul 17 '07 #4

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

Similar topics

2
by: Dica | last post by:
this is related to an earlier question i had. i'm trying to figure out visual studio 2003 and c#. i started a simple app to try to learn the basics and used many of the wizards to set up things...
3
by: Billy Cormic | last post by:
Hello, I am using Visual Studio 2005 Beta for the first time and am having trouble using contentplaceholders. Actually, I am having trouble declaring them. Here is a snap shot of my master page:...
4
by: Steve Richter | last post by:
using visual studio 2003 for my asp.net projects ... Once I undock the property window to get a better look at things, I cant dock it back where it came from. Can someone tell me how to redock...
4
by: Nathan Sokalski | last post by:
When editing an ASP Table, Visual Studio does not allow me to edit it in Design View. This makes it harder to add elements, because I must add every element either by using Design View to create...
4
by: anton.hopen | last post by:
ASP.NET 2.0 master pages are great. However, I want to edit an ASPX page in FrontPage for aesthetic styling reasons. The ASPX page is linked to a master page so it naturally has a...
11
by: Rolf Welskes | last post by:
Hello, the problem seems to be complex and is in all developments of web-controls which uses own TypeConverter. For this I have here a simple demo-program of the problem: The Control-code: A...
3
by: =?Utf-8?B?TWlrZQ==?= | last post by:
Visual Studio 2003 constantly changes HTML on my webform - For the worse! I've experienced this before, but now its really causing problems because it wrecks the page. How do I prevent VS from...
2
by: =?Utf-8?B?Um9iZXJ0IFNtaXRo?= | last post by:
Hi, I have just installed visual studio 2005 professional edition (evaluation version). However it will not allow me to view webforms in a website project in design view. I can just see the HTML...
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: 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: 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:
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...
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.