
Untitled
By: a guest on
May 9th, 2012 | syntax:
None | size: 0.64 KB | hits: 19 | expires: Never
Display modified confirm on the button submit from button action
<ajaxToolkit:ConfirmButtonExtender ID="cbe" runat="server"
TargetControlID="Cancel"
ConfirmText="Are you sure you want to click this?"
/>
public void display()
{
string error="my error";
cbe.ConfirmText = error;
}
protected void Cancel_Click(object sender, ImageClickEventArgs e)
{ display();
anothermethod();
Response.Redirect("home.aspx");
}
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
string error = "my error";
cbe.ConfirmText = error;
}
}