feature.aspx.vb
来自「C#语言制作asp.net网上商店的」· VB 代码 · 共 33 行
VB
33 行
Partial Class Admin_Management_Feature
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")
LoadCartControl(mode)
End Sub
Private Sub LoadCartControl(ByVal mode As String)
If IsNothing(mode) Then mode = "feature"
Dim uc As UserControl = Nothing
Select Case mode.ToLower
Case "feature"
uc = CType(LoadControl("Controls/featureControl.ascx"), UserControl)
Case "editfeature"
uc = CType(LoadControl("Controls/EditFeatureControl.ascx"), UserControl)
Case Else
uc = CType(LoadControl("Controls/featureControl.ascx"), UserControl)
End Select
phFeature.Controls.Clear()
phFeature.Controls.Add(uc)
End Sub
End Class
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?