You need to evaluate the value of the element, not the element itself
var el =
from wards in doc.Elements("wards").SelectMany(e => e.Elements("municipality"))
where wards.Value == DropDownList3.Text
select wards.Parent;
Keep in mind xml is case sensitive so MUNICIPALITY is different than municipality