brand.aspx.vb

来自「C#语言制作asp.net网上商店的」· VB 代码 · 共 33 行

VB
33
字号

Partial Class Admin_Management_Brand
    Inherits System.Web.UI.Page
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

        Dim mode As String = Request("mode")
        LoadNSFUserControl(mode)

    End Sub


    Private Sub LoadNSFUserControl(ByVal mode As String)

        If IsNothing(mode) Then mode = "brand"

        Dim uc As UserControl = Nothing
        Select Case mode.ToLower
            Case "brand"
                uc = CType(LoadControl("Controls/BrandControl.ascx"), UserControl)
            Case "editbrand"
                uc = CType(LoadControl("Controls/EditBrandControl.ascx"), UserControl)
            Case Else
                uc = CType(LoadControl("Controls/BrandControl.ascx"), UserControl)
        End Select

        phBrand.Controls.Clear()
        phBrand.Controls.Add(uc)



    End Sub
End Class

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?