G
Guest
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
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