asp.net - RadButton not causing postback -
i have radbutton on user control. when run site in debugger, , click button, doesn't cause postback, because page_init event doesn't fire. have set autopostback="true" , causesvalidation="false" bypass possible explanations.
here radbutton code:
<telerik:radbutton id="returnbutton" runat="server" text="return test" onclick="returnbutton_click" causesvalidation="false" skin="telerik" cssclass="rbclearbutton" width="175px" autopostback="true" > <icon primaryiconcssclass="rbprevious" primaryiconleft="4" primaryicontop="4"/> </telerik:radbutton>
when view source, here is html 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 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 doesn't cause postback, see i'm missing? have posted in telerik forums, , telerik people want me send them runnable code sample reproduces error. hope can avoid headache.
i think @ 2 problems :
- i think should have : href="javascript:void(0)" in balise a. because stuff mean want link nothing ...
- second check in javascript console if there error
Comments
Post a Comment