Change HtmlForm action in C# ASP.NET 3.5

后端 未结 6 1325
醉酒成梦
醉酒成梦 2021-01-18 15:11

I have a form as

When accessing in C# code-behind via



        
6条回答
  •  醉梦人生
    2021-01-18 15:51

    May be you can try redirecttoaction

    Here is sample

    public ActionResult LogOff() {
    FormsAuth.SignOut();
    return RedirectToAction("Index", "Home");
    }
    

    Hope this helps.

提交回复
热议问题