My next challenge (rather urgent one this)
I need to validate the users region against the region in the productlist. What I have is:
Several values stored in Session when a user logs in, one of which is Session("SLID") which is the users database primary key value and is used to perform a database lookup whenever a users info is needed. This is done via SLUser.
vb eg:
Dim Userdetails as SLUser = new SLUser(Session("SLID") )
THEN I also have:
Private Sub Gridview1_RowDataBound(ByVal sender As Object, _
ByVal e As GridViewRowEventArgs) Handles GridView1.RowDataBound
If e.Row.RowType = DataControlRowType.DataRow Then
e.Row.Cells(3).Text = SLStoreFunctions.GetCurrencyLabel & e.Row.Cells(3).Text
If SLStoreSettings.IsCatalogueMode = True Then
e.Row.Cells(3).Visible = False
End If
End If
If e.Row.RowType = DataControlRowType.Header Then
If SLStoreSettings.IsCatalogueMode = True Then
e.Row.Cells(3).Visible = False
End If
End If
End Sub
End Class
in my prductlist where my gridview is.
How do I add a session/cookie/variable on this so that it picks up the region and only shows the products in the the appropriate region?