asp.net-membership

ASP.Net MVC per area membership

I am building an ASP.Net MVC app that will run on a shared hosting account to host multiple domains. I started with the default template that includes membership and created an mvc area for each domain. Routing is set up to point to the correct area depending on the domain the request is for. Now I would like to set up membership speci...

What is the correct way of getting a membership provider where user id = email?

I want to implement membership where email is used as the user id. Is there a ready-made provider for this, or do I have to write my own one? Or should I just make do with the 'default' one? ...

Custom roles in ASP.NET

Hi, I am working on an ASP.NET website which uses forms authentication with a custom authentication mechanism (which sets e.Authenticated programmatically on protected void Login_Authenticate(object sender, AuthenticateEventArgs e)). I have an ASP.NET sitemap. Some elements must be displayed only to logged in users. Others must be disp...

How to incorporate jquery menu with asp.net membership

Hi guys, I am using Asp.net menu control for the web site that I am currently building and I am thinking to change to work with jQuery menu. So the current menu (Asp.net menu control) works with asp.net membership as many of knew.And the menu changed based on the role of the user who logged in. Is it possible to change the menu control ...

Assign a post to a user in ASP.NET Membership

I'm writing a forum in ASP.NET. I have a table of posts. How can I assign a post to a user? If I had a normal User table, I'd just creating a new field in the post table "UserId" and creating an assocation in the Linq to Sql designer. But now? Should I include the aspnet_Users in the designer? Thanks. ...

rename tablenames of asp.net administration tool's website

i have rename the table name of asp.net administration tool's website now its not working when i click on security it gives an error(invalid server name or credentials, or by insufficient permissions) so please let me know if any one have solution. ...

Application loses authentication when performing redirect to a virtual directory

I have the following setup: http://www.example.com/dir1/ and http://www.example.com/dir2/ Each virtual directory is configured on IIS6.0 as an application with own AppPool. When redirecting authenticated user from dir1 to dir2 using response.redirect I lose authentication information for the user and the user is being redirected to th...

Asp.net: Replace GenericPrincipal

Hello, I was wondering what the best way is to replace the genericPrincipal with my own CustomGenericPrincipal. At the moment I have something like this but I aint sure if it's correct. protected void Application_AuthenticateRequest(Object sender, EventArgs e) { HttpCookie authCookie = Request.Cookies[FormsAuthentication.FormsCook...

Custom provider ASP.NET Password Reset client.

I'm looking for guidence on writing a custom password reset UI, but it must fit the Provider 'Pattern', or degrade silently to built-in defaults. E.g. my Reset Control must collect extra information, and perform differently to the standard Password Recovery Control. It must close as possible use the standard MembershipProvider interfa...

ASP.NET MVC2 Custom membership

Is there any tutorial of how to create custom membership for asp.net mvc2 based on asp.net membership provider? Thanks in advance, Ile ...

Membership - get user email

I am using ASP.Net MVC2 with the default membership/profile/role providers, I'd like to access the user email in my ForgotPassword Action to email a new password to the user, but so far I've only been able to get the username (User.Identity.Name). Am I missing something here? ...

ASP.NET change logged-in user using Windows Auth without logging off PC?

How do I change who is logged in (allow for another user to login) to an application that is using Windows Authentication without having the PC user log off? ...

How to roll out a custom membership system in asp.net mvc

I've been reading about overriding the Membership Provider and the Role Provider. I think this is what you need to do when doing Asp.net Form projects. Is this also the way to go with Asp.net MVC projects or there is a better way to do so? Thanks :) ...

ASP.NET Membership - Login Control - TextBox Focus

I know this seems to be a very basic questions but I can't figure out how to give the textbox the focus on PageLoad. Since this is a Login Control, I have no individual control over each textbox thru code the way I am used to it. Does anyone happen to know how to give focus to the control please. Steve ...

Error: Only LDAP Connection Strings are Supported against Active Directory

I have the following ASP.NET Membership section defined in the Web.config file: <membership defaultProvider="AspNetActiveDirectoryMembershipProvider"> <providers> <clear/> <add connectionStringName="ADService" connectionUsername="umanage" connectionPassword="letmein" enablePasswordReset="true" enableSearchMethods="true" ...

ASP.NET Webforms Membership sample application

Is there a quickstart application sample that demonstrates using the Login controls, roles, profile and uses best practices? ...

ASP.NET MembershipProvider and StructureMap

I was using the default AspNetSqlMembershipProvider in my application. Authentication is performed via an AuthenticationService (since I'm also supporting other forms of membership like OpenID). My AuthenticationService takes a MembershipProvider as a constructor parameter and I am injecting the dependency using StructureMap like so: F...

How to work with a custom membership provider in silverlight?

Hello everyone! I am trying to make a silverlight application that uses RIA Services for authentication and databinding. That is, I'd like to be able to use the login/registration forms provided in the Business Application Template, and use the drag&drop features for displaying data in datagrid on pages. The data for the application (inc...

Get all roles - ASP .Net Membership

I have an ASP .net MVC 2.0 web site and I am using the membership provider to store users and groups. How do I get a list of all the roles? ...

Custom authentication doesn't work with asp.net 2.0

Hello I'm trying to upgrade my mvc 1.0 application that had a custom written login. I assign the authcookie like this: string _roles = string.Join(",", _ugr.GetUsergroupRoles(_username)); FormsAuthenticationTicket authTicket = new FormsAuthenticationTicket( 1, _username, DateTime.Now, DateTime.Now.AddHours(1)...