473,386 Members | 1,886 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.

VS2005 Designer does NOT display asp:panels!! Why?

The following code works fine when executed, however will not display
correctly within the VS2005 Designer, why is this? is this a bug? it
works fine in VS2003, If I move the ASP:Panel to also contain the <TABLE
then everything displays correctly, but my orginal VS2003 code makes use of
panels to include or exclude html based upon there visible property. So Not
having support for this in VS2005 is a real pain.
**** DOES NOT WORK ****
<TABLE id="Table1" cellSpacing="0" cellPadding="1" width=706px
bgColor="#e4e5ef" border="0">
<asp:Panel ID="Panel1" runat="server">
<TR>
<TD>
<h1>HEADING1</h1>
</TD>
</TR>
</asp:Panel>
</TABLE>
**** DOES DOES WORK ****
<asp:Panel ID="Panel1" runat="server">
<TABLE id="Table1" cellSpacing="0" cellPadding="1" width=706px
bgColor="#e4e5ef" border="0">
<TR>
<TD>
<h1>HEADING1</h1>
</TD>
</TR>
</TABLE>
</asp:Panel>
Dec 6 '05 #1
8 1266
Jed
For what it's worth, you can give your TR an id and runat server. Then you
can set it's visible property as you would the panel. Then you can just get
rid of the panel altogether.

<TABLE id="Table1" cellSpacing="0" cellPadding="1" width=706px
bgColor="#e4e5ef" border="0">
<TR ID="HtmlTableRow1" runat="server">
<TD>
<h1>HEADING1</h1>
</TD>
</TR>
</TABLE>
"Rob Dob" wrote:
The following code works fine when executed, however will not display
correctly within the VS2005 Designer, why is this? is this a bug? it
works fine in VS2003, If I move the ASP:Panel to also contain the <TABLE
then everything displays correctly, but my orginal VS2003 code makes use of
panels to include or exclude html based upon there visible property. So Not
having support for this in VS2005 is a real pain.
**** DOES NOT WORK ****
<TABLE id="Table1" cellSpacing="0" cellPadding="1" width=706px
bgColor="#e4e5ef" border="0">
<asp:Panel ID="Panel1" runat="server">
<TR>
<TD>
<h1>HEADING1</h1>
</TD>
</TR>
</asp:Panel>
</TABLE>
**** DOES DOES WORK ****
<asp:Panel ID="Panel1" runat="server">
<TABLE id="Table1" cellSpacing="0" cellPadding="1" width=706px
bgColor="#e4e5ef" border="0">
<TR>
<TD>
<h1>HEADING1</h1>
</TD>
</TR>
</TABLE>
</asp:Panel>

Dec 6 '05 #2
> For what it's worth, you can give your TR an id and runat server. Then
you
can set it's visible property as you would the panel. Then you can just
get
rid of the panel altogether.

<TABLE id="Table1" cellSpacing="0" cellPadding="1" width=706px
bgColor="#e4e5ef" border="0">
<TR ID="HtmlTableRow1" runat="server">
<TD>
<h1>HEADING1</h1>
</TD>
</TR>
</TABLE>

thank you ,, I understand that, but am more interested in being able to use
panels, because as this is the way my current program has been setup using
vs2003.

thanks.
Dec 6 '05 #3
a panel renders as a <div> and a div is only legal between <td> or <th> tags
in html markup.

-- bruce (sqlwork.com)

"Rob Dob" <ro************@yahoo.com> wrote in message
news:ui****************@TK2MSFTNGP14.phx.gbl...
The following code works fine when executed, however will not display
correctly within the VS2005 Designer, why is this? is this a bug? it
works fine in VS2003, If I move the ASP:Panel to also contain the <TABLE
then everything displays correctly, but my orginal VS2003 code makes use
of panels to include or exclude html based upon there visible property.
So Not having support for this in VS2005 is a real pain.
**** DOES NOT WORK ****
<TABLE id="Table1" cellSpacing="0" cellPadding="1" width=706px
bgColor="#e4e5ef" border="0">
<asp:Panel ID="Panel1" runat="server">
<TR>
<TD>
<h1>HEADING1</h1>
</TD>
</TR>
</asp:Panel>
</TABLE>
**** DOES DOES WORK ****
<asp:Panel ID="Panel1" runat="server">
<TABLE id="Table1" cellSpacing="0" cellPadding="1" width=706px
bgColor="#e4e5ef" border="0">
<TR>
<TD>
<h1>HEADING1</h1>
</TD>
</TR>
</TABLE>
</asp:Panel>

Dec 6 '05 #4
a panel renders as a <div> and a div is only legal between <td> or <th>
tags
in html markup.

thank you, is this only since vs2005, as it displays fine within vs2003
design mode
Dec 6 '05 #5
It is? I've been using and seen div's all over the place that were not in
<td> or <th> tags. They've all rendered and worked just fine.

