Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: ASP.NET
Anyone plz give me the code for login in using c# in web matrix's cshtml extension.
Posted 15-Sep-12 22:33pm
Sandeep Mewara at 16-Sep-12 11:24am
It does not work like this here.
Here is what is expected of enquirers:
1. TRY first what you want to do! You may find that it's not that hard.
2. Formulate what was done by you that looks like an issue/not working.

Try them and tell if you face issues.
Members will be more than happy to help like this.

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Well, no.
Because your question is too underdefined and there is nothing like "web matrix's cshtml". That one is the extension associated with Razor view engine[^] in ASP.NET MVC3[^] and above. And you will get nothing with just a login form. ASP.NET authentication[^] is more complex than that.
But if you start an MVC3 project in Visual Studio (not the empty project template), and you choose the internet site (form authentication), you will get a good sample. ([^])

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Advertise | Privacy | Mobile
Web02 | 2.8.140709.1 | Last Updated 16 Sep 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid