@{ var str = "Shoes"; }
<a href="~/Home/Products_By_Category/@str" target="_parent"> <input type="button" value="Shoes" class="btn"/> </a> <pre lang="c#"> public ActionResult Products_By_Category(string s) { ViewBag.category = s; return View(); }
<input type="button" name="button" value="Shoes" class="btn" />
public ActionResult Products_By_Category(string button)
<a href="@Url.Action("Products_By_Category","Home",new{s=@str})" target="_parent"> <input type="button" value="Shoes" class="btn"/> </a>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)