Quote:
Let I m trying to develop as same type webapplication for a shop... So i m asking that how can i create this application using database. or any methood..bt values(product details) are changeable at any time by owner of any shop(which is non technical person hw can i create this..Can u help me..).
Basically you are looking for
User Roles Based Privileges.
That means you have to give certain users certain
Roles, so that you can give them access to
Edit or
Update any record.
You can use the same
Grid which is showing the Product details. Only thing you need to check is whether the user is a
Normal User or any
Admin Person.
According to that you will
hide/show the
Edit option in the
GridView
.
For implementing
Roles, you can go for
ASP.NET authentication and authorization[
^] or implement yourself by creating couple of more tables.
You can apply your own logic, something like below...
- Add one Role Table and relate that to the Login Table. For each
User
, there will be a row in Role Table. - At the time of
Registration
, you will insert row in Role Table. - At the time of
Login
, you will fetch the Role
of User
from Role Table. - According to the
Role
, you will then do your work.