Radbutton not causing postback

2 posts, 0 answers
  1. Tab Alleman
    Tab Alleman avatar
    18 posts
    Member since:
    Apr 2010

    Posted 16 Apr 2013 Link to this post

    I have a RadButton on a user control.   When I run the site in the debugger, and click the button, it doesn't even cause a postback, because the Page_Init event doesn't fire.    I have even set AutoPostBack="true" and CausesValidation="false" to bypass those possible explanations.

    Here is my Radbutton code:



    <telerik:RadButton ID="ReturnButton" runat="server" Text="Return To Test" OnClick="ReturnButton_Click"

     CausesValidation="false" Skin="Telerik" CssClass="rbClearButton" Width="175px" AutoPostBack="true" >  

    <Icon PrimaryIconCssClass="rbPrevious" PrimaryIconLeft="4" PrimaryIconTop="4"/> 

    When I view source, here is is the HTML that is generated:

    <a id="TestModuleDetails_ReturnButton" class="RadButton RadButton_Telerik rbSkinnedButton rbClearButton" href="javascript:void(0)" style="display:inline-block;width:175px;"><!-- 2011.3.1305.35 --><span class="rbPrimaryIcon rbPrevious" style="top:4px;left:4px;"></span><input class="rbDecorated rbPrimary" type="submit" name="TestModuleDetails$ReturnButton_input" id="TestModuleDetails_ReturnButton_input" value="Return To Test" style="width:100%;padding-left:0;padding-right:0;padding-left:4px;" /><input id="TestModuleDetails_ReturnButton_ClientState" name="TestModuleDetails_ReturnButton_ClientState" type="hidden" /></a>

    I don't see why it doesn't cause postback, anybody see what I'm missing?


  2. Danail Vasilev
    Danail Vasilev avatar
    1502 posts

    Posted 17 Apr 2013 Link to this post

    Hello Tab,

    Form the provided code snippet it seems that you are using an outdated version of RadControls (version 2011.3.1305.35) and that is why it is possible unfixed issue to be present there.

    We highly recommend to upgrade your version of RadControls to the latest one (version 2013.1.403). Upgrade the Version of Your Telerik ASP.NET Controls in 6 Easy Steps blog post will shed more light on how to do that.

    If the above step, however, does not help you can open a support ticket and provide us with a fully runnable sample with reproduction steps of the issue, so that we can investigate it on our side.

    Danail Vasilev
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top