Problem with Smart navigation

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top