Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7570973
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T15:33:10+00:00 2026-05-30T15:33:10+00:00

I want to make Login page by using LINQ. Can I use [Authorize] on

  • 0

I want to make Login page by using LINQ.
Can I use [Authorize] on controller? or How can I make authorization through database?
I want to make custom login page without web site administration tool because it does not provide more details.
Could you help me? I am really beginner MVC 3.
Please give your hands. Thanks.

Here is my Customer table. Can I use this table for authorization?
Thanks

public class Customer
{
    [Key] public int customerId { get; set; }
    public Boolean admin { get; set; }
    public String userName { get; set; }
    public String password { get; set; }
    public String firstName { get; set; }
    public String lastName { get; set; }
    public String company { get; set; }
    public String address { get; set; }
    public String postCode { get; set; }
    public String email { get; set; }
    public String phone { get; set; }
    public String sortCode { get; set; }
    public String accountNo { get; set; }
    public String cardHolder { get; set; }
    public String cardNo { get; set; }
    public int securityCode { get; set; }
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T15:33:11+00:00Added an answer on May 30, 2026 at 3:33 pm

    Yes you can use [Authorize] on your controller, or on individual actions to force the user to be authorized in order to use them.

    As you say you are new to MVC, I’d suggest that you have a look at the tutorials on the ASP.Net MVC web site. I believe The MVC Music Store example show you how to implement authorization etc.

    You can also have a look at the Nerd Dinner project, which is a great way to get started and to have something that is working to play around with and to learn from.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to make a login system using cookies/sessions but I'm not sure what
I am using Yii framework and I want to make a registration page. I
I want to make a login system using ASP.NET (MVC). On the internet, I
Well, I want to login using cURL on some page. When i paste this
I want to make a login to twitter by myself programmatically. Is it possible
I want to make a program in C# which will go/login and do stuff
I want make datetimepicker in my project. Using jquery how it is possible? I
I want make interactive application where user launches it and can do various task
I am traversing a HTML document using javascript DOM. I want make a list
hey all i want to make an auto login after successful registration in spring

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.