Hello Friends, I have two DropDownList: 1) CollegeDDL which contains Four static names of the colleges. : Homeopathic Medical College,Physiotherapy College,Institute of Ayurveda,Institute of Business Administration


2) CourseDDL which is bound to CourseDetail.XML.
 
 
             Homoeopathic Medical College  
   BHMS                    
   MD(Repertary)          
   MD(Organon of Medicine)
   MD(Materia Medica)      

 Physiotherapy College  
 BPT          
                 BPT(Sports)  
                 BPT(Cardio)  

 Institute of Ayurved  
 BAMS          
         BAMS(Nature)  
                 BAMS(Plants)  

Institute of Business Administration
BBA
                DBM
                BBA(Distance)

---------------------------------
  CourseDetail.XSL
 

 

   
     
   

 


 
   
     
       
     
   

 

------------------------
I have bind Coursedetail.XML to CourseDDL and CourseDetail.XSL (No XPATH Expression)

After doing this, My CourseDDL is correctly filled with all the CourseName value of my XML file.
But now I want to filter the data bound to CourseDDL , based on College Name selected in CollegeDDL.

For Example:Currently my CourseDDL contains all the CourseName : BHMS,MD(Repertary),MD(Organon of Medicine),......,DBM,BBA(Distance).

But when I select "Homoeopathic Medical College" in CollegeDDL , The data bound to CourseDDL should filter accordingly.
It means when I select "Homoeopathic Medical College" , my CourseDDL should Display only that course: BHMS,MD(Repertary),MD(Organon of Medicine),MD(Materia Medica)

------------------------------------
I have tried the following , but could not achieve it.

1) XmlDataSourceCourse.XPath = "/Institutes/Institute[InstituteName='" + CollegeDDL.SelectedItem.Value + "']"

2) XmlDataSourceCourse.XPath = "/Institutes/Institute[InstituteName='" + CollegeDDL.SelectedItem.Value + "']/Course"

3)XmlDataSourceCourse.XPath = "/Institutes/Institute[InstituteName='" + CollegeDDL.SelectedItem.Value + "']/Course/CourseName"


Anybody please help to format correct XPATH Expression to achive this.