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 23: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 OriginalGriff 325
1 DamithSL 265
2 CPallini 235
3 Maciej Los 190
4 Sergey Alexandrovich Kryukov 189
0 OriginalGriff 5,455
1 DamithSL 4,422
2 Maciej Los 3,860
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,010


Advertise | Privacy | Mobile
Web03 | 2.8.141216.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