div is just a container element, you should be able to use it wherever it
would make sense to have a container.

Lastly, the MSDN documentation on div does not mention any such
restrictions. I would be interested to know where it says that divs are only
valid within td or th tags.

"Bruce Barker" <br******************@safeco.com> wrote in message
news:uO****************@TK2MSFTNGP09.phx.gbl...
a panel renders as a <div> and a div is only legal between <td> or <th>
tags in html markup.

-- bruce (sqlwork.com)

"Rob Dob" <ro************@yahoo.com> wrote in message
news:ui****************@TK2MSFTNGP14.phx.gbl...
The following code works fine when executed, however will not display
correctly within the VS2005 Designer, why is this? is this a bug? it
works fine in VS2003, If I move the ASP:Panel to also contain the <TABLE
then everything displays correctly, but my orginal VS2003 code makes use
of panels to include or exclude html based upon there visible property.
So Not having support for this in VS2005 is a real pain.
**** DOES NOT WORK ****
<TABLE id="Table1" cellSpacing="0" cellPadding="1" width=706px
bgColor="#e4e5ef" border="0">
<asp:Panel ID="Panel1" runat="server">
<TR>
<TD>
<h1>HEADING1</h1>
</TD>
</TR>
</asp:Panel>
</TABLE>
**** DOES DOES WORK ****
<asp:Panel ID="Panel1" runat="server">
<TABLE id="Table1" cellSpacing="0" cellPadding="1" width=706px
bgColor="#e4e5ef" border="0">
<TR>
<TD>
<h1>HEADING1</h1>
</TD>
</TR>
</TABLE>
</asp:Panel>


Dec 6 '05 #6
I think what Bruce meant was that within a <table> element, a <div> can only
be used within a <td> or <td> element. If you're not within a table, you
can use <div>'s pretty much anywhere. This is an HTML limitation, not an MS
one.
Dec 6 '05 #7
ok, i see, that makes sense now.

"cpnet" <cp***@nospam.nospam> wrote in message
news:e9****************@TK2MSFTNGP11.phx.gbl...
I think what Bruce meant was that within a <table> element, a <div> can
only
be used within a <td> or <td> element. If you're not within a table, you
can use <div>'s pretty much anywhere. This is an HTML limitation, not an
MS
one.

Dec 6 '05 #8
This is the difference between HTML and XHTML. You could get away with a
lot in HTML (VS 2003), but you have to have well-formed XHTML (VS 2005)
which means that you cannot have a <div> between <table> and <tr>.
--
Christopher A. Reed
"The oxen are slow, but the earth is patient."

"Rob Dob" <ro************@yahoo.com> wrote in message
news:OH****************@TK2MSFTNGP10.phx.gbl...
a panel renders as a <div> and a div is only legal between <td> or <th>
tags
in html markup.

thank you, is this only since vs2005, as it displays fine within vs2003
design mode

Dec 7 '05 #9

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

Similar topics

1
by: S Guiboud | last post by:
I want to subclass the System.Web.UI.UserControl to make a common control for my site. Then, when I create a new UserControl from the Visual Studio I changed the base class...
7
by: Dino Buljubasic | last post by:
I am having a problem when trying to view a form in desing view. If a form has any error or warning, the design view will not open the form. Anybody knows how to fix this error? Thank you...
2
by: amyl | last post by:
I have added some user scope level variables in my Windows Forms Application. However, I can't seem to access them. >From the doc's I found that you should be able to access them via...
0
by: walter | last post by:
Hi there, I created a few custom controls, but after I move the tags into theme folder, when I move to designer view, it give me either black/white or nothing at all. I'm wondering if there is a...
1
by: mehdi | last post by:
Hi folks, Consider a custom class that's being derived from the TextBox and has got the following propert: public override string Text { get { return "get"; } set {base.Text = "set";} }
0
by: Ashot Geodakov | last post by:
Hi, I am trying to do inherit my component from, let's say, a ListBox, and make it generic: namespace WindowsApplication1 { public class GenericListBox<T: ListBox { ...
0
by: =?Utf-8?B?SGVsZ2U=?= | last post by:
Hi! I have run into a problem with visual inheritance using the VS2005 designer for Windows Forms. My goal is to put business logic and common rules for our controls into its own layer (base...
1
by: sklett | last post by:
I'm curious if anyone has encountered this. I'm developing an outlook add-in that needs to display a PDF. I've included the Adobe Reader ActiveX cotnrol and when I re-load the form I get the...
1
by: andrew smith | last post by:
Problem is with the designer... // opens in designer // (has reason not to (undefined)) public class BaseForm<T>: Form { } // doesn't open in design (it should) public class...
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: 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?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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.