264 messaggi dal 06 settembre 2002
Ciao, in una pagina ho un tabcontrol ajax e un menu dinamico.

ecco il listato

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Test.aspx.vb" Inherits="Test" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head runat="server">
    <title>Pagina senza titolo</title>
</head>

<body>

    <form id="form1" runat="server">
   
    
   
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>   
    <asp:SiteMapDataSource ID="SiteMapDataSource" Runat="server" ShowStartingNode="False" />
    <asp:Menu ID="mnuPrincipale" runat="server" DataSourceID="SiteMapDataSource" Orientation="Horizontal" DynamicEnableDefaultPopOutImage="False" EnableTheming="True" MaximumDynamicDisplayLevels="5" StaticEnableDefaultPopOutImage="False">
        <StaticMenuItemStyle ItemSpacing="10px" />
        <DynamicMenuStyle BackColor="#34358A"
            HorizontalPadding="2px" VerticalPadding="1px" Width="150px" />
        <DynamicMenuItemStyle ForeColor="#000000" />
    </asp:Menu>
    
    
            <cc1:TabContainer ID="TabContainer1" runat="server" Width="200" Height="200">
                <cc1:TabPanel runat="server" HeaderText="Tab 01" ID="TabPanel1">
                    <ContentTemplate>a</ContentTemplate>
                </cc1:TabPanel>
                <cc1:TabPanel runat="server" HeaderText="Tab 02" ID="TabPanel3">
                    <ContentTemplate>b</ContentTemplate>
                </cc1:TabPanel>
            </cc1:TabContainer>
            
            
    </form>
    
</body>
</html>


con in testata <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> il menu si comporta in modo strano, al posto dei sottomenu mi compaiono quadrati bianche. Se invece metto <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">, gli head del tabcontrol non vengono visualizzati in modo corretto ...

come faccio a risolvere il problema??

Grazie!

>*************************************************<
>** se fossi mondo monderei lo mondo **<
>*************************************************<
264 messaggi dal 06 settembre 2002
Riporto il codice di un esempio trovato sul sito msdn ... nemmeno questo funziona ... potrebbe essere qualche configurazione errata nel mio progetto??


<%@ Page Language="VB" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html  >

  <!-- For the hover styles of the Menu control to  -->
  <!-- work correctly, you must include this head   -->
  <!-- element.                                     -->
  <head id="Head1" runat="server">
    <title>Menu Declarative Example</title>
</head>

  <body style="background-color: Blue;">
    <form id="form1" runat="server">

      <h3>Menu Declarative Example</h3>

      <!-- Use declarative syntax to create the   -->
      <!-- menu structure. Submenu items are      -->
      <!-- created by nesting them in parent menu -->
      <!-- items.                                 -->
      <asp:menu id="NavigationMenu"
        disappearafter="2000"
        staticdisplaylevels="2"
        staticsubmenuindent="10" 
        orientation="Vertical"
        font-names="Arial" 
        target="_blank"  
        runat="server">

        <staticmenuitemstyle backcolor="LightSteelBlue"
          forecolor="Black"/>
        <statichoverstyle backcolor="LightSkyBlue"/>
        <dynamicmenuitemstyle backcolor="Black"
          forecolor="Silver"/>
        <dynamichoverstyle backcolor="LightSkyBlue"
          forecolor="Black"/>

        <items>
          <asp:menuitem navigateurl="Home.aspx" 
            text="Home"
            tooltip="Home">
            <asp:menuitem navigateurl="Music.aspx"
              text="Music"
              tooltip="Music">
              <asp:menuitem navigateurl="Classical.aspx" 
                text="Classical"
                tooltip="Classical"/>
              <asp:menuitem navigateurl="Rock.aspx"
                text="Rock"
                tooltip="Rock"/>
              <asp:menuitem navigateurl="Jazz.aspx"
                text="Jazz"
                tooltip="Jazz"/>
            </asp:menuitem>
            <asp:menuitem navigateurl="Movies.aspx"
              text="Movies"
              tooltip="Movies">
              <asp:menuitem navigateurl="Action.aspx"
                text="Action"
                tooltip="Action"/>
              <asp:menuitem navigateurl="Drama.aspx"
                text="Drama"
                tooltip="Drama"/>
              <asp:menuitem navigateurl="Musical.aspx"
                text="Musical"
                tooltip="Musical"/>
            </asp:menuitem>
          </asp:menuitem>
        </items>

      </asp:menu>

    </form>
  </body>
</html>


>*************************************************<
>** se fossi mondo monderei lo mondo **<
>*************************************************<

Torna al forum | Feed RSS

ASPItalia.com non è responsabile per il contenuto dei messaggi presenti su questo servizio, non avendo nessun controllo sui messaggi postati nei propri forum, che rappresentano l'espressione del pensiero degli autori.