-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: _Neeraj_
Message 2 in Discussion

Probably, you can do one thing :

1. Put the data for the second dropwonlist in the XML format in the
HTML server side control.
2. Attach the javascript function to the first combo on its onchange
event, and pass it necessary data ( say id) on which you want to
disaplay the data in the second combo..
3. In the javascript function, instantiate the XML DOM object and
reduce the XML  using XPath query using passed id and then loop
through the shortened xml add the data in the second dropdownlist.

Note that at any point of time do not tamper the original xml string
of your HTML server control. Because that will be used for each and
every change.


Regards, 
Neeraj Saluja


----- Original Message -----
From: modi.net <[EMAIL PROTECTED]>
Date: Thu, 5 Aug 2004 05:56:45 -0700
Subject: Populating second dropdownlist without page refresh
To: BDOTNET <[EMAIL PROTECTED]>


New Message on BDOTNET


Populating second dropdownlist without page refresh


Reply

 Reply to Sender   Recommend Message 1 in Discussion 

From: modi.net 


Hi All,
 
In my ASP.NET application I have two dropdownlist controls. 
I need to populate the values of the second dropdownlist on the basis
of the item selected for the first one. Values for both the
dropdownlists comes from the database.
 

Problem
My page should NOT refresh on the selection of the value in the first
dropdownlist but than also it should fetch the values from the
database for the second dropdownlist.
 
Since the data is huge I can't put it in viewstate or javascript.
Somebody suggested that I can use XMLHTTP to achieve the same. 
 
Do any of you guys have done something similar or some code is available ...
 
please respond ASAP ....
 
Best Regards,
Praveen
View other groups in this category. 



Also on MSN:
Start Chatting | Listen to Music | House & Home | Try Online Dating |
Daily Horoscopes



To stop getting this e-mail, or change how often it arrives, go to
your E-mail Settings.

Need help? If you've forgotten your password, please go to Passport
Member Services.
For other questions or feedback, go to our Contact Us page. 

If you do not want to receive future e-mail from this MSN group, or if
you received this message by mistake, please click the "Remove" link
below. On the pre-addressed e-mail message that opens, simply click
"Send". Your e-mail address will be deleted from this group's mailing
list.
Remove my e-mail address from BDOTNET.


-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to