-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSubCategory.aspx.vb
More file actions
17 lines (15 loc) · 903 Bytes
/
SubCategory.aspx.vb
File metadata and controls
17 lines (15 loc) · 903 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Partial Class SubCategory
Inherits System.Web.UI.Page
Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load
If Request.QueryString("MainCatID") <> "" Then
lblBC.Text = Request.QueryString("MainCatName") & " (Featured Items)"
DSSubCategory.SelectCommand = "Select * From Category Where Parent = " & CInt(Request.QueryString("MainCatID"))
DSProductList.SelectCommand = "Select * From Product Where Parent = " & CInt(Request.QueryString("MainCatID")) & " and Featured = 'Y'"
End If
If Request.QueryString("SubCatID") <> "" Then
DSProductList.SelectCommand = "Select * From Product Where CategoryID = " & CInt(Request.QueryString("SubCatID"))
lblBC.Text = Request.QueryString("MainCatName") + " > " + Request.QueryString("SubCatName")
End If
End Sub
End Class