Hi Friends
How to display Alert msg in Asp.net Web Application.. ??
i have to delete some Item.
after pressing delete button, it should show alert msg..
if i press yes, it should delete
i have to delete some Item.
after pressing delete button, it should show alert msg..
if i press yes, it should delete
if it is no, then do nothing..
i have delete functions..
i want Alert msg in asp.net as in msgbox in C# ..
i want Alert msg in asp.net as in msgbox in C# ..
pls help me..
Thnks in Advance
Thnks in Advance
Govinda Rajulu YemineniPosted Jul 23, 2015, 5:08 AM
Manas MohapatraPosted Jul 23, 2015, 5:03 AM
Murugavel SPosted Jul 23, 2015, 4:55 AM
so, how to display confirm msg before deleting item.?
im using
Thanks in Advance
Ankit ShuklaPosted Jul 23, 2015, 3:29 AM
Rajeesh MenothPosted Jul 23, 2015, 3:25 AM
Upendra Pratap ShahiPosted Jul 23, 2015, 3:02 AM
function deleteArticle(hdnPostId, divContainer) {
if (confirm("Are you sure?"))
{
$.ajax({
type: "POST",
url: "TestPage.aspx/DeleteArticle",
data: "{PostId: '" + hdnPostId + "'}",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (data) {
$('#' + divContainer).hide();
},
failure: function (errMsg) {
alert(errMsg);
}
});
}
return false;
}
hypDelete.Attributes.Add("onclick","javascript:deleteArticle('"+hdnPostId.Value+"','"+divContainer.ClientID+"');return false;");
Govinda Rajulu YemineniPosted Jul 23, 2015, 2:52 AM
Nilesh JadavPosted Jul 23, 2015, 2:46 AM
Manas MohapatraPosted Jul 23, 2015, 2:45 AM
Click the button to display a confirm box.
id="demo">
>