sysdesigner Posted February 11, 2004 Posted February 11, 2004 Hi, I am trying to bind 20 label controls on a user control to 20 questions in a dataset. When I try the simple binding, only the Page Object shows up to be bound to - the dataset is not there. When I try a custom binding expression "DataSet.Tables(0).Rows(2).Item("question_txt")" I get this error -- Reference to a non-shared member requires an object reference. I am instantiating and populating the dataset in the code behind of the control. Thanks, Shawn Quote
Administrators PlausiblyDamp Posted February 11, 2004 Administrators Posted February 11, 2004 What's the name of your DataSet? The code should look like .Tables(0).Rows(2).Item("question_txt") Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
sysdesigner Posted February 11, 2004 Author Posted February 11, 2004 QuestionDataSet is the name, not "DataSet". Thanks. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.