noscript
noscript

Reputation: 77

How to edit users in ASPNETDB.MDF

Hey I am wondering how I can edit users stored in ASPNETDB.MDF I am using ASP.Net 4 / Visual Studio / SQL Server.

I can set a gridview to show the users, but cannot directly edit them. I will be wanting to deploy this, and then assign permissions to users (Moderator etc) as well as have the ability to disable accounts etc.

Or is there a way to use ASP.Net Website Administration Tool from a live website?

Any ideas would be greatly appreciated!

Cheers

Upvotes: 3

Views: 6008

Answers (4)

Kirill
Kirill

Reputation: 3088

This tutorial will help you start with creating an interface for user management tasks on your web-site.

With this tutorial you can feature your user management further.

Upvotes: 0

Wyatt Barnett
Wyatt Barnett

Reputation: 15673

As Maysam points out, you should not modify these things directly via any SQL tool but rather use the Membership API. A quick and easy way to get there would be the MVC Membership Starter Kit.

Upvotes: 1

Maysam
Maysam

Reputation: 7367

You should use server side code to deal with them by using Membership. Take a look at http://msdn.microsoft.com/en-us/library/yh26yfzy.aspx

Upvotes: 1

Wil
Wil

Reputation: 2358

When you open the solution in Visual Studio, the DB should show up in your App_Data folder. If it's not there, make sure show all files is checked. You should be able to double click it to open up the database in Server Explorer and edit the tables directly

Upvotes: 2

Related Questions