Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET
Anyone plz give me the code for login in asp.net using c# in web matrix's cshtml extension.
Posted 15-Sep-12 22:33pm
Comments
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
good
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. (http://msdn.microsoft.com/en-us/library/ee377605.aspx)[^])
  Permalink  

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

  Print Answers RSS
0 Maciej Los 450
1 OriginalGriff 403
2 Sergey Alexandrovich Kryukov 239
3 CPallini 189
4 CHill60 180
0 OriginalGriff 6,092
1 Sergey Alexandrovich Kryukov 4,972
2 Maciej Los 3,269
3 Peter Leow 3,129
4 DamithSL 2,490


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

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100