Questions tagged [membership]

Queries regarding The fact of being a member of a group. OR The number or body of members in a group.

A member is a person who belongs to a social group or an entity such as a company or nation. By extension it can refer to any part of a whole.

969 questions
0
votes
1 answer

associate users with roles?

I have a database table containing members with roles, I have an action that uses [Autorize(Roles="admin")] my probleme is how to tell Asp.net MVC which member is associated with which role ?
Younes Ch
  • 325
  • 2
  • 4
  • 14
0
votes
2 answers

How to stop login button functionality when email id is wrong using regular expression validator

I am using login control in asp.net. I am logging in using the email id instead username. That is working fine. I am checking for the email id by using the control to validate the email id text box. I given…
Mihir
  • 8,696
  • 18
  • 56
  • 87
0
votes
1 answer

Silverlight 5 authentication

I am using Visual Studio 2012 and Silverlight 5. I created a Business Silverlight application. I am converting my asp.net app into Silverlight. I am using the same sql server database that the asp.net app uses. Both use Forms authentication. The…
0
votes
1 answer

Matlab - Trapezoidal membership function

I have used the trapezoidal membership function through matlab as shown here. I have written the following in matlab: >> x=1:5; >> y=trapmf(x,[1 3 4 5]); And, for y, I got the following results: >> y y = 0 0.5000 1.0000 1.0000 …
Simplicity
  • 47,404
  • 98
  • 256
  • 385
0
votes
1 answer

Wordpress Delay content being published to non-members

I have a wordpress site that uses the WPMU Membership plugin. I want to add code to my template that displays a new post to members 5 days before it is shown to non-members. Something like this: if (current_user_on_level(17) && CODE TO DETERMINE IF…
Sam Skirrow
  • 3,647
  • 15
  • 54
  • 101
0
votes
2 answers

Moving an asp.net application to membership model

I have used asp.net so far to create personal web applications, for example, an application where I maintain to-do tasks in an MS SQL Server database or a customer management and support system. I use the basic authentication via web.config where I…
user1917584
0
votes
1 answer

MVC4 Membership GETALLUSERS()

I'm totaly new to ASP.NET and have big issue with understanding how Membership.GetAllUsers work. At the moment im working with MVC 4 project. So, I have a task to make table of Users and their Role but I dont have a clue how to do this. I know that…
0
votes
1 answer

Reset Password Strategy

I have a custom Register form which includes a security question and answer - works fine. However, I have the following reset password logic which only works if the requiresQuestionAndAnswer property is set to false in my Web.Config file. Can…
IrishChieftain
  • 15,108
  • 7
  • 50
  • 91
0
votes
2 answers

Asp Net MVC - Membership full update or Controller checking for better performance?

Mates, to update an user profile, if the user wants to update just a single detail, lets say an email in my controller I am doing this: try { MembershipUser user = Membership.GetUser(model.UserName); user.Email =…
Guilherme Longo
  • 2,278
  • 7
  • 44
  • 64
0
votes
1 answer

FormsAuthentication is I'm not passing user but I am

I have this logon method: // POST: /Account/LogOn [HttpPost] public ActionResult LogOn(LogOnModel model, string returnUrl, string corpid) { var sb = new StringBuilder(); sb.AppendLine("Logon HttpPost start"); …
ErocM
  • 4,505
  • 24
  • 94
  • 161
0
votes
1 answer

SQL error after deploy ASP app

Hi I have the problem to successfully log in my application after deploy. I am using ASP MVC default login and membership provider and it is working on my localhost. But after deploy I am trying to log in, then error is shown. * A network-related…
Petr Pražák
  • 191
  • 2
  • 10
0
votes
2 answers

How do I expose the Authentication Token in MVC3

I currently have my Authentication Token in my Base Controller. Because of this and using the Membership API, I am having to call all my Repos in my Controllers. I would like to have exposure to these repos in my models, but need this token…
James Lee Baker
  • 797
  • 6
  • 9
0
votes
1 answer

Membership.CreateUser should fail but doesn't

I'm creating users for test purposes, using : string username = ... string password = ... string email = "******** not a valid email address! *********"; MembershipUser NewUser = Membership.CreateUser(userName, password, email, "no question", "no…
Chris
  • 167
  • 1
  • 7
0
votes
1 answer

Membership profiles in repeater

Frontend
user1497360
  • 37
  • 1
  • 5
0
votes
2 answers

Looking for MemberShip.GetAllUsers(startDate,endDate) functionality

I'm creating a user approval interface leveraging the .Net Membership class. I have a page that does a Membership.GetAllUsers(), and I spit the results to a datagrid. I filter them by MembershipUser.IsApproved. My Issue is due to slowness I'm…
madcolor
  • 8,105
  • 11
  • 51
  • 74