473,396 Members | 2,013 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,396 software developers and data experts.

Switching to Design Mode in VS2005

I have converted a vs 2003 solution to 2005 and when I try to switch to
design mode for a user control I get:

Cannot switch views: Validation (Internet Explorer 6): Element 'Style'
cannot be nested within element 'div'

Here is the html:
<div style="z-index: 101; left: 1px; width: 541px; position: absolute; top:
1px;
height: 290px">
<xwavegrid:smartgrid id="SmartGrid1" runat="server" style="z-index: 100;
left: 0px;
position: absolute; top: 0px">
<FooterStyle Height="20px"></FooterStyle>
<Columns>
<xwavegrid:SmartGridColumn DataField="asdf" AllowClientUpdates="False"
Key="sadf" ReadOnly="True" ColumnType="Text" Render="True"
IncludeInTotals="False" MaxLength="50" Value="" PrimaryKey="False" Format=""
Title="Column 0" ClipContents="False" SortExpression="" Visible="True"
IsHyperlink="False" PersistClientUpdatesOnDataBind="False">
<Style Width="100px"></Style>
</xwavegrid:SmartGridColumn>
</Columns>

<CaptionStyle Width="100%" Height="20px"></CaptionStyle>

<HeaderStyle Height="20px"></HeaderStyle>

<PagerStyle Width="100%"></PagerStyle>
</xwavegrid:smartgrid>
</div>

As you can see this is a custom webcontrol within a div. The custom control
has nested controls which have styles. This doesn't seem to be allowed, any
help appreciated

May 11 '06 #1
7 3356
Thanks for your response

This is the entire ascx file content.

<%@ Control Language="C#" AutoEventWireup="true"
CodeFile="WebUserControl.ascx.cs"
Inherits="Test_WebUserControl" %>
<%@ Register Assembly="ApplicationFramework.WebControls"
Namespace="ApplicationFramework.WebControls.Grid"
TagPrefix="xwavegrid" %>
<div style="z-index: 101; left: 1px; width: 541px; position: absolute; top:
1px;
height: 290px">
<xwavegrid:smartgrid id=smartgrid1 runat="server" style="z-index: 102;
left: 0px; position: absolute; top: 0px">
<FooterStyle Height="20px"></FooterStyle>
<Columns>
<xwavegrid:SmartGridColumn DataField="sdf" AllowClientUpdates="False"
Key="df" ReadOnly="True" ColumnType="Text" Render="True"
IncludeInTotals="False" MaxLength="50" Value="" PrimaryKey="False" Format=""
Title="Column 0" ClipContents="False" SortExpression="" Visible="True"
IsHyperlink="False" PersistClientUpdatesOnDataBind="False">
<Style Width="100px"></Style>
</xwavegrid:SmartGridColumn>
</Columns>
</xwavegrid:smartgrid>
</div>

I have not added it to page, but I should still be able to switch to design
view.

"Galin iliev" wrote:
No. this is not the problem

see if you have any other style tag

it must be in head section

for instance
<head>

<title>asdasd</title>

<style></style>

</head>
--
Galin Iliev [MCSD, MCSD.NET]
Senior Software Developer
www.wordassist.com

"Niall" <Ni***@discussions.microsoft.com> wrote in message
news:71**********************************@microsof t.com...
I have converted a vs 2003 solution to 2005 and when I try to switch to
design mode for a user control I get:

Cannot switch views: Validation (Internet Explorer 6): Element 'Style'
cannot be nested within element 'div'

Here is the html:
<div style="z-index: 101; left: 1px; width: 541px; position: absolute;
top:
1px;
height: 290px">
<xwavegrid:smartgrid id="SmartGrid1" runat="server" style="z-index:
100;
left: 0px;
position: absolute; top: 0px">
<FooterStyle Height="20px"></FooterStyle>
<Columns>
<xwavegrid:SmartGridColumn DataField="asdf" AllowClientUpdates="False"
Key="sadf" ReadOnly="True" ColumnType="Text" Render="True"
IncludeInTotals="False" MaxLength="50" Value="" PrimaryKey="False"
Format=""
Title="Column 0" ClipContents="False" SortExpression="" Visible="True"
IsHyperlink="False" PersistClientUpdatesOnDataBind="False">
<Style Width="100px"></Style>
</xwavegrid:SmartGridColumn>
</Columns>

