English 中文(简体)
Tips for creating an admin login for a client s website
原标题:

I m creating a website for a real estate firm. Looking great, but the last component is to create an admin login for my client so he can login and add/remove real estate properties he has to sell. I plan to store his entries in a database file. The entries will be displayed in a web control on a public page which will be bound to the DB.

How do I best create a login considering it is an ASP.NET 3.5 website? I do not [yet] know PHP, and I read some MSDN stuff on creating roles & members and it seemed like a bit much considering I just want one admin login for my client.

Any tips, recommendations?

最佳回答

If you make a membership provider, you can use the standard login-controls that are included in the toolbox!

check out this: http://www.devx.com/asp/Article/29256 and this: http://msdn.microsoft.com/en-us/library/f1kyba5e.aspx . Then, check out this: http://msdn.microsoft.com/en-us/library/f1kyba5e.aspx for how to use the login control.

问题回答

Create a login table with validation functions (DON T store passwords in plain-text - use md5)

Add a login control on a backend page where you expect him to log in.

Around "Admin" type functionality create an "IsLoggedIn()" function that only displays admin stuff if the user is logged in.

You might want to verify with the client that the only login type will be an admin login type so that you don t have to go back later and redo everything with account types and other privileges and such.





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Transaction handling with TransactionScope

I am implementing Transaction using TransactionScope with the help this MSDN article http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx I just want to confirm that is ...

System.Web.Mvc.Controller Initialize

i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...

Microsoft.Contracts namespace

For what it is necessary Microsoft.Contracts namespace in asp.net? I mean, in what cases I could write using Microsoft.Contracts;?

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签