473,414 Members | 1,947 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

Public Member not found error

Hello all. I really hope someone can help me solve this error:

I am getting the following error:

Public member 'PlanID' on type 'DataRowView' not found.

Here is the relevant code:

<ItemTemplate>
<tr>
<td background="images/ltMiddle.jpg" style="background-repeat:repeat-y;
background-position:top right;"</td>
<td bgcolor="e1e1e1" style="background-repeat:repeat-y;
background-position:bottom;"</td>
<td colspan="2" bgcolor="e1e1e1" style="background-repeat:repeat-y;
background-position:bottom;">
<asp:LinkButton id="Group1" CommandName="<%# container.DataItem().PlanID%>"
style="Z-INDEX: 101; LEFT: 328px; POSITION: absolute; TOP: 128px"
runat="server">LinkButton</asp:LinkButton>
</td>
<td background="images/rtMiddle.jpg" style="background-repeat:repeat-y;
background-position:top left;"</td>
</tr>
</ItemTemplate>

The code is part of a Repeater control. The data is bound to the control in
the load procedure. Here is that code:

myConn.Open()

SelCmd.CommandText = "select planname,planid from floorplans
where squareft < 2000 order by planname ASC"
SelCmd.Connection = myConn
myCommand.SelectCommand = SelCmd

myCommand.Fill(FloorplansDs, "Under2kName")

FirstGroup.DataSource =
FloorplansDs.Tables("Under2kName").DefaultView
DataBind()

myCommand.Dispose()
myConn.Close()
Please help! :)

Mar 9 '07 #1
1 1851
Try this instead (the data item has PlanID column, but a member would have
to have it declared in the source code):
DataBinder.Eval(Container.DataItem,"PlanID")


Mar 9 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

19
by: qazmlp | last post by:
class base { // other members public: virtual ~base() { } virtual void virtualMethod1()=0 ; virtual void virtualMethod2()=0 ; virtual void virtualMethod3()=0 ;
18
by: Janaka | last post by:
I'm having a discussion with my colleagues here on good programming standards. One thing we haven't agreed on is the use of properties in classes vs using member variables. Now everyone knows...
5
by: rettigcd | last post by:
I have several classes that all have the same static member: class A{ public static string Table = "TableA"; } class B{ public static string Table = "TableB"; }
1
by: timbobd | last post by:
I have encountered a situation that I don't understand. When I call a sub of Friend scope (in an object with Friend scope), I am getting an error "Public member 'subname' not found in type...
1
by: tshad | last post by:
I have a collection class(exChain), for my Exception log which is getting the following error: *************************************************************************** No default member found...
4
by: Bugs | last post by:
Hi, I wonder if anyone can help me out. I'm building a vb.net application that has a form with a panel that contains several other sub forms (as a collection of controls). What I'm wanting to...
1
by: =?Utf-8?B?RXJpY2E=?= | last post by:
Hello all. I really hope someone can help me solve this error: I am getting the following error: Public member 'PlanID' on type 'DataRowView' not found. Here is the relevant code: ...
9
by: Christopher | last post by:
Code compiles, but the string evaluates to NULL in debugger. Using gcc 3.1.1. Did I not initialize the string properly or is this a compiler bug? // some.h #include <string> namespace ns {
8
by: Sep410 | last post by:
Hi all, Here is the code that I have: For h = 2 To dt.Rows.Count - 1 For j = 0 To 11 Excel.Cells(h, k).value = (dt.Rows(h).Item(j).Value).ToString ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.