views:

139

answers:

1

How can I create a login partial view in MVC 2.0?

I want to include this in several masterpages in my site since I can't use the login control in MVC.

What code do I put in the controller which will accept the username and password?

A: 

The default MVC project creates one for you. Just install MVC and create a MVC project. It will have a Master page, with a login partial view already created.

Ten Ton Gorilla