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

New Message on BDOTNET

-----------------------------------------------------------
From: anurag4dotnet
Message 5 in Discussion






Hi
Vishnu<o:p></o:p>


<o:p> </o:p>


There are several ways to do that:<o:p></o:p>


        You should
     set the Autopostback property of the First DropDown to true. Then on the 
SelectedIndexChanged
     event get the selectedvalue and use a new
     connection, command and Datareader (if they are
     not defined as the class member) and fire the query on the selected value
     and populate the second combo.<o:p></o:p>
        Second you
     can create a javascript for that and do all
     these operations on Client side. But it is quite tedious job. <o:p></o:p>



(if
you need I can send you the code for that)<o:p></o:p>


<o:p> </o:p>


<o:p> </o:p>


Hope this will help you out.<o:p></o:p>


<o:p> </o:p>


Regards,<o:p></o:p>


Anurag Vaishy<o:p></o:p>


<o:p> </o:p>


<o:p> </o:p>


<o:p> </o:p>


<o:p> </o:p>


-----Original Message-----

From: prasanth
[mailto:[EMAIL PROTECTED] 

Sent: <st1:date
Month="9" Day="28" Year="2004">Tuesday, September 28, 2004</st1:date> <st1:time
Hour="17" Minute="7">5:07 PM</st1:time>

To: BDOTNET

Subject: Regarding dropdown list
in ASP.NET


<o:p> </o:p>


<o:p></o:p>


 
  
  
<o:p></o:p>
  
  
  
New
  Message on BDOTNET<o:p></o:p>
  
 
 
  
  
<o:p></o:p>
  
 





<o:p> </o:p>


Regarding dropdown
list in ASP.NET<o:p></o:p>


 
  
  
Reply

  <o:p></o:p>
  
  
  
   
    
    
 <o:p></o:p>
    
    
    
Reply to Sender   Recommend
    <o:p></o:p>
    
    
    
Message 1 in
    Discussion <o:p></o:p>
    
   
  
  
<o:p></o:p>
  
 
 
  
  
   
    
    
From: prasanth
    <o:p></o:p>
    
   
   
    
    
<o:p> </o:p>
    
    
hi,<o:p></o:p>
    
    
    
   I have a webform that is having 2
    dropdownlist which i need to populate values from the database.For the 2nd
    dropdown list i have to populate when ist dropdown value is changed.<o:p></o:p>
    
    
    
  I have populated 1st dropdown using a
    datareader.Now i have to populate 2nd one only when 1st dropdown value is
    selected.Please tell me how to do it.<o:p></o:p>
    
    
    
 <o:p></o:p>
    
    
    
Also can i use same command object,connection
    object for populating two dropdowns.<o:p></o:p>
    
    
    
 <o:p></o:p>
    
    
    
Thanks in advance<o:p></o:p>
    
    
    
Vishnu<o:p></o:p>
    
    
   
  
  
<o:p></o:p>
  
 





View other groups in this
category. 







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

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