c# - Why doesn't Ajax calendar extender work until I click button? -
i have ajaxcalendarextender applied on text box. doesn't work until click button within page (any asp button doesn't post back). after clicking button starts working charm.
why ?
<asp:textbox id="txtboxdateofbirth" runat="server" cssclass="form-control"></asp:textbox> <asp:calendarextender id="calext1" runat="server" format="dd/mmm/yyyy" targetcontrolid="txtboxdateofbirth">
button:
<asp:button id="btnshowviewpersonalinfo" runat="server" onclick="btnshowviewpersonalinfo_click"/>
this button doesn't nothing big, changes views in webform. please me can't figure out since man days.
update: code behind button click event.
btnshowviewpersonalinfo.backcolor = colortranslator.fromhtml("#106e5b"); btnshowviewpersonalinfo.forecolor = color.whitesmoke; btnshowviewpersonalinfo.font.bold = true; multiviewhr.activeviewindex = 0;
nothing else, switches view.
Comments
Post a Comment