Hi,
It is not possible to bind a Generic.List collection to a repeater I
guess huh?
I am getting this error:
An invalid data source is being used for rpCategories. A valid data
source must implement either IListSource or IEnumerable.
Is this correct or could I be doing something else wrong? 5 14161
List<Tor List(of T) has a ToArray method. You could bind to the output of
that method call to your repeater.
Mark Dykun
"DotNetNewb ie" <sn***********@ yahoo.comwrote in message
news:11******** *************** ***********@s8g 2000prg.googleg roups.com...
Hi,
It is not possible to bind a Generic.List collection to a repeater I
guess huh?
I am getting this error:
An invalid data source is being used for rpCategories. A valid data
source must implement either IListSource or IEnumerable.
Is this correct or could I be doing something else wrong?
This seems a little strange to me, as IList<Textends IEnumerable<T>,
which extends IEnumerable, so the error message must be wrong (or you are
not passing what you think is an IList<Timplemen tation).
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m
"DotNetNewb ie" <sn***********@ yahoo.comwrote in message
news:11******** *************** ***********@s8g 2000prg.googleg roups.com...
Hi,
It is not possible to bind a Generic.List collection to a repeater I
guess huh?
I am getting this error:
An invalid data source is being used for rpCategories. A valid data
source must implement either IListSource or IEnumerable.
Is this correct or could I be doing something else wrong?
On Jan 2, 12:57 pm, "Nicholas Paldino [.NET/C# MVP]"
<m...@spam.guar d.caspershouse. comwrote:
This seems a little strange to me, as IList<Textends IEnumerable<T>,
which extends IEnumerable, so the error message must be wrong (or you are
not passing what you think is an IList<Timplemen tation).
--
- Nicholas Paldino [.NET/C# MVP]
- m...@spam.guard .caspershouse.c om
"DotNetNewb ie" <snowman908...@ yahoo.comwrote in message
news:11******** *************** ***********@s8g 2000prg.googleg roups.com...
Hi,
It is not possible to bind a Generic.List collection to a repeater I
guess huh?
I am getting this error:
An invalid data source is being used for rpCategories. A valid data
source must implement either IListSource or IEnumerable.
Is this correct or could I be doing something else wrong?
Yeah something else has to be wrong.
I changed the collection to an ArrayList and I still get the same
error.
On Jan 2, 1:57 pm, DotNetNewbie <snowman908...@ yahoo.comwrote:
On Jan 2, 12:57 pm, "Nicholas Paldino [.NET/C# MVP]"
<m...@spam.guar d.caspershouse. comwrote:
This seems a little strange to me, as IList<Textends IEnumerable<T>,
which extends IEnumerable, so the error message must be wrong (or you are
not passing what you think is an IList<Timplemen tation).
--
- Nicholas Paldino [.NET/C# MVP]
- m...@spam.guard .caspershouse.c om
"DotNetNewb ie" <snowman908...@ yahoo.comwrote in message
news:11******** *************** ***********@s8g 2000prg.googleg roups.com...
Hi,
It is not possible to bind a Generic.List collection to a repeater I
guess huh?
I am getting this error:
An invalid data source is being used for rpCategories. A valid data
source must implement either IListSource or IEnumerable.
Is this correct or could I be doing something else wrong?
Yeah something else has to be wrong.
I changed the collection to an ArrayList and I still get the same
error.
Ok this is what happend:
I named my List<Tcollectio n rgSomething.
And my repeater was rpSomething.
And I was binding like so:
rpSomething.Dat aSource = rpSomething;
==I was binding a repeater to a repeater!!
Ah, there's the rub
Mark
"DotNetNewb ie" <sn***********@ yahoo.comwrote in message
news:0f******** *************** ***********@q77 g2000hsh.google groups.com...
On Jan 2, 1:57 pm, DotNetNewbie <snowman908...@ yahoo.comwrote:
>On Jan 2, 12:57 pm, "Nicholas Paldino [.NET/C# MVP]" <m...@spam.gua rd.caspershouse .comwrote:
This seems a little strange to me, as IList<Textends
IEnumerable<T>,
which extends IEnumerable, so the error message must be wrong (or you
are
not passing what you think is an IList<Timplemen tation).
--
- Nicholas Paldino [.NET/C# MVP]
- m...@spam.guard .caspershouse.c om
"DotNetNewb ie" <snowman908...@ yahoo.comwrote in message
>news:11******* *************** ************@s8 g2000prg.google groups.com...
Hi,
It is not possible to bind a Generic.List collection to a repeater I
guess huh?
I am getting this error:
An invalid data source is being used for rpCategories. A valid data
source must implement either IListSource or IEnumerable.
Is this correct or could I be doing something else wrong?
Yeah something else has to be wrong.
I changed the collection to an ArrayList and I still get the same error.
Ok this is what happend:
I named my List<Tcollectio n rgSomething.
And my repeater was rpSomething.
And I was binding like so:
rpSomething.Dat aSource = rpSomething;
==I was binding a repeater to a repeater!!
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Donald Williamson |
last post by:
I have a DataReader that I am binding to a Repeater control. In the
DataReader, I have two fields: 'Name1' and 'Name2'
'Name1' will always have a person's name. Name2 periodically has a person's
name. So the question is if there is a value in 'Name2', I want to display
only that name. Otherwise, display 'Name1'
Any help on how to do this?
Using VS.NET - vb
|
by: Gastin |
last post by:
I am consuming a web serivce from Amazon.Com. I have the following
class which was autogenerated by VS.NET when I created a Web Reference
to http://webservices.amazon.com/AWSECommerceService/AWSECommerceService.wsdl
AmazonWebService.com.amazon.webservices.Item
As you can see from the code snippets below it has public member
variables rather than public Properties. When I use <%#
DataBinder.Eval(Container.DataItem, "ASIN") %> syntax in...
|
by: Emre Guldogan |
last post by:
I have a database which is constituted from 3 tables. and there is
parent-child cluster logic between them, such as :
TABLE A --> TABLE B --> TABLE C
there are children records in table B for a record in table A, and are
children records in table C for a record in table B. and I have an interface
web page which lists records of table B and C by a given parent id from
table A with a Repeater with Master-Detailed technique.
Normally, the...
|
by: Alan Silver |
last post by:
Hello,
I'm trying to use an ArrayList to do data binding, but am getting an
error I don't understand. I posted this in another thread, but that was
all confused with various other problems, which could be why no-one
answered it!! I've now narrowed the problem down, so am starting a new,
more specific, thread. Sorry it's a bit long, but it's reasonably simple
stuff.
I have a page where I'm showing product details, including any
|
by: dutone |
last post by:
I have searched high and low for a solution to this and I dont think
its possible.... but I hope not.
What I have is a list of items with various values that can be changed
via a drop down. Each of the items will have a value that was
previously selected by the user. When the data is displayed, the
previously selected values must be set as the default in the drop down.
The ids of each drop down are created acording to their index in...
| |
by: webmaster |
last post by:
Pardon my being a total C# noob.
I'm trying to take apart the dotNet Time Tracker dotNet C# starterkit
sample application and replicate a part of the code.
At a high level, I have a very simple SQL server table and stored
procedure which I have no problems binding from directly from an
ASP.NET control...
Table BOOK
|
by: Brad Baker |
last post by:
I'm going a little crazy :) I'm trying to bind a repeater control to a
dataset on page load using the following code:
if (Request.QueryString != null)
{
string customerid = Request.QueryString;
//open connection
SqlConnection m_conn = new SqlConnection("Server=server;
Database=database; UId=username; Pwd=password");
|
by: kevinwolfe |
last post by:
Hi all.
I'd like any suggestions on how I can get my data set (not a DataSet)
bound to a couple of controls on a form. Let me start by describing
what my data looks like. Each entry correlates to a piece of equipment
and has the following information:
Two strings, one for a system name and one for equipment name
An integer
An ArrayList (which will contain only strings)
|
by: Leon Mayne |
last post by:
We have static functions in our data access layer that return generic lists
of our business objects, such as this:
Public Shared Function AllUsers() as Generic.IList(of OurUserObject)
Dim colUsers as New Generic.List(of OurUserObject)
' Populate collection here
Return colUsers
End Function
These methods are used thoughout the code, but in some aspx files we would
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |