I have a list of actionlink in my navbar like this
now i need to retrieve the link text in my controller to allocate some value in a property by comparing the value of the link text like this
C#
[HttpGet] public ActionResult Index()C#
{C#
Profile profile = new Profile();C#
if(linktext=="Customer Profile")C#
{C#
profile.cust_supply_cat_id = 1;C#
}C#
else if (linktext == "Supplier Profile")C#
{C#
profile.cust_supply_cat_id = 2;C#
}C#
else if (linktext == "Publisher Profile")C#
{C#
profile.cust_supply_cat_id = 3;C#
}C#
return View(profile);C#
}How can i do it?
or if you get the idea what are the possible ways to do that??

Sankara Krishnan VenugopalRank #833 · 2.7K reputationPosted May 19, 2018, 12:19 AM EDT