Click here to Skip to main content
15,902,809 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questiondropdownlist not populating Pin
cmu_man20-Feb-07 10:12
cmu_man20-Feb-07 10:12 
AnswerRe: dropdownlist not populating Pin
postmaster@programmingknowledge.com20-Feb-07 13:53
postmaster@programmingknowledge.com20-Feb-07 13:53 
QuestionDropdownlist in EditItemTemplate with an ObjectDataSource Pin
Adam °Wimsatt20-Feb-07 9:43
Adam °Wimsatt20-Feb-07 9:43 
AnswerRe: Dropdownlist in EditItemTemplate with an ObjectDataSource Pin
kubben20-Feb-07 9:50
kubben20-Feb-07 9:50 
GeneralRe: Dropdownlist in EditItemTemplate with an ObjectDataSource Pin
Adam °Wimsatt20-Feb-07 11:09
Adam °Wimsatt20-Feb-07 11:09 
GeneralRe: Dropdownlist in EditItemTemplate with an ObjectDataSource Pin
kubben20-Feb-07 13:30
kubben20-Feb-07 13:30 
GeneralRe: Dropdownlist in EditItemTemplate with an ObjectDataSource Pin
Adam °Wimsatt21-Feb-07 3:30
Adam °Wimsatt21-Feb-07 3:30 
QuestionA field or property with the name ... was not found on the selected data source Pin
KelvinLush20-Feb-07 8:12
KelvinLush20-Feb-07 8:12 
Hi.
I'm new to ASP.NET (but not C# or VB.NET).

In a nutshell, I have a class (MyClass) that exposes multiple public properties, and another collection class that Inherits from Hashtable to give a strongly typed collection of the first class, where 'Add', 'Remove' and 'Item' are implemented to shadow those from the base (HashTable) class by accepting or returning a MyClass object.

I also have a GridView that has its DataSource set to an ObjectDataSource that returns an instance of the collection. Now, at design time, the grid can see all of the public properties of MyClass but, when run, fails with the error I gave in the Subject of this message.

Now, if I change the code so that instead of returning a HashTable I return an array MyClass(), all is well. The designer can still see all of the properties and the code runs fine.

Does anyone know why this is? If the designer can see the properties at deign time then why not at run time?

I would really rather have my code return the collection instead of the array.

Many thanks for your help.


Kelvin
AnswerRe: A field or property with the name ... was not found on the selected data source Pin
kubben20-Feb-07 8:30
kubben20-Feb-07 8:30 
QuestionIframe Issue Pin
Amit Kumar G20-Feb-07 7:48
Amit Kumar G20-Feb-07 7:48 
AnswerRe: Iframe Issue Pin
adnanrafiq20-Feb-07 8:25
adnanrafiq20-Feb-07 8:25 
GeneralRe: Iframe Issue Pin
Amit Kumar G20-Feb-07 11:37
Amit Kumar G20-Feb-07 11:37 
Questionformatting date in gridview [modified] Pin
Kunal P20-Feb-07 5:07
Kunal P20-Feb-07 5:07 
AnswerRe: formatting date in gridview Pin
kubben20-Feb-07 5:56
kubben20-Feb-07 5:56 
QuestionRe: formatting date in gridview Pin
Kunal P22-Feb-07 1:26
Kunal P22-Feb-07 1:26 
AnswerRe: formatting date in gridview Pin
kubben22-Feb-07 2:01
kubben22-Feb-07 2:01 
GeneralRe: formatting date in gridview Pin
Kunal P22-Feb-07 4:55
Kunal P22-Feb-07 4:55 
GeneralRe: formatting date in gridview Pin
kubben22-Feb-07 7:33
kubben22-Feb-07 7:33 
QuestionRe: formatting date in gridview Pin
Kunal P23-Feb-07 2:42
Kunal P23-Feb-07 2:42 
AnswerRe: formatting date in gridview Pin
kubben23-Feb-07 3:02
kubben23-Feb-07 3:02 
QuestionRe: formatting date in gridview Pin
Kunal P23-Feb-07 3:09
Kunal P23-Feb-07 3:09 
AnswerRe: formatting date in gridview Pin
kubben23-Feb-07 3:11
kubben23-Feb-07 3:11 
Generaldone...finally Pin
Kunal P23-Feb-07 3:21
Kunal P23-Feb-07 3:21 
GeneralRe: done...finally Pin
kubben23-Feb-07 3:22
kubben23-Feb-07 3:22 
GeneralRe: done...finally Pin
Kunal P23-Feb-07 3:23
Kunal P23-Feb-07 3:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.