<CaptionStyle Width="100%" Height="20px"></CaptionStyle>

<HeaderStyle Height="20px"></HeaderStyle>

<PagerStyle Width="100%"></PagerStyle>
</xwavegrid:smartgrid>
</div>

As you can see this is a custom webcontrol within a div. The custom
control
has nested controls which have styles. This doesn't seem to be allowed,
any
help appreciated


May 11 '06 #2
No. this is not the problem

see if you have any other style tag

it must be in head section

for instance
<head>

<title>asdasd</title>

<style></style>

</head>
--
Galin Iliev [MCSD, MCSD.NET]
Senior Software Developer
www.wordassist.com

"Niall" <Ni***@discussions.microsoft.com> wrote in message
news:71**********************************@microsof t.com...
I have converted a vs 2003 solution to 2005 and when I try to switch to
design mode for a user control I get:

Cannot switch views: Validation (Internet Explorer 6): Element 'Style'
cannot be nested within element 'div'

Here is the html:
<div style="z-index: 101; left: 1px; width: 541px; position: absolute;
top:
1px;
height: 290px">
<xwavegrid:smartgrid id="SmartGrid1" runat="server" style="z-index:
100;
left: 0px;
position: absolute; top: 0px">
<FooterStyle Height="20px"></FooterStyle>
<Columns>
<xwavegrid:SmartGridColumn DataField="asdf" AllowClientUpdates="False"
Key="sadf" ReadOnly="True" ColumnType="Text" Render="True"
IncludeInTotals="False" MaxLength="50" Value="" PrimaryKey="False"
Format=""
Title="Column 0" ClipContents="False" SortExpression="" Visible="True"
IsHyperlink="False" PersistClientUpdatesOnDataBind="False">
<Style Width="100px"></Style>
</xwavegrid:SmartGridColumn>
</Columns>

<CaptionStyle Width="100%" Height="20px"></CaptionStyle>

<HeaderStyle Height="20px"></HeaderStyle>

<PagerStyle Width="100%"></PagerStyle>
</xwavegrid:smartgrid>
</div>

As you can see this is a custom webcontrol within a div. The custom
control
has nested controls which have styles. This doesn't seem to be allowed,
any
help appreciated

May 11 '06 #3
seems like the referenced assembly cannot be found
check reference to
ApplicationFramework.WebControls
--
Galin Iliev [MCSD, MCSD.NET]
Senior Software Developer
www.wordassist.com

"Niall" <Ni***@discussions.microsoft.com> wrote in message
news:1F**********************************@microsof t.com...
Thanks for your response

This is the entire ascx file content.

<%@ Control Language="C#" AutoEventWireup="true"
CodeFile="WebUserControl.ascx.cs"
Inherits="Test_WebUserControl" %>
<%@ Register Assembly="ApplicationFramework.WebControls"
Namespace="ApplicationFramework.WebControls.Grid"
TagPrefix="xwavegrid" %>
<div style="z-index: 101; left: 1px; width: 541px; position: absolute;
top:
1px;
height: 290px">
<xwavegrid:smartgrid id=smartgrid1 runat="server" style="z-index: 102;
left: 0px; position: absolute; top: 0px">
<FooterStyle Height="20px"></FooterStyle>
<Columns>
<xwavegrid:SmartGridColumn DataField="sdf" AllowClientUpdates="False"
Key="df" ReadOnly="True" ColumnType="Text" Render="True"
IncludeInTotals="False" MaxLength="50" Value="" PrimaryKey="False"
Format=""
Title="Column 0" ClipContents="False" SortExpression="" Visible="True"
IsHyperlink="False" PersistClientUpdatesOnDataBind="False">
<Style Width="100px"></Style>
</xwavegrid:SmartGridColumn>
</Columns>
</xwavegrid:smartgrid>
</div>

I have not added it to page, but I should still be able to switch to
design
view.

"Galin iliev" wrote:
No. this is not the problem

see if you have any other style tag

it must be in head section

for instance
<head>

<title>asdasd</title>

<style></style>

</head>
--
Galin Iliev [MCSD, MCSD.NET]
Senior Software Developer
www.wordassist.com

"Niall" <Ni***@discussions.microsoft.com> wrote in message
news:71**********************************@microsof t.com...
>I have converted a vs 2003 solution to 2005 and when I try to switch to
> design mode for a user control I get:
>
> Cannot switch views: Validation (Internet Explorer 6): Element 'Style'
> cannot be nested within element 'div'
>
> Here is the html:
>
>
> <div style="z-index: 101; left: 1px; width: 541px; position: absolute;
> top:
> 1px;
> height: 290px">
> <xwavegrid:smartgrid id="SmartGrid1" runat="server" style="z-index:
> 100;
> left: 0px;
> position: absolute; top: 0px">
> <FooterStyle Height="20px"></FooterStyle>
> <Columns>
> <xwavegrid:SmartGridColumn DataField="asdf" AllowClientUpdates="False"
> Key="sadf" ReadOnly="True" ColumnType="Text" Render="True"
> IncludeInTotals="False" MaxLength="50" Value="" PrimaryKey="False"
> Format=""
> Title="Column 0" ClipContents="False" SortExpression="" Visible="True"
> IsHyperlink="False" PersistClientUpdatesOnDataBind="False">
> <Style Width="100px"></Style>
> </xwavegrid:SmartGridColumn>
> </Columns>
>
> <CaptionStyle Width="100%" Height="20px"></CaptionStyle>
>
> <HeaderStyle Height="20px"></HeaderStyle>
>
> <PagerStyle Width="100%"></PagerStyle>
> </xwavegrid:smartgrid>
> </div>
>
> As you can see this is a custom webcontrol within a div. The custom
> control
> has nested controls which have styles. This doesn't seem to be allowed,
> any
> help appreciated
>


May 11 '06 #4
No, all references are fine, the projects build and run fine, it is just
switching to design view?

"Galin iliev" wrote:
seems like the referenced assembly cannot be found
check reference to
ApplicationFramework.WebControls
--
Galin Iliev [MCSD, MCSD.NET]
Senior Software Developer
www.wordassist.com

"Niall" <Ni***@discussions.microsoft.com> wrote in message
news:1F**********************************@microsof t.com...
Thanks for your response

This is the entire ascx file content.

<%@ Control Language="C#" AutoEventWireup="true"
CodeFile="WebUserControl.ascx.cs"
Inherits="Test_WebUserControl" %>
<%@ Register Assembly="ApplicationFramework.WebControls"
Namespace="ApplicationFramework.WebControls.Grid"
TagPrefix="xwavegrid" %>
<div style="z-index: 101; left: 1px; width: 541px; position: absolute;
top:
1px;
height: 290px">
<xwavegrid:smartgrid id=smartgrid1 runat="server" style="z-index: 102;
left: 0px; position: absolute; top: 0px">
<FooterStyle Height="20px"></FooterStyle>
<Columns>
<xwavegrid:SmartGridColumn DataField="sdf" AllowClientUpdates="False"
Key="df" ReadOnly="True" ColumnType="Text" Render="True"
IncludeInTotals="False" MaxLength="50" Value="" PrimaryKey="False"
Format=""
Title="Column 0" ClipContents="False" SortExpression="" Visible="True"
IsHyperlink="False" PersistClientUpdatesOnDataBind="False">
<Style Width="100px"></Style>
</xwavegrid:SmartGridColumn>
</Columns>
</xwavegrid:smartgrid>
</div>

I have not added it to page, but I should still be able to switch to
design
view.

"Galin iliev" wrote:
No. this is not the problem

see if you have any other style tag

it must be in head section

for instance
<head>

<title>asdasd</title>

<style></style>

</head>
--
Galin Iliev [MCSD, MCSD.NET]
Senior Software Developer
www.wordassist.com

"Niall" <Ni***@discussions.microsoft.com> wrote in message
news:71**********************************@microsof t.com...
>I have converted a vs 2003 solution to 2005 and when I try to switch to
> design mode for a user control I get:
>
> Cannot switch views: Validation (Internet Explorer 6): Element 'Style'
> cannot be nested within element 'div'
>
> Here is the html:
>
>
> <div style="z-index: 101; left: 1px; width: 541px; position: absolute;
> top:
> 1px;
> height: 290px">
> <xwavegrid:smartgrid id="SmartGrid1" runat="server" style="z-index:
> 100;
> left: 0px;
> position: absolute; top: 0px">
> <FooterStyle Height="20px"></FooterStyle>
> <Columns>
> <xwavegrid:SmartGridColumn DataField="asdf" AllowClientUpdates="False"
> Key="sadf" ReadOnly="True" ColumnType="Text" Render="True"
> IncludeInTotals="False" MaxLength="50" Value="" PrimaryKey="False"
> Format=""
> Title="Column 0" ClipContents="False" SortExpression="" Visible="True"
> IsHyperlink="False" PersistClientUpdatesOnDataBind="False">
> <Style Width="100px"></Style>
> </xwavegrid:SmartGridColumn>
> </Columns>
>
> <CaptionStyle Width="100%" Height="20px"></CaptionStyle>
>
> <HeaderStyle Height="20px"></HeaderStyle>
>
> <PagerStyle Width="100%"></PagerStyle>
> </xwavegrid:smartgrid>
> </div>
>
> As you can see this is a custom webcontrol within a div. The custom
> control
> has nested controls which have styles. This doesn't seem to be allowed,
> any
> help appreciated
>


May 11 '06 #5
Do you have XHTML enabled on the page. Look for DOCTYPE directive near top
of page and see if it mentions XHTML.

"Niall" <Ni***@discussions.microsoft.com> wrote in message
news:71**********************************@microsof t.com...
I have converted a vs 2003 solution to 2005 and when I try to switch to
design mode for a user control I get:

Cannot switch views: Validation (Internet Explorer 6): Element 'Style'
cannot be nested within element 'div'

Here is the html:
<div style="z-index: 101; left: 1px; width: 541px; position: absolute;
top:
1px;
height: 290px">
<xwavegrid:smartgrid id="SmartGrid1" runat="server" style="z-index:
100;
left: 0px;
position: absolute; top: 0px">
<FooterStyle Height="20px"></FooterStyle>
<Columns>
<xwavegrid:SmartGridColumn DataField="asdf" AllowClientUpdates="False"
Key="sadf" ReadOnly="True" ColumnType="Text" Render="True"
IncludeInTotals="False" MaxLength="50" Value="" PrimaryKey="False"
Format=""
Title="Column 0" ClipContents="False" SortExpression="" Visible="True"
IsHyperlink="False" PersistClientUpdatesOnDataBind="False">
<Style Width="100px"></Style>
</xwavegrid:SmartGridColumn>
</Columns>

<CaptionStyle Width="100%" Height="20px"></CaptionStyle>

<HeaderStyle Height="20px"></HeaderStyle>

<PagerStyle Width="100%"></PagerStyle>
</xwavegrid:smartgrid>
</div>

As you can see this is a custom webcontrol within a div. The custom
control
has nested controls which have styles. This doesn't seem to be allowed,
any
help appreciated

May 11 '06 #6
changing the doc type to an older version is a good work around for
converted projects

May 11 '06 #7
This is the entire ascx file content.

<%@ Control Language="C#" AutoEventWireup="true"
CodeFile="WebUserControl.ascx.cs"
Inherits="Test_WebUserControl" %>
<%@ Register Assembly="ApplicationFramework.WebControls"
Namespace="ApplicationFramework.WebControls.Grid"
TagPrefix="xwavegrid" %>
<div style="z-index: 101; left: 1px; width: 541px; position: absolute; top:
1px;
height: 290px">
<xwavegrid:smartgrid id=smartgrid1 runat="server" style="z-index: 102;
left: 0px; position: absolute; top: 0px">
<FooterStyle Height="20px"></FooterStyle>
<Columns>
<xwavegrid:SmartGridColumn DataField="sdf" AllowClientUpdates="False"
Key="df" ReadOnly="True" ColumnType="Text" Render="True"
IncludeInTotals="False" MaxLength="50" Value="" PrimaryKey="False" Format=""
Title="Column 0" ClipContents="False" SortExpression="" Visible="True"
IsHyperlink="False" PersistClientUpdatesOnDataBind="False">
<Style Width="100px"></Style>
</xwavegrid:SmartGridColumn>
</Columns>
</xwavegrid:smartgrid>
</div>

I have not added it to page, but I should still be able to switch to design
view.
"Winista" wrote:
Do you have XHTML enabled on the page. Look for DOCTYPE directive near top
of page and see if it mentions XHTML.

"Niall" <Ni***@discussions.microsoft.com> wrote in message
news:71**********************************@microsof t.com...
I have converted a vs 2003 solution to 2005 and when I try to switch to
design mode for a user control I get:

Cannot switch views: Validation (Internet Explorer 6): Element 'Style'
cannot be nested within element 'div'

Here is the html:
<div style="z-index: 101; left: 1px; width: 541px; position: absolute;
top:
1px;
height: 290px">
<xwavegrid:smartgrid id="SmartGrid1" runat="server" style="z-index:
100;
left: 0px;
position: absolute; top: 0px">
<FooterStyle Height="20px"></FooterStyle>
<Columns>
<xwavegrid:SmartGridColumn DataField="asdf" AllowClientUpdates="False"
Key="sadf" ReadOnly="True" ColumnType="Text" Render="True"
IncludeInTotals="False" MaxLength="50" Value="" PrimaryKey="False"
Format=""
Title="Column 0" ClipContents="False" SortExpression="" Visible="True"
IsHyperlink="False" PersistClientUpdatesOnDataBind="False">
<Style Width="100px"></Style>
</xwavegrid:SmartGridColumn>
</Columns>

<CaptionStyle Width="100%" Height="20px"></CaptionStyle>

<HeaderStyle Height="20px"></HeaderStyle>

<PagerStyle Width="100%"></PagerStyle>
</xwavegrid:smartgrid>
</div>

As you can see this is a custom webcontrol within a div. The custom
control
has nested controls which have styles. This doesn't seem to be allowed,
any
help appreciated


May 11 '06 #8

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

Similar topics

1
by: Matthew Wells | last post by:
I have a a parent form with a subform. The parent form has two command buttons to change the subform view to single form view and datasheet view respectively. I can't seem to get this to work. ...
1
by: Nogusta123 | last post by:
Hi, I have had a lot of problems getting web pages, master pages and content pages to render in VS2005 design view the same as they would in Internet Explorer. I did a lot of looking on the...
3
by: Rolf Welskes | last post by:
Hello, for a large web site project we would like to use nested Master Pages. Unfortunely VS2005 is not able to show pages in design mode when nested Master pages are used. This has the...
0
by: Chris Davoli | last post by:
I'm using Visual Studio 2005 to build my web pages. This works fine except for using the VS2005 design mode and inserting panels to not display some rows (before and after TR tags), it won't show...
1
by: TheLongshot | last post by:
I just recently converted a project from VS 2003 to VS 2005. The problem I am having is that I have a lot of tables that are built as repeaters in the code, like this one: <asp:repeater...
1
by: .:Alex:. | last post by:
Hello, I have this very annoying problem. for example I have a class , a partial class of a Form. When I modify some code in this class and I switch to the Form, I have to wait some time to...
2
by: teixeira1985 | last post by:
Hi , Due an unknown cause VS2005 started to show an error when i switch from code to design in windows forms projects. I repaired the installation but the same happens. The error is: One or...
4
by: K Viltersten | last post by:
We have a project working well today and it's developed on VS2005. Since we're planing to switch to VS2008 in a soon future, i've been trying to move the project to VS2008 Express (Web...
2
by: programmerx101 | last post by:
Ok, I'm looking for expert advice on this one. I have a database which keeps going into read_only mode. Sometimes it goes into read_only / single user mode. Once it was taken offline completely....
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:
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...
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...
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
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.