Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I have attached page here and want to do filter by click on "Find Car". On the click my page redirects to the next page of vehicles with those given filter result. But I am confused how would I redirect my page with these data in umbraco. Please help me out its urgent.
You can pass URL parameter values to your tracking destination URL and from there you can easily get the value of those parameters in your template or even in partial view or macro.
Hope this will help,
Thanks @Ronak panchal I have get those values on another page. Now I wan to comapre it with my query. But I was not able to pass it in this given below query. Please help me out.
var Id = Request.RawUrl; //Gets value from url
var tempID = Id.Split('?').Last(); //splits unnecessary characters
string data = tempID.Split('&');
string maker = data.Split('=').Last();
string body = data.Split('=').Last();
string keyword = data.Split('=').Last();
var selection = Umbraco.Content(Guid.Parse("3758071d-10c8-4890-b680-64f43a7b4149"))
.Where(x => x.IsVisible())
.OrderByDescending(x => x.Id);
//var workcollection = selection.Where("");
Just debug that code and check what you got in a variable selection,
Probably you can search for the properties in for each item and make LINQ query to filter the list as you did for getting items in the selection.
The second way, you can make a new class and make a new method for filter those data according to parameters and return list( filtered ) and just traversing that returned filtered in view to display filtered result.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted