Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Not able to populate and select an item in a list dynamically? Hel

Reply
Thread Tools

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

 
 
=?Utf-8?B?UmV6YSBTb2xvdWtp?=
Guest
Posts: n/a
 
      08-20-2004
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
 
Reply With Quote
 
 
 
 
Scott Allen
Guest
Posts: n/a
 
      08-25-2004
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
<> 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


 
Reply With Quote
 
 
 
Reply

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
Not able to display color in excel not able to display color in excel using xml sed_y XML 0 02-15-2012 09:46 PM
script to open a new window and populate it with a single item from a list TPK Javascript 1 02-14-2006 07:51 PM
Populate a popup window with clickable records from an Access DB and upon clicking, populate a selectbox on the original webpage with the clicked record Enjoy Life ASP General 2 02-23-2005 10:48 PM
Hel me! I'm going mad!!! Piotre Ugrumov Java 2 02-18-2004 10:16 PM
Hel me! I'm going mad!!! Piotre Ugrumov Java 0 02-15-2004 06:41 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57