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>
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?
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?