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