Asp.net网页左侧所需的垂直菜单 [英] Required Vertical Menus at the Left side of the Asp.net Webpage

查看:118
本文介绍了Asp.net网页左侧所需的垂直菜单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的朋友们!

正在使用Asp.net c#,SqlseRver2005.

因此,我的要求是在Asp.net主网页左侧的我需要垂直菜单".

因此,当用户单击链接时,它必须在页面右侧显示该链接的特定详细信息


请帮助

Dear FRIENDS !!

am working on Asp.net c#, SqlseRver2005.

So My requirement is I Required Vertical Menus at the Left side of the Asp.net Master Webpage.

So, when the user clicks the link it must display that link particular details to right side of the page


Please help

推荐答案

您好,

请查看下面的母版页代码,希望这对您有所帮助

Hello,

Please see the below master page code, Hope this will help you

<%@ Master Language="C#" AutoEventWireup="true" CodeFile="Site.master.cs" Inherits="SiteMaster" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head runat="server">
    <title></title>
    <link href="~/Styles/Site.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <div>
        <table width="100%">
            <tr>
                <%-- For left navigation--%>
                <td style="width: 30%" valign="top">
                    left navigatin pane
                    <asp:Menu ID="Menu1" runat="server" BackColor="#B5C7DE"

                        DynamicHorizontalOffset="2" Font-Names="Verdana" Font-Size="0.8em"

                        ForeColor="#284E98" StaticSubMenuIndent="10px">
                        <DynamicHoverStyle BackColor="#284E98" ForeColor="White" />
                        <DynamicMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
                        <DynamicMenuStyle BackColor="#B5C7DE" />
                        <DynamicSelectedStyle BackColor="#507CD1" />
                        <Items>
                            <asp:MenuItem Text="Menu1" Value="Menu1"></asp:MenuItem>
                            <asp:MenuItem Text="Menu2" Value="Menu2"></asp:MenuItem>
                            <asp:MenuItem Text="Menu3" Value="Menu3"></asp:MenuItem>
                            <asp:MenuItem Text="Menu4" Value="Menu4"></asp:MenuItem>
                        </Items>
                        <StaticHoverStyle BackColor="#284E98" ForeColor="White" />
                        <StaticMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
                        <StaticSelectedStyle BackColor="#507CD1" />
                    </asp:Menu>
                </td>
                <%--For content place holder--%>
                <td style="width: 70%">
                    <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
                    </asp:ContentPlaceHolder>
                </td>
            </tr>
        </table>
        <br />
        <br />
    </div>
   
</body>
</html>




谢谢!!!!!!!!!




Thanks!!!!!!!!!


这篇关于Asp.net网页左侧所需的垂直菜单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