Author: susain | Posted on: 2/15/2010 6:35:29 AM | Views : 265

Hi Friends.,
I need to change the select statement based on selected value == Other.
I have tried the below code. It is not working.
public CascadingDropDownNameValue[] GetValues(string knownCategoryValues, string category) { int id; StringDictionary Values = CascadingDropDown.ParseKnownCategoryValuesString(knownCategoryValues); id = Convert.ToInt32(Values["title"]); con = new SqlConnection(connectionString); string get_Qry = "select * from tbl"; if (compare id of Other title) { get_Qry += " where relatedto_title = 'Other"; // fetched activities related to other title } }
 
Please help me.
 
Thanks,
Mohammed Farooq 
...

Go to the complete details ...