Is there a ready UI to edit DB tables in ASP.NET? - user-interface

Is there an EASY way to build a DB table editing Web UI?
In Django there is /admin/ interface that allows editing the data in the DB. In ASP.NET?

Related

How to implement role based authorization in asp.net mvc3

I'm working on a school project and I need to implement Role-based authorization in an ASP.NET mvc3 application. Currently the application only stores the user's role in a field in the database and there is only one login page. I need to alter the entire application in other for it to grant different content to different users including admin, supervisor and counselors (counselors are able to input new client info and edit and view client information that they inputted. Supervisors can view and edit all client info and also view and edit counselor info. Admin has crud access to everything on the application.)
I'm not sure about what other info to provide about the application but i'll really appreciate any help i can get as i am new to ASP.net mvc as a whole. Most of the tutorials i found focus on specific piece of the role based approach. I need more of a bottom-up approach to implementing the roles and its authorization.
Take a look at ASPNET configuration tool. I believe that it's what you're looking for:
Visual Studio 2013 and ASP.NET Web Configuration Tool
http://msdn.microsoft.com/en-us/library/yy40ytx0.aspx

MVC can not log on online

I'm learning how to write simple websites with MVC 3. I have a little problem with loging on to my website. I created an account via ASP.Net Configuration site and there is no problem to log in unless I try to do this not on localhost. When I use log in form on my published online site, it takes a while and redirecting me to /shared/error. What did i wrong? Maybe I forgot about some libraries? I use default Account system, just this one which is created in new Web App project.
What are you using for persistence on the server? the ASP.Net Configuration is creating a user account in a database. If you don't explicitly specify a database, one is created for development purposes for you, but it is not copied to the server.
Also, there are some tables inserted into the database for you by the ASP.Net Configuration site for supporting users, roles, etc. These tables would need to be created on your server. see Creating the Membership Schema in SQL Server
If possible, you should consider MVC 4 instead of MVC 3, since the pre-built templates for it use Simple Membership instead of the full featured ASP.net Membership providers. Simple Membership uses only a few tables, and the views and stored procedures have been removed.

Altering registration database mvc3

new here and pretty new to mvc and visual studio also. My query is this: in a mobile based web application project; i wish to have newly registered users store their geolocation on bing maps alongside their details and regularly update-able offers.
I then need users of the site that do not register to be able to view these locations and details based on their own coordinates. Can i add tables to the existing registration and login database and query everything from there or do i need to create another database?
i am using visual studio 2012 express and mvc3
sorry if this is a bit vague...

How to notify a web browser from web server in ASP.Net?

I have an ASP.Net MVC 3 web application in which an administrator can assign tasks to individual users. Individual users monitors some stats by looking at a dashboard page built in the same application. My requirement is, I want to notify the individual user whenever a new task is assigned to the user. Is it soemthing which can be achieved in the web application built on .net technologies?
You can use jquery to auto refresh.
Auto refresh a section of the page that loads from the database
Jquery auto refresh Tutorial

User authentication using Entity Framework in ASP.NET MVC 3

I have an exisiting database which I used to create a Model usign the Database first approach. Please refer to the database diagram.
In my solution file, I have a Class Library of the model which has an ADO.NET connection to the database & and I a ASP.NET MVC 3 web application.
The funcitonality that I'm trying to get here is that - the information displayed once a user logs in is different for every user. How do I link the user login page to the 'user' table of the database? Is it directly using the connection string or do I need to go through the model that I created using the Database?
Add a field to your User table called "ProviderUserKey" or MembershipUserID, or something similar of type uniqueidentifier. You then call Membership.GetUser().ProviderUserKey and use that in your where clause of your User Table to select the correct User record based on the logged in user.

Resources