asp.net-membership

Adopting the "aspnet_ ..." sql tables from ASP.NET MVC

Hi everyone, I'm just starting a new project on ASP.NET MVC and this will be the first project actually using this technology. As I created my new project with Visual Studio 2010, it created to my sql server a bunch of tables with "aspnet_" prefix. Part of them deal with the built-in user accounts and permission support. Now, I want t...

ASP.NET Membership with two providers cant use GetAllUsers method

Hi, I'm using two membership providers. When I declared a following statement Dim allUsers As MembershipUserCollection = Membership.Providers("MembershipRoleManager").GetAllUsers Then, it gave me this error message. Argument not specified for paramenter 'totalRecords' of 'Public MustOverride Function GetAllUsers(pageIndex as Intege...

Is using Linq to SQL in a MembershipProvider implementation safe?

I'm creating a custom MembershipProvider for an ASP.NET MVC website, and I was planning on using LINQ to SQL for the internals, as I am for the rest of the website. Are there any issues with this, specifically any security issues it causes? ...

ASP.net roles and Projects

EDIT - Rewrote my original question to give a bit more information Background info At my work I'm working on a ASP.Net web application for our customers. In our implementation we use technologies like Forms authentication with MembershipProviders and RoleProviders. All went well until I ran into some difficulties with configuring the ...

Programmatically switch to CompleteWizardStep in CreateUserWizard control

How do I programmatically switch to the asp:CompleteWizardStep step in the OnCreatingUser event in the asp:CreateUserWizard control? ASP.NET web form <asp:CreateUserWizard ID="MyCreateUserWizard" runat="server" OnCreatingUser="MyCreateUserWizard_CreatingUser"> <WizardSteps> <asp:CreateUserWizardStep ID="CreateUserStep1" run...

Best database design approach to join complex data to ASP.Net Membership tables

I'm looking to use a slightly modified ASP.Net Membership Provider to handle the standard user account creation/authentication/etc in a website. We have a fair amount of legacy data that I need to migrate in order to provide continuity with our existing users' saved information (like order history, wishlist, etc). [NOTE: We have to mi...

Asp.net authentication for each client

Hey guys, I wanted some guidance on how to implement a custom membership provier to allow users to be authenticated for each client. Where a client can have many users, so the user will select a client and then authenticate against the client. I suspect I will need to create a customer membership provider and override this function: ...

Multiple ASP.NET forms for authentication

I have made a web application that uses master page for Login & Logout operation. For that purpose, I have used LoginStatus control in master page provided by ASP.NET. However, LoginStatus control needs to be used inside <form> tag as <form id="form1" runat="server"> <asp:LoginStatus ID="LoginStatus1" runat="server" /> </form> ...

What are the performance implications for delete an Specific Event Code in asp.net health monitoring with a trigger

I have created a trigger that looks for an specific code event and delete it; but since I am no expert in triggers I want to know if the below trigger may have bad performance implications. Thanks ALTER TRIGGER deleteSpecificEventCode ON dbo.aspnet_WebEvent_Events FOR INSERT AS DECLARE @DELETECODE INT SET @DELET...

How can I programmatically refresh my ASP.NET role memberships?

I'm using a custom role provider (written by another developer) that uses our active directory username (obtained from HttpContext.Current.User.Identity.Name) along with a SQL table. Anyways, when I update my SQL table to update my roles I need to close my web browser (Internet Explorer 7) in order for my new security to become effectiv...

CreateUserWizard - Preventing user creation if confirmation email cannot be sent

I am trying to fix the behavior of a CreateUserWizard control in ASP.NET 2.0. With a fairly naive, out-of-the-box implementation, if you enter an email address that does not exist, or there is some other error sending the email, you get a YSOD showing the ugly details of the SMTP error, plus the user account is created anyway. Handling t...

ASP.NET Membership.ValidateUser failing to connect to remote sql server

I've got an ASP.NET app that uses the standard SQL Server Membership provider to authenticate. Works fine with a local database (this is NOT SQL Svr Express!). When I try to authenticate against a remote database, even with correct connection string, I always get a 'Named Pipes Provider, error 40: Could not open a connection to SQL Serve...

ASP.NET MVC 2 - Membership Provider - ValidateUser() - return login error message

How do I return a string message from the ValidateUser method in my custom membership provider? I need this because I want to perform several checks (user is approved, user is blocked etc.) and give the user a good description, if the login process fails. One option would be to throw an exception, but someone said that this is not a pro...

Issues with storing the custom Principal in Session for ASP.NET MVC

I am running into an issue with ASP.NET MVC where it is forcing the user to log back in after about 20 mins of inactivity. I am using Forms Authentication and have increased the time-out in the config file as: <authentication mode="Forms"> <forms loginUrl="~/Account/LogOn" timeout="9999999" /> </authentication> I am also setting th...

is asp.net mvc + jQuery good fit for asp.net membership and complex GUI?

We're gonna build a line of business app, and do it using asp.net membership for security. What is your recommendation on building application that should be easy to maintain and as hopefully future proof? The idea being to have a really complex and customized user experience and hopefully basing it on existing third party components to...

Dropdownlist with Image beside each item

Hi, How can I have a small image beside each item of asp.net dropdown list. Regards ravi ...

Custom CreateUser method (with additional parameters)

Hello, i have implemented custom MembershipProvider and now i would like to use CreateUserWizard to create new users.. the problem is that i want to store in the db more information that normally (e.g. first and last name). There is function: public override MembershipUser CreateUser(string username, string password, string email, ...

how to get userid in membership?

i know how to get userid for a current user MembershipUser currentUser = Membership.GetUser(); Guid currentUserId = (Guid)currentUser.ProviderUserKey; But for my application i need to get userid of user who are not loginned in also. Because i need to assign the userid to different table which i m using. Thank you in Advance ...

Get rid of case sensitive username in custom membership provider

Hi, I implemented a custom membership provider in ASP.net MVC, and can't figure out how to make the username non case-sensitive at signin. So, for example, "Solomon" could log in, but "solomon" could not. My implementation is very bare bones. I basically just wrote code for ValidateUser(), and Change Password(). Thanks for the help!...

ASP.NET custom MembershipProvider

I have a client server application. The client is an asp.net c# site and the server is simply a command line application in c#. I plan on using .NET remoting to access and expose information that is on the server application and preset it to the user viewing the client. The server application has user objects that i want to use for aut...