Wrox Programmer Forums
|
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 6th, 2008, 04:47 AM
Authorized User
 
Join Date: Jul 2008
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to TashaAT
Default Passing Logic on DataGrid

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?






Similar Threads
Thread Thread Starter Forum Replies Last Post
Passing more than one parameters from datagrid Lyn ASP.NET 1.0 and 1.1 Professional 6 August 29th, 2006 02:30 AM
Passing values in DataGrid jezywrap ASP.NET 2.0 Professional 0 July 24th, 2006 10:20 AM
Passing values to new row in a datagrid wolf27ea Pro VB.NET 2002/2003 2 March 23rd, 2004 09:58 AM
Mixing Data access logic and business logic polrtex BOOK: Professional Jakarta Struts 0 December 15th, 2003 07:19 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.