Click here to Skip to main content
15,887,939 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: string format on decimal value Pin
Arun.Immanuel15-Apr-07 3:37
Arun.Immanuel15-Apr-07 3:37 
AnswerRe: string format on decimal value Pin
RaghuSanta15-Apr-07 21:40
RaghuSanta15-Apr-07 21:40 
GeneralRe: string format on decimal value Pin
firestoper1-May-07 20:04
firestoper1-May-07 20:04 
QuestionEvaluating contents in database text fields inserted into page/user control Pin
ceeez13-Apr-07 15:56
ceeez13-Apr-07 15:56 
QuestionGrab data from table Pin
hahii13-Apr-07 11:16
hahii13-Apr-07 11:16 
AnswerRe: Grab data from table Pin
enjoycrack13-Apr-07 14:02
enjoycrack13-Apr-07 14:02 
QuestionWeb service throwing null reference suddenly Pin
Master Toothless One13-Apr-07 11:03
Master Toothless One13-Apr-07 11:03 
QuestionHelp with Implementing custom MemebershipProvider Pin
Taurian11013-Apr-07 10:54
Taurian11013-Apr-07 10:54 

I needed to implement a custom MembershipProvider cuz we already have a database with user information in it; also I need to get a list of users. In my DAL I have a method that I can call which will populate the business entity and returh a List<>. However since I am using MembershipProvider I thought I should use the Memebership.GetAllUsers() method to do the same.

Do you think that the following implementation is acceptable or is it a programming NO NO...?

<font size="2"><FONT size=2> public override MembershipUserCollection GetAllUsers(int pageIndex, int pageSize, out int totalRecords)</FONT> 
{
<FONT size=2> List<UsersEntity> users = DAL.GetUsers();</FONT> 
<FONT size=2> 	foreach(UserEntity user in users)</FONT> 
	{
<FONT color=#008080 size=2>		MembershipUser</FONT><FONT size=2> members = </FONT><FONT color=#0000ff size=2>new</FONT><FONT size=2> </FONT><FONT color=#008080 size=2>MembershipUser(</FONT><FONT size=2><SPAN style="COLOR: blue">this</SPAN>.Name,
                                            user.username,
                                            user.providerUserKey,<FONT color=#008080 size=2>/*I dont have this in my database*/</FONT>
                                            user.email,
                                            user.passwordQuestion,
                                            user.comment,<FONT color=#008080 size=2>/*I dont have this in my database*/</FONT>
                                            user.isApproved,<FONT color=#008080 size=2>/*I dont have this in my database*/</FONT>
                                            user.isLockedOut,
                                            user.creationDate,
                                            user.lastLoginDate,
                                            user.lastActivityDate,
                                            user.lastPasswordChangedDate,
                                            user.lastLockedOutDate<FONT color=#008080 size=2>/*I dont have this in my database*/</FONT>);
</FONT><FONT size=2></font>

	}

}
Can you tell me what I need to to do about the fields that I donot have in my database? Do I need to update the database? or should I just pass in a null or String.Empty or something like that? Please help.
AnswerRe: Help with Implementing custom MemebershipProvider Pin
Chetan Ranpariya20-Apr-07 0:04
Chetan Ranpariya20-Apr-07 0:04 
QuestionHow to add control at run time and handle it Pin
Sujit Gupta13-Apr-07 9:25
Sujit Gupta13-Apr-07 9:25 
AnswerRe: How to add control at run time and handle it Pin
il_masacratore13-Apr-07 21:13
il_masacratore13-Apr-07 21:13 
GeneralRe: How to add control at run time and handle it Pin
shabonaa14-Apr-07 7:40
shabonaa14-Apr-07 7:40 
GeneralRe: How to add control at run time and handle it Pin
Sujit Gupta14-Apr-07 7:50
Sujit Gupta14-Apr-07 7:50 
GeneralRe: How to add control at run time and handle it Pin
Arun.Immanuel15-Apr-07 3:52
Arun.Immanuel15-Apr-07 3:52 
QuestionAsp.Net Problem Pin
Ajeet mittal13-Apr-07 8:49
Ajeet mittal13-Apr-07 8:49 
AnswerRe: Asp.Net Problem Pin
enjoycrack13-Apr-07 14:05
enjoycrack13-Apr-07 14:05 
AnswerRe: Asp.Net Problem Pin
Christian Graus13-Apr-07 20:14
protectorChristian Graus13-Apr-07 20:14 
GeneralRe: Asp.Net Problem Pin
Atif Ali Bhatti14-Apr-07 12:29
Atif Ali Bhatti14-Apr-07 12:29 
QuestionDropdown lists Pin
hahii13-Apr-07 8:19
hahii13-Apr-07 8:19 
AnswerRe: Dropdown lists Pin
Sujit Gupta13-Apr-07 9:14
Sujit Gupta13-Apr-07 9:14 
QuestionStoring User Information Pin
packerfan190413-Apr-07 6:01
packerfan190413-Apr-07 6:01 
Questionin multiview Pin
prabhu dot net13-Apr-07 4:26
prabhu dot net13-Apr-07 4:26 
QuestionExporting an ASP.NET table to Excel Pin
Rohde13-Apr-07 4:13
Rohde13-Apr-07 4:13 
AnswerRe: Exporting an ASP.NET table to Excel Pin
RichardGrimmer13-Apr-07 5:09
RichardGrimmer13-Apr-07 5:09 
GeneralRe: Exporting an ASP.NET table to Excel Pin
Rohde13-Apr-07 8:33
Rohde13-Apr-07 8:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.