Saturday, March 24, 2012

question about ListSearch tool

Hi,I have a problem with ListSearch tool ,when i find the word in the list i need save this word in a variable but no value save in my variable how can do this ??!!!

when i use DropdownList.selectedItem or value my variable is null ,

protectedvoid DropDownlist1_SelectedIndexChanged(object sender,EventArgs e)

{

string Var = DropDownlist1.SelectedItem.ToString();

}

please help me...Tongue Tied

thanks

Have a look here:http://www.asp.net/learn/ajax-videos/video-142.aspx for how to use the ListSearch control.

-Damien


Thanks from your answer... i look this video but ...this can't help me because i need the value of selected item of DropDownList but when i return this value,it is null and the selected index= 0 how can solve this problemt ...Thanks


In this video if you return selected value of dropDownList, the value is 'Alfa' for all of your selection (Sample for ListSearch Ajax) and the selected index=0 for all of selection this problem create when i bind an array list to dataSource of DropDownList ,i delete ListSearch tool from my form but this problem dont solve how can solve it...??

No comments:

Post a Comment