How to Delete Record using Modal Popup

Posted by Jayakumars under ASP.NET on 9/27/2011 | Points: 10 | Views : 1641 | Status : [Member] [MVP] | Replies : 1
hi
I need How to Modal popup show in Gridview Delete Event my Gridview delete event like this

My Code - Client Side
=======================
-Client Side
<asp:LinkButton ID="imgbtnDelete" runat="server" CommandName="Delete" ToolTip="Delete" Text="Delete"
OnClientClick="return confirm('Are you sure you want to delete this Item?');"></asp:LinkButton>

this is Server Side
====================

protected void grdFee_RowDeleting(object sender, GridViewDeleteEventArgs e)
{
here delete function here...


but i need here my delete record purpose i ill Use confirm jscript but i need
How to delete record purpose using Modal popup here
}

Mark as Answer if its helpful to you


Responses

Posted by: Mdjack on: 9/27/2011 [Member] Starter | Points: 25

Up
0
Down
hi,

Try the following logic
lblScript.Text = "<script language=\"javascript\">";
lblScript.Text += "javascript:popUpWindow('FormsDelete.aspx',200,200,300,150,'FormsDelete')";
lblScript.Text += "</script>";
In FormsDelete form client side design the window with two buttons. When u click the Yes button do u logic.



N. MOHAMED ZACKKARIAH

Jayakumars, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response