ASP.NET MVC 1.0 Controller Action With Same Signature -


Basically I have an index method in my User Controller CCS Class that gives ActionResult to display the dashboard for the user. There is an HTML button with a type of submit on this page. When I hit this button I want to capture it on the server side, the user wants to log out.

How can I do this since I am not returning information and the legal sign is ending.

Thank you,

Mike

[Authorized] Public Performance Index () {Return View (); } [Authorize] [AcceptVerbs (HttpVerbs.Post)] Public Performance Index () {FormsAuthentication.SignOut (); Redirect Action ("Index", "Home"); }

Use:

  [Authorize] ] [Accept Works (HTTPVirbbs.post)] Public ActionRashout Index (Form Collection Value) {Forms Authentication. Signature (); Redirect Action ("Index", "Home"); [AcceptVerbs (HttpVerbs.Post), ActionName ("Post")] Public Performance Index Post () {FormsAuthentication.SignOut () ; Redirect Action ("Index", "Home"); }  

Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -