As I suspected, you have validation controls on your page, more specifically RequiredFieldValidators
. By default, when a RadButton is placed on a page with validation controls, its default action is to trigger validation, when pressed. If the conditions, specified by the validation controls, are not met, the RadButton will be rendered as a HTML input element of type button and the postback will not be initiated. In your case you have empty fields on the page and the RequiredFieldValidators, attached to them, are preventing postback.
The solution, in case you want to exclude the RadButton from the validation mechanism, is to set the button's CausesValidation
property to false
. This way you will ensure that the RadButton will always cause postback. Please note that in such case the users will be able to post the page without entering credentials.
I would like to bring to your attention one more issue of concern. It seems that you have specified ClientIDMode="Static"
for the RadButton. It is recommends by Microsoft to use ClientIDMode
set to Static
only for static controls.The RadControls on the other hand are controls with complex hierarchies of child controls and templates so setting their ClientIDMode
property to Static
may break their functionality. What I would recommend is that you do not use ClientIdMode Static for any Telerik controls. You can also check the following thread explaining this behavior: http://www.telerik.com/community/forums/aspnet-ajax/general-discussions/clientidmode-support-for-asp-net-4-0.aspx
the Telerik team
Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward!
We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>