Hi,This is a very simple solution:
first you need a store proc. to send username and password to data base,
Considering that you have a table like users.it must have a column like usertype!
something like this:
CREATE PROCEDURE [dbo].[Users_login]
(
@Password nvarchar (16) ,
@Username nvarchar (32)
)
AS
SELECT Usertype,Password,Username FROM Users u
where Username=@Username and
u.Password=@Password
;
RETURN
Depending on the type of the user(returned by the first store proc) you can redirect each user to specific page or you can configure a single page to handle all users(not recommended) like:
<%= if(_isSuperAdmin) { %>
<div>
some data that only admin is allowed to see
</div>
<% } %>