edit button sql permission

G

Guest

hey all,
i have an edit button on my web page. what is the quickest or best way to
link the Enabled property of the button on the aspx page to the User's Table
Permissions if it has been granted update permissions?

thanks,
rodchar
 
A

Alexey Smirnov

hey all,
i have an edit button on my web page. what is the quickest or best way to
link the Enabled property of the button on the aspx page to the User's Table
Permissions if it has been granted update permissions?

thanks,
rodchar

Use a role-based authentication. Assign you user to a role (e.g.
"Editors")

Button.Enabled = HttpContext.Current.User.IsInRole("Editors")
 
A

Alexey Smirnov

Do i do this in sql server roles or visual studio application configuration?

Maybe I misunderstood the meaning of your question. Do you need to
know if current SQL-user has an access access to a particular SQL-
table?
 
G

Guest

i'm sorry for the confusion i'm just trying to understand the best practice
in securing my asp.net solution and sql server 2005 database while they work
together to produce a web application.

here is just random questions i have:
you know application role in sql server 2005, does that in anyway work in
conjuction with an asp.net web application?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Run Javascript at GridView Edit 2
Using edit button with LinqDatasource 1
is this possible... 1
what event do i use? 2
design advice 5
what does databind do 3
ajax update panel trigger 2
making sure page loads 2

Top