By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,987 Members | 1,607 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,987 IT Pros & Developers. It's quick & easy.

"Object reference not set to an instance of an object" error

P: n/a
I have a label object that gets a dynamic value thrown into it on a
button submit event:

lblMessage.InnerText = txtName.Value

but i get "Object reference not set to an instance of an object" error
on this particular line. All my other references seem correct.

???
Muench

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
We need to see the rest of your code. Where is the label being declared?
"J. Muenchbourg" <an*******@dex.com> wrote in message
news:Oe**************@TK2MSFTNGP11.phx.gbl...
I have a label object that gets a dynamic value thrown into it on a
button submit event:

lblMessage.InnerText = txtName.Value

but i get "Object reference not set to an instance of an object" error
on this particular line. All my other references seem correct.

???
Muench

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Jul 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.