467,081 Members | 1,103 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,081 developers. It's quick & easy.

Not able to populate and select an item in a list dynamically? Hel

Hello,

I have a dropdown list control, where there are cases that I need to
populate the control from a database and select one of the items in this list
after.

Because the content of this control depends on the previous selection of the
user, the control needs to be populated dynamically and not before.

Now what is happening, I get an exception of "reference to an instance of an
object that is not defined...". So looks like till the page is not displayed
the list doesn't exists!

So what is a solution for this kind of cases, because I am sure others have
come across this before?

thanks advance for your help
Nov 18 '05 #1
  • viewed: 1122
Share:
1 Reply
Hi Reza:

Are you dynamically creating the control or is it a part of the markup
in the ASPX of the form? If you could show us the good where the
exception occurs it might give us a chance to see what is going wrong.

--
Scott
http://www.OdeToCode.com

On Wed, 25 Aug 2004 06:51:12 -0700, Reza Solouki
<Re*********@discussions.microsoft.com> wrote:
Posting this again, see if I have more luck today!

"Reza Solouki" wrote:
Hello,

I have a dropdown list control, where there are cases that I need to
populate the control from a database and select one of the items in this list
right after.

Because the content of this control depends on the previous selection of the
user, the control needs to be populated dynamically and not before.

Now what is happening, I get an exception of "reference to an instance of an
object that is not defined...". So looks like till the page is not displayed
the list doesn't exists!

So what is a solution for this kind of cases, because I am sure others have
come across this before?

thanks in advance for your help


Nov 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by C. David Rossen | last post: by
20 posts views Thread by Dannyboyo | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.