Retrieve Regeistered users info - asp website - asp.net

i have created an intranet website using visual studio(c#) , i have published it as well and it works fine . the website has a registration page and lets user to create accounts , my problem is whenever someone registers in website , i would like to see the list of registered users and assign them permissions(member , guest , admin etc) so that not everyone who register can see the protected content
how do i do this , do i use visual studio's ASP.NET CONFIGURATION PAGE for this?
am a complete beginner in asp , can some one please guide.

You can accomplish this by using roles in .Net. When a new user is created just have them have a default role of guest. Then you can create a notification that gets triggered by a new user registration such as an email, then you can review the list of users and edit a user to have a specific role.
Documentation can be found here - http://msdn.microsoft.com/en-us/library/5k850zwb(v=vs.100).aspx

Related

adding an admin user to my web application asp.net

Visual studio 2015 has a pre-built user registration/login page, I need to make an "admin" account that has access to an admin only page within the web app to enter in data to be stored to the database. I just dont know where to begin to add an account and give it write access. Would anyone happen to have knowledge on the pre-built registration and where I add an admin user and give them the ability to view a unique page but not let anyone else view it?
For VS 2015 - In case of ASP.NET Web Page, you can use user id and its role during Page Load. If the Access Right is not valid, then return to Error Page.
In case of ASP.NET MVC, you can define Custom Attribute using ActionFilterAttribute in controller class ActionResult of the View.
Pre-built Registration works well for both Web Form and MVC Templates provided in VS 2015. For more information - please check AspNetUsers table in Sql Database created.
Please read more details here

get user login info in ASP

I am developing an ASP website, which requires users to log in. it's a website application which enables them to create and submit invoices for the work (writing), the invoice creating process needs the user login info in order to make the invoice. How do you get the info of the logged in user to use it in your ASP or C# code? please help thanks
httpContext.Current.User.identity
see documentation for full explanation
http://msdn.microsoft.com/en-us/library/system.web.httpcontext.user(v=vs.110).aspx

Have more than one user registration page for Drupal 6

I currently have an iOS app that is built and functioning except for one slight problem. I would like to retain CAPTCHA whenever an anonymous user creates an account via the web (using Drupal's user registration form). However, I would like to have another URL that houses the same Drupal registration form (without CAPTCHA) so that users can create an account from within the iOS app (app connects to Drupal site using Drupal iOS SDK and userRegister function).
Is this possible in Drupal 6? Is there a way to clone the user_register form such that the original form has CAPTCHA and lives at mysite.com/user/register whereas user_register_clone form does not have CAPTCHA and lives at mysite.com/user/register/mobile?
Thanks in advance and have a great day/night!!!!
In the autoassignrole (http://drupal.org/project/autoassignrole) module there is a clear example of cloning the user register form and creating a register process in a different page than register.
The module assign user roles based on the path the user is creating the account from.
So you could check the module's code for examples.

Asp.net /sharepoint server 2010 integration

We have a asp.net application. Would like to integrate with sharepoint issue tracking application we are building.
We would like customer to login in asp.net application and when a link is clicked, it should pass login and other info (like customer id) and display a new issue list so that they can enter rest of information and submit.
Any ideas how to accomplish this?
Thanks
They have to share the membership provider , using the FBA within SP2010.
Here is a Walkthrough http://blog.sharedove.com/adisjugo/index.php/2011/01/05/writing-a-custom-membership-provider-and-using-it-for-fba-forms-based-authentication-in-sharepoint-2010-from-the-scratch/
Then make a custom Form for the Issue reading the Session varialbles to fill in the Form.

Unique web site administration tool

i'd like to create a Unique Web Site Administration Tool (UWSAT) to admin all users for all my websites on production server.
Basically the idea is to have the UWSAT with only an admin user; when the admin log the tool he could navigate the applications, select one and see its users . He could add new user to an existing application, or create a user specifying a new application name (as far as i know that create the application too).
The problem i'm facing is that to add a user to an application i have to set the Membership.ApplicationName but i read this should be avoided.
So i ask you : should i create a different MembershipProvider for each application and call it when i have to manage users for that application?
Thanks.
I recommend creating a role, and assigning it to the users. The role would be the application they should have access to.
The RoleProvider is one way to do this.

Resources