S
steggun
How To: Popup Confirmation Dialog & Redirect in LinkButton_OnClick
Hello All,
I have a ASP.NET 2.0 (C#) web form with a LinkButton control. In the
server-side code for the LinkButton_OnClick event, I need to do some
processing and, if it succeeds, popup a confirmation dialog and redirect to
a different page. How can I do this?
Here's some pseudo-code:
LinkButton_OnClick()
{
// Process code
// Check for success
if (success)
{
// Popup confirmation dialog stating that the process succeeded
// [user clicks Ok on the dialog]
Response.Redirect("nextpage.aspx", true);
}
else
{
// Handle
}
}
Thanks!
Hello All,
I have a ASP.NET 2.0 (C#) web form with a LinkButton control. In the
server-side code for the LinkButton_OnClick event, I need to do some
processing and, if it succeeds, popup a confirmation dialog and redirect to
a different page. How can I do this?
Here's some pseudo-code:
LinkButton_OnClick()
{
// Process code
// Check for success
if (success)
{
// Popup confirmation dialog stating that the process succeeded
// [user clicks Ok on the dialog]
Response.Redirect("nextpage.aspx", true);
}
else
{
// Handle
}
}
Thanks!