Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Anyone plz give me the code for login in asp.net using c# in web matrix's cshtml extension.
Posted
Comments
Sandeep Mewara 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

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. (http://msdn.microsoft.com/en-us/library/ee377605.aspx)[^])
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900