Click here to Skip to main content
16,018,525 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How do i create a CRUD for registration model in asp.net? The default entity of the registration is username, password and comfirm password. But i added some entity like first name, last name, country and telephone. Now, my question is how will i edit the newly added entities in the registration model? I have searched but it has no CRUD. Pls, help me out as that is what i want to use as "Edit profile"
Posted
Comments
F-ES Sitecore 20-Mar-15 9:10am    
asp.net doesn't have a registration model, so you'll need to say what it is you're using. Are you using ASP.NET Membership? Are you using Identity? Something else? If Membership or Identity then google for how to implement custom profiles and that should get you the code you need, and you can access the profile data via the API without needing CRUD.

1 solution

there are n number of ways by which you can do it.
first register yourself with whatever the fields of your choice then keep a module for manage profile where you can edit your phone,company,Fname,Lname etc..

Let me know if this clarify your doubts otherwise we can have a discussion.
 
Share this answer
 
Comments
[no name] 20-Mar-15 11:10am    
Debasish, i thank you for your understanding as that is exactly what i need. But the problem is, i dnt even know how to go about it. I'm new to c# and asp.net. Should i create another class file to manage the profile? Please, help me out.
Thanks
[no name] 4-May-15 14:44pm    
Hello, please i want to edit my profile. With linq i can query the database to retrieve the profile details but when i click on edit, it simply gives an error. The url is displaying "profile/edit/1" but its like that pattern doesn't work since in my index i changed it to not return a list. Below, is what i have tried:
public ActionResult Index()
{
var spc = (from d in db.profiles.ToList()
where d.username == User.identity.Name
select new profile()
{name = d.name,
// other properties
});
return view(db.profile.ToList());
}

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900