i have dynamic dropdown list in which list of car model,if i select one of the option from list then it will show list of that car model, but i get the value of the selected item but didnt get the list of car model,it show Count = 0,
Loading
i have dynamic dropdown list in which list of car model,if i select one of the option from list then it will show list of that car model, but i get the value of the selected item but didnt get the list of car model,it show Count = 0,
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sachin SinghPosted Mar 24, 2022, 4:40 AM
Sachin SinghPosted Mar 23, 2022, 8:18 AM
Guest UserPosted Mar 23, 2022, 8:01 AM
Sachin SinghPosted Mar 23, 2022, 7:52 AM
Guest UserPosted Mar 23, 2022, 7:43 AM
Sachin SinghPosted Mar 23, 2022, 7:32 AM
Guest UserPosted Mar 23, 2022, 7:19 AM
public static IEnumerable getUsedCarListByFilters(filters filter)();();
{
var parameters = new GeneralParameters();
parameters.FilterList = new List
parameters.SortList = new List
parameters.Paging = new Paging();
parameters.Paging.PageNumber = 1;
parameters.Paging.PageLines = 10;
parameters.SortList.Add(new Sort() { PropertyName = "createDate", SortType = "DESC " });
if (!string.IsNullOrEmpty(filter.brand))
parameters.FilterList.Add(new Filters() { PropertyName = " brand= '" + filter.brand.ToString() + "'" });
if (!string.IsNullOrEmpty(filter.model))
parameters.FilterList.Add(new Filters() { PropertyName = " modelType='" + filter.model.ToString() + "'" });
if (!string.IsNullOrEmpty(filter.variant))
parameters.FilterList.Add(new Filters() { PropertyName = " AND variant='" + filter.variant.ToString() + "'" });
if (filter.driven > 0)
{
if (parameters.FilterList.Count > 0)
parameters.FilterList.Add(new Filters() { PropertyName = " AND totalDriven<=" + filter.driven.ToString() });
else
parameters.FilterList.Add(new Filters() { PropertyName = " totalDriven<=" + filter.driven.ToString() });
}
if (!string.IsNullOrEmpty(filter.budgetRange))
if (parameters.FilterList.Count > 0)
parameters.FilterList.Add(new Filters() { PropertyName = " AND(expectedPrice>=" + filter.budgetRange.Split('-')[0] + " AND expectedPrice<=" + filter.budgetRange.Split('-')[1] + ")" });
else
parameters.FilterList.Add(new Filters() { PropertyName = " (expectedPrice>=" + filter.budgetRange.Split('-')[0] + " AND expectedPrice<=" + filter.budgetRange.Split('-')[1] + ")" });
if (!string.IsNullOrEmpty(filter.city))
if (parameters.FilterList.Count > 0)
{
if (filter.city == "All" || filter.city == "All City" || filter.city == "All Cities")
parameters.FilterList.Add(new Filters() { PropertyName = " AND saleCity IS NOT NULL" });
//parameters.FilterList.Add(new Filters() { PropertyName = " AND saleCity='" + filter.city.ToString() + "'" + " " });
}
else
parameters.FilterList.Add(new Filters() { PropertyName = " saleCity='" + filter.city.ToString() + "'" + " " });
if (!string.IsNullOrEmpty(filter.adType))
if (parameters.FilterList.Count > 0)
parameters.FilterList.Add(new Filters() { PropertyName = " AND adType='" + filter.adType.ToString() + "'" + " " });
else
parameters.FilterList.Add(new Filters() { PropertyName = " adType='" + filter.adType.ToString() + "'" + " " });
var _list = getList(parameters);
return _list;
}
Sachin SinghPosted Mar 23, 2022, 7:14 AM