Skip to content
Loading
Active tab after click.  
  • }  
  •  Controller:
     
    1. [HttpPost]  
    2. public ActionResult AddMaterial(ItemModel model, string id)  
    3. {  
    4.     TempData["Selected"] = "2";  
    5.     TempData["Enabled"] = "0,1,2";             
    6.     id = Convert.ToString(TempData["NewID"]);  
    7.     ViewBag.ActiveTab = id;  
    8.     ////insert data into database part  
    9.     return new RedirectResult(Url.Action("FormRequest"new { id }) + "#tabs-2");  
    10. }