This is a migrated thread and some comments may be shown as answers.

Problem with Rad Button with Confirm Button Extender

1 Answer 109 Views
Button
This is a migrated thread and some comments may be shown as answers.
chiran
Top achievements
Rank 1
chiran asked on 13 Sep 2011, 09:38 AM
Hi....
I Use Rad button with Image and I add a Confirm Button Extender to it. on button click event I redirect the page to another page. but confirm extender not shoving . actually its shows just for second and fire the click event without getting the confirmation .
when I remove the image its work......

Can any one help me on this...

aspx.......
 <telerik:RadButton ID="radbtnLogout" runat="server" Width="100px" Height="48px" onclick="radbtnLogout_Click">
                            <Image  ImageUrl="App_Themes/Common/Dashboard/Logout-Normal.png"   HoveredImageUrl="App_Themes/Common/Dashboard/Logout-MouseOver.png" IsBackgroundImage="true" />
                        </telerik:RadButton>
                        <cc1:ConfirmButtonExtender ID="radbtnLogout_ConfirmButtonExtender"  ViewStateMode="Inherit"
                                runat="server" ConfirmText="Logout current user from MasterKey HRM?" Enabled="True" TargetControlID="radbtnLogout">
                            </cc1:ConfirmButtonExtender>

cs.....

protected void radbtnLogout_Click(object sender, EventArgs e)
    {
      
        Session.Abandon();

        Response.Redirect("~/Login.aspx");
    }

1 Answer, 1 is accepted

Sort by
0
Slav
Telerik team
answered on 15 Sep 2011, 01:32 PM
Hello Chiran,

The RadButton control is not compatible with the AjaxToolkit's ConfirmButtonExtender. This is caused by a conflict between the RadButton's client-side functionality, and the extender. The ConfirmButtonExtender control is designed to add a client-side functionality to the existing standard ASP.NET button control, while the RadButton, like the rest of our RadControls for AJAX, already has a rich Client API that lets you achieve complicated tasks while avoiding unnecessary post-backs.

My suggestion is to check the following online demo, implementing a similar functionality: Button / Confirm Postback.

Greetings,
Slav
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal
Tags
Button
Asked by
chiran
Top achievements
Rank 1
Answers by
Slav
Telerik team
Share this question
or