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

New Message on BDOTNET

-----------------------------------------------------------
From: prasanth
Message 3 in Discussion

hi pushpa, Here is the indexchanged event for 1 st dropdownlist   
private void ddlAffiliate_SelectedIndexChanged(object sender, System.EventArgs e) 
{ 
cmdAffiliate.Connection=conAffiliate; 
conAffiliate.Open(); 
cmdAffiliate.CommandText="select JobName from tblTaskTemplate t,tblAffiliate a where 
a.ID=t.Affiliate_ID"; 
SqlDataReader drTemplate=cmdAffiliate.ExecuteReader(); 
DropDownList1.DataSource=drTemplate; 
DropDownList1.DataTextField="JobName"; 
DropDownList1.DataBind(); 
drTemplate.Close(); 
conAffiliate.Close(); 
 
} 
For poulating 1st dropdown i have written code in page_load event. 
Now tell me how to diaplay the 2nd dropdown when 1st dropdown value is changed. 
bye 
vishnu

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

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