473,385 Members | 1,569 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

edit button sql permission

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
Apr 19 '07 #1
4 1360
On Apr 19, 8:52 pm, rodchar <rodc...@discussions.microsoft.comwrote:
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")

Apr 19 '07 #2
Use a role-based authentication. Assign you user to a role (e.g.
"Editors")
Do i do this in sql server roles or visual studio application configuration?

"Alexey Smirnov" wrote:
On Apr 19, 8:52 pm, rodchar <rodc...@discussions.microsoft.comwrote:
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")

Apr 19 '07 #3
On Apr 19, 10:28 pm, rodchar <rodc...@discussions.microsoft.com>
wrote:
Use a role-based authentication. Assign you user to a role (e.g.
"Editors")

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?

Apr 19 '07 #4
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?

"Alexey Smirnov" wrote:
On Apr 19, 10:28 pm, rodchar <rodc...@discussions.microsoft.com>
wrote:
Use a role-based authentication. Assign you user to a role (e.g.
"Editors")
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?

Apr 20 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Alex | last post by:
Interested in more .NET stuff visit www.dedicatedsolutions.co.uk The DataList is not as powerful as the DataGrid. It requires more work from you since it has no default data presentation format....
4
by: DC | last post by:
Newbie's question about .NET datagrid If I use: <asp:EditCommandColumn></asp:EditCommandColumn> When I edit a row, it will automatically show Update and Cancel Link. But when I use:...
4
by: Glenn M | last post by:
I have a shared XML file on a server . i also have one xslt file that performs a simple transform on in to view the data. now i want to have another page that lets users modify the shared xml...
1
by: Randall Parker | last post by:
Currently in an asp:DataGrid I have a column for bringing up an edit form on a particular row and that is done by a hyperlink as follows: <asp:TemplateColumn HeaderText="Edit Record">...
0
by: Rob | last post by:
Strange problem. I have a number of datagrids in my application. I have some custom security on my forms and set my datagrid ReadOnly property to true when the user does not have enough...
0
by: lj | last post by:
How do I get an asp.net datagrid to set certain records as tedittemplate based on a certain condition. It is for a simple workflow. The user will have permission to see a list of records. He...
2
by: ruthie | last post by:
Hi, I have a gridview with edit option. If the user chooses to edit the row and then press the Cancel button - I would like the focus to return to the chosen row. Someone has any idea how to...
8
by: =?Utf-8?B?bWlrZWc=?= | last post by:
Hi, I am building a small Help Desk application for my company and need to be able to edit "open" help desk issues. I use a simple datagrid to display each issue (6 per page) , with an Edit...
1
by: =?Utf-8?B?Ym9iYnk=?= | last post by:
Hi, I have GridView. I set AutoGenerateEditButton="True" . When I click this button it puts some fields in edit mode. But I want to add button field in grid View and When I click on that...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.