prevent a file from being deleted unless its selected first
Expand Post »
hi all.
ok i have been able to create an error message - if the user tries to delete a row which has not been selected first; but it still deletes from the gridview...
lblDeleteResult.Text = "Please select this file first, if you wish to delete it";
}
but the asp.net delete command- Delete="Delete From tbl....Where.......etc" deletes the file from the gridview regardless. How can one prevent the delete command from running unless the row is selected first?
p.s. the delete command is specified in the .aspx file
thanks
Last edited by julseypart; Mar 1st, 2009 at 9:47 am.
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.