Thank you for your excellent suggestion. I will try it at my client's site.
Click "Mark as Answer" on the post that helped you.
This earns you a point and marks your thread as Resolved so we will all know you have been helped.
FAQ on the correct forum http://forums.asp.net/p/1337412/2699239.aspx#2699239
Does the ASPNET membership provide any facility for a user to update their email address or does it require directly updating the Email and LoweredEmail columns in aspnet_Membership by custom stored procedures and code?
Click "Mark as Answer" on the post that helped you.
This earns you a point and marks your thread as Resolved so we will all know you have been helped.
FAQ on the correct forum http://forums.asp.net/p/1337412/2699239.aspx#2699239
I need to be able to block non-admins from using the site by an administrator making a change within the database and not by changing the web.config in the users folder. Conversely when the lock-out period is over, the administrator needs to be be able to allow
normal user access to resume just by means of an administrator option. The site administrators are quite non-technical and hence changing any of the sub-directory web.configs is not an option.
I could not understand:
- why through making change in the database?
- why subdirectory web.config?
I could not understand:
- why through making change in the database?
- why subdirectory web.config?
There are periods of operation when only administrators should have access to the site. At the end of this period, normal operation needs to be restored without making any change other than the in the database.
Click "Mark as Answer" on the post that helped you.
This earns you a point and marks your thread as Resolved so we will all know you have been helped.
FAQ on the correct forum http://forums.asp.net/p/1337412/2699239.aspx#2699239
TATWORTH
All-Star
72415 Points
14017 Posts
MVP
Re: Login control FAQ :
May 24, 2009 08:15 AM|LINK
Anas
Thank you for your excellent suggestion. I will try it at my client's site.
This earns you a point and marks your thread as Resolved so we will all know you have been helped.
FAQ on the correct forum http://forums.asp.net/p/1337412/2699239.aspx#2699239
swapnal
Member
66 Points
20 Posts
Re: Login control FAQ :
May 26, 2009 12:37 PM|LINK
Hi
Nice post.
need one more piece of information, How to achive single sign on using form authentication?
Thank you
Regards
swapnal R. chonkar
TATWORTH
All-Star
72415 Points
14017 Posts
MVP
Re: Login control FAQ :
Jun 25, 2009 02:08 PM|LINK
Does the ASPNET membership provide any facility for a user to update their email address or does it require directly updating the Email and LoweredEmail columns in aspnet_Membership by custom stored procedures and code?
This earns you a point and marks your thread as Resolved so we will all know you have been helped.
FAQ on the correct forum http://forums.asp.net/p/1337412/2699239.aspx#2699239
anas
All-Star
73649 Points
7914 Posts
Moderator
Re: Login control FAQ :
Jun 25, 2009 02:42 PM|LINK
Hi ,
You can use Membership.UpdateUser method to update the user information:
MembershipUser muser = Membership.GetUser("UserName here"); muser.Email = " the new email here"; Membership.UpdateUser(muser);rtpHarry
All-Star
56620 Points
8958 Posts
Re: Login control FAQ :
Jun 25, 2009 08:55 PM|LINK
There are several ways to solve this and it changes depending onyour exact setup.
Searching for "asp.net single sign on" will show you lots of introductory tutorials that outline the concept.
This tutorial will teach you the remaining details that you need to get any combination of SSO working:
jitendramcu
Contributor
2782 Points
459 Posts
Re: Login control FAQ :
Sep 08, 2009 10:14 AM|LINK
This is really nice tutorial for secure login. I need help regarding how to use role and membership in asp.net without using aspnet.mdf.
asp with c#.net
-----------------------------------------------
Jitendra Kr.
http://jitendra-aspnet.blogspot.com/
AvanthaSiriw...
Participant
863 Points
211 Posts
Re: Login control FAQ :
Sep 08, 2009 11:15 AM|LINK
Yes you can have your customized way of handling it. if you want to have it in your way, try to have a customized database.
Eg: here is a very simple example for you to get an idea..
User table has userid, username and etc
Role table has role id and etc
user_role table has userid, roleid and etc
LinkId
Visit My MCTS Sharepoint 2010
rtpHarry
All-Star
56620 Points
8958 Posts
Re: Login control FAQ :
Sep 08, 2009 02:51 PM|LINK
Hey,
Yes instead of using the basic database in app_data you can use sql server.
To setup asp.net application services on sql server you can use aspnet_regsql.exe.
I have written a tutorial for doing it via the commandline here:
however you might just want to run the app directly and use the visual windows wizard front end.
guenavan
Contributor
4306 Points
1695 Posts
Re: Login control FAQ :
Nov 22, 2009 07:49 PM|LINK
I could not understand:
- why through making change in the database?
- why subdirectory web.config?
There are solutions for taking website available only to administrators:
http://aspnet.4guysfromrolla.com/articles/110707-1.aspx
http://www.west-wind.com/WebLog/posts/6397.aspx
TATWORTH
All-Star
72415 Points
14017 Posts
MVP
Re: Login control FAQ :
Nov 23, 2009 04:58 AM|LINK
There are periods of operation when only administrators should have access to the site. At the end of this period, normal operation needs to be restored without making any change other than the in the database.
This earns you a point and marks your thread as Resolved so we will all know you have been helped.
FAQ on the correct forum http://forums.asp.net/p/1337412/2699239.aspx#2699239