📄 commendproductcontrol.ascx.vb
字号:
Imports NetShopForge.Library.Product
Imports NetShopForge.Library.Category
Partial Class Shop_Product_CommendProductControl
Inherits System.Web.UI.UserControl
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Not IsPostBack Then
Dim objPC As New ProductController
Dim categoryID As String = Request("CatID")
If IsNothing(categoryID) OrElse Not IsNumeric(categoryID) Then
categoryID = -1
End If
BindData(CInt(categoryID))
End If
End Sub
Private Sub BindData(ByVal categoryID As Integer)
dlProduct.DataSource = ProductController.GetCommendProductList(categoryID)
dlProduct.DataBind()
End Sub
End Class
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -