14 September 2011

HALAMAN MASTER


<%@ Master Language="VB" CodeFile="HalamanMaster.master.vb" Inherits="HalamanMaster" %>

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

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div style="left: 0px; position: absolute; top: 0px">
        <table cellpadding="0" cellspacing="0" width="100%">
            <tr>
                <td align="left" colspan="2" valign="top">
                    <img src="Image_Web/Atas.jpg" /></td>
            </tr>
            <tr>
                <td align="left" colspan="2" style="background-color: lightsteelblue; height: 19px;" valign="top">
                    <asp:SiteMapPath ID="SiteMapPath1" runat="server" Font-Names="Verdana" Font-Size="X-Small"
                        PathSeparator=" : ">
                        <PathSeparatorStyle Font-Bold="True" ForeColor="#507CD1" />
                        <CurrentNodeStyle ForeColor="#333333" />
                        <NodeStyle Font-Bold="True" ForeColor="#284E98" />
                        <RootNodeStyle Font-Bold="True" ForeColor="#507CD1" />
                    </asp:SiteMapPath>
                </td>
            </tr>
            <tr>
                <td align="left" style="width: 20%; background-color: lightsteelblue;" valign="top">
                    <table cellspacing="0" width="100%">
                        <tr>
                            <td align="left" style="width: 100%" valign="top">
                                <asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" ShowStartingNode="False" />
                                <asp:Menu ID="Menu1" runat="server" BackColor="#B5C7DE" DataSourceID="SiteMapDataSource1"
                                    DynamicHorizontalOffset="2" Font-Names="Verdana" Font-Size="0.8em" ForeColor="#284E98"
                                    StaticSubMenuIndent="10px">
                                    <StaticMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
                                    <DynamicHoverStyle BackColor="#284E98" ForeColor="White" />
                                    <DynamicMenuStyle BackColor="#B5C7DE" />
                                    <StaticSelectedStyle BackColor="#507CD1" />
                                    <DynamicSelectedStyle BackColor="#507CD1" />
                                    <DynamicMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
                                    <StaticHoverStyle BackColor="#284E98" ForeColor="White" />
                                </asp:Menu>
                            </td>
                        </tr>
                    </table>
                </td>
                <td align="left" style="width: 80%" valign="top">
        <asp:contentplaceholder id="ContentPlaceHolder1" runat="server">
        </asp:contentplaceholder>
                </td>
            </tr>
            <tr>
                <td align="left" style="width: 20%" valign="top">
                </td>
                <td align="left" style="width: 80%" valign="top">
                </td>
            </tr>
        </table>
        &nbsp;
    </div>
    </form>
</body>
</html>

HALAMAN MASTER.ASPX.VB



Partial Class HalamanMaster
    Inherits System.Web.UI.MasterPage

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        ' Set Jumlah barang yang dibeli = 0
        Session("ItemBali") = 0
    End Sub
End Class



Tidak ada komentar:

Posting Komentar