コード例 #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["UserID"] == null) return;

        // 將使用者程式碼置於此以初始化網頁
        GetMenuAuth myAuth = new GetMenuAuth();
        string menu_nm = myAuth.GetMenu();
        //判斷是否為空白則就由程式員自己寫入的Title來呈現,否則就直接用Menu_nm的字串。 20040607
        if (menu_nm != "")
        {
            if (PccTitle.Text.Equals(string.Empty) || PccTitle.Text.Equals("Title"))
                PccTitle.Text = myAuth.GetMenu();
        }
    }