Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics 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 November 28th, 2006, 03:04 PM
Registered User
 
Join Date: Nov 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Access shared members through an instance..

Hello I'm fairly new programming in asp.net.. My question is I have a datagrid that displays some data, and when I click on one item its supposed to show the description of the particular item that I selected in a datalist... but I get the warning: Warning 3 Access of shared member, constant member, enum member or nested type through an instance; qualifying expression will not be evaluated.

and my code is the following:
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
     Dim categoryId As String = 4 ' category has distinct top of the table 'Request.Params("CategoryID")
    Dim identifierId As Integer = 0 'Request.Params("IdentifierID")

            Dim productCataloge As Printek.Product

            ProductList.DataSource = productCataloge.PageList(categoryId, identifierId)

            ProductList.DataBind()

    End Sub

when i click on an item : strProductList.aspx?CategoryID=3&identifierId=3, that is fine, what it does not display what I have on the datalist..

can someone give a clue on how can I make this work??

thanx

:)

 
Old December 3rd, 2006, 01:27 PM
Friend of Wrox
 
Join Date: Apr 2004
Posts: 204
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Without seeing more of your code it's hard to tell. It looks like it's something with the type of accessor on your class' members. I would post the class, the ASPX and the codebehind. Then some genius will probably spot it in a second.

Also, you might try using a DetailsView instead of a listView. They are really easy to link up to a GridView, and there is tons of documentation on the subject. BTW are you actually using a dataGrid or are you using a GridView. DataGrid has been depreciated in 2.0.

Aaron






Similar Threads
Thread Thread Starter Forum Replies Last Post
Members list happygv Forum and Wrox.com Feedback 9 April 10th, 2007 11:33 AM
Help - Shared MDE - Exclusive Access message box surajguru Access 3 February 22nd, 2007 12:18 PM
Opening another instance of Access with VBA dlamarche Access VBA 5 November 20th, 2006 11:22 PM
Listing members quiksilverhg Excel VBA 1 October 6th, 2005 05:09 AM
Can't access dialog members in .NET drb2k2 Visual C++ 3 September 16th, 2003 02:41 AM





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