Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Accessing Child Controls from a parent datalist or datagrid contro

Thread Tools

Accessing Child Controls from a parent datalist or datagrid contro

Posts: n/a
OK fellow developers...

I am running into a new problem. I have developed a datalist

Inside the datalist I have a label

What I want to do is set the label value using a class I developed. The
only problem is I keep getting the dreaded

Object reference not set to an instance of an object

However I do have the label declared

public Label lbl_Month;

I am getting <undefined value> for my label...

Do I need to find the control in the datalist???
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
If a class Child inherits from Parent, how to implementChild.some_method if Parent.some_method() returns Parent instance ? metal Python 8 10-30-2009 10:31 AM
HELP! Child controls of child controls not visible to web app ASP .Net Building Controls 0 05-05-2005 09:14 PM
Pass from parent to child, then update parent with child value... Noel Dolan Javascript 0 07-18-2004 05:52 PM
accessing datalist child controls MattB ASP .Net 8 04-23-2004 03:16 AM
How to force the child controls OnClick event before the parent controls CreateChildControls method? Arulraja ASP .Net 3 10-17-2003 04:22 PM