乱码和charset有关,改改就好了。

解决方案 »

  1.   

    怎么我改了charset也没用啊,还是乱码,所以我放弃用这个了,不过我感觉好象用webmenu是不是要消耗性能些?鼠标放上去有停滞得感觉,没有aspnetmenu快
      

  2.   

    解决乱码问题:
    <%@ Register TagPrefix="cspb" Namespace="Coalesys.PanelBar" Assembly="Coalesys.PanelBar" %>
    <%@ Page language="c#" %>
    <script runat="server">
         void Page_Load(object sender, EventArgs e)
         {
               LeftNav.LoadState(Server.MapPath("./") + "\\xpblue.pbs");
         }
    </script>
    <html>
         <head>
               <title>Untitled</title>
         </head>
         <body bgcolor="#6E90E4" leftmargin="5" topmargin="12" marginheight="12" marginwidth="12">
               <center>
                     <cspb:PanelBar id="LeftNav" runat="server" />
               </center>
         </body>
    </html>xpblue.pbs就是设计的菜单了,注意还有一个xpblue.pbt文件,修改里面的编码为GB2312:
    <meta http-equiv="content-type" content="text/html; charset=gb2312">
    即可!