944,185 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Marked Solved
  • Views: 38150
  • ASP.NET RSS
Jul 17th, 2006
0

GridView Edit and Delete buttons

Expand Post »
Hi,

I have a GridView that displays data from a MS SQL database (duh!). I know the GridView allows you to have a command column with such functions as Edit, Update, Delete, etc., which I wish to use. The problem is that I only want these functions to be available to the user that is responsible for the particular data item. How could I go about doing that? The current user is stored as user.Identity.name and will be compared against an ID returned from the database for each item.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Light Poster
ChimpusDupus is offline Offline
47 posts
since Jul 2006
Jul 18th, 2006
0

Re: GridView Edit and Delete buttons

Also, I can not figure out how to add a confirm option for the delete function, such as setting the delete button's onclient click property to a javascript confirm message's return value. (assuming of course the button has an onclientclick property)
Reputation Points: 10
Solved Threads: 0
Light Poster
ChimpusDupus is offline Offline
47 posts
since Jul 2006

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: Expandable Pop Up window
Next Thread in ASP.NET Forum Timeline: How to print directly from CyrstalReportViewer? Urgent!!





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC