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

Radbutton not causing postback

1 Answer 157 Views
Button
This is a migrated thread and some comments may be shown as answers.
Tab Alleman
Top achievements
Rank 1
Tab Alleman asked on 16 Apr 2013, 06:30 PM
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"/> 
 </telerik:RadButton>

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?

 

1 Answer, 1 is accepted

Sort by
0
Danail Vasilev
Telerik team
answered on 17 Apr 2013, 12:49 PM
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.

Regards,
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.
Tags
Button
Asked by
Tab Alleman
Top achievements
Rank 1
Answers by
Danail Vasilev
Telerik team
Share this question
or