Confirm delete before deleting dataview's row
By : amitsinh
Date : March 29 2020, 07:55 AM
Does that help In your code you must change ButtonType="Image" to ButtonType="Link" - then onclick="..." will be rendered without javascript:___doPostBack(...) part. And in the GridPaymentMethod_RowDataBound event set something like deleteButton.Text = "  " (use html entities instead of <>). Or you can use ImageButton with ComamndName="delete" and ConfirmButtonExtender from ASP.NET AjaxToolkit suite.
|
delete link not deleting any record in mysql database
By : user5956562
Date : March 29 2020, 07:55 AM
I hope this helps you . I am trying to add a delete link to every row of record displayed on my page. I have managed to that so far but cannot figure out how to make the link work so that when a delete link is clicked, only that row of data will be removed from the database. I am farly new to php/mysql so pardon my questions. I have the following code so far.. , Your a href tag should be [Missed quotes] code :
<?php echo '<a href="delete.php?action=delete&id='.$row['ComplianceName'].'">Delete</a>';?>
<?php echo '<a href="delete.php?edit='.$row['ComplianceID'].'">Edit</a>';?>
<?php echo '<a href="delete.php?invite='.$row['id'].'">Invite Obstacle</a>';?>
|
delete physical file after deleting the record of a table in database
By : D. Ravndal
Date : March 29 2020, 07:55 AM
like below fixes the issue MySQL can't really perform such filesystem actions for you automatically*. Instead, your application code that issues the DELETE statement to the server should invoke a filesystem operation to remove the file. Therefore you will need to:
|
Adding Jquery Confirm For Deleting Record
By : walter Steuber
Date : March 29 2020, 07:55 AM
Does that help I'm using jquery/ajax and php/mysql For CRUD opartions i've delete link were i click on a link it deletes my record i want jquery confirm before deleting record!! , try like this code :
$('#demo').on('click', '.delete', function(e) {
if (confirm('do you wanna delete?')) {
// user pressed yes
}
});
|
Using codeigniter Confirm and delete record. Having issue in javascript confirm to delete records and redirect to the sa
By : Asim Jamil
Date : March 29 2020, 07:55 AM
I hope this helps you . I am new to codeigniter. After deleting my table record i want to redirect to same controller index method.Record deleted successfully but alert message was showing repeatedly. Instead redirect() method i am using javascript confirm method to delete it will showing alert box again and again. If i try redirect() method its not showing confirm alert box. If i try exact base_url() method to redirect it will move to URL: http://localhost/codeigniter/category/remove_category/25 and the page was empty. I tried many ways. I don't know why the confirm alert box showing repeatedly. Please advise me. in advance. , The proper way to do this is redirect(); Something like this: code :
$this->session->set_flashdata('message', 'Category was deleted');
redirect('category', 'refresh');
if ($this->session->flashdata('message')) {
//show the message to confirm
}
<td><a onclick="return confirm('are you sure?')" href="<?=base_url()?>category/remove_category/<?=$row->category_id?>">Delete</a></td>
|