B
Burak Gunay
Hello,
I have a form with a div inside another div, as shown.
<%@ Page Language="vb" AutoEventWireup="false" smartnavigation="true"
CodeBehind="smartnavtest.aspx.vb" Inherits="menu_test.smartnavtest" %>
<form id="form1" runat="server">
<div style="background-color:Blue">
Hello world
<div>
<asp:sitemapdatasource id="SiteMapDataSource1"
SiteMapProvider="XmlSiteMapProvider" runat="server"
startingnodeoffset="0" />
<asp:Menu ID="Menu" runat="server" DataSourceID="SiteMapDataSource1"
Orientation="Horizontal"
StaticDisplayLevels="2"
maximumdynamicdisplaylevels="1"
DynamicHorizontalOffset="65" >
</asp:Menu>
</div>
</div>
<br />
<asp:Button ID="btnClick" Text="Click" runat="server" />
</form>
For some reason, when you click the button, .net puts an extra line
between
"Hello world" and the menu listing.
When i remove the smartnavigation, I don't get this extra line.
Why does smartnavigation cause an extra line to be placed on the page?
How can I fix this problem?
Thanks,
Burak
I have a form with a div inside another div, as shown.
<%@ Page Language="vb" AutoEventWireup="false" smartnavigation="true"
CodeBehind="smartnavtest.aspx.vb" Inherits="menu_test.smartnavtest" %>
<form id="form1" runat="server">
<div style="background-color:Blue">
Hello world
<div>
<asp:sitemapdatasource id="SiteMapDataSource1"
SiteMapProvider="XmlSiteMapProvider" runat="server"
startingnodeoffset="0" />
<asp:Menu ID="Menu" runat="server" DataSourceID="SiteMapDataSource1"
Orientation="Horizontal"
StaticDisplayLevels="2"
maximumdynamicdisplaylevels="1"
DynamicHorizontalOffset="65" >
</asp:Menu>
</div>
</div>
<br />
<asp:Button ID="btnClick" Text="Click" runat="server" />
</form>
For some reason, when you click the button, .net puts an extra line
between
"Hello world" and the menu listing.
When i remove the smartnavigation, I don't get this extra line.
Why does smartnavigation cause an extra line to be placed on the page?
How can I fix this problem?
Thanks,
Burak