User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 427,027 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,512 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 15469 | Replies: 1 | Solved
Reply
Join Date: Jul 2006
Posts: 46
Reputation: ChimpusDupus is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
ChimpusDupus ChimpusDupus is offline Offline
Light Poster

GridView Edit and Delete buttons

  #1  
Jul 17th, 2006
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.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jul 2006
Posts: 46
Reputation: ChimpusDupus is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
ChimpusDupus ChimpusDupus is offline Offline
Light Poster

Re: GridView Edit and Delete buttons

  #2  
Jul 18th, 2006
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)
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb ASP.NET Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the ASP.NET Forum

All times are GMT -4. The time now is 2:54 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC