locked
ASP.NET 4.5 C#: Ajax calendar only works after postback RRS feed

  • Question

  • User-596225964 posted

    Hello

    In my webforms application I have a nested master page.

    On this nested master page, inside an update panel,  I have an Ajax calendar extender that targets a textbox.

    For some reason when the page is first loaded, the calendar extender does not display when I click the text box.

    However, it works fine after I click a control that causes a postback.

    My script manager is on the top-level master page.

    The same text box and calendar extender works fine on a normal aspx page that links to the top-level master page.

    In a nutshell, the problem seems to be that my calendar extender on my nested master page only displays after a postback.

    Here is my mark-up:

    <asp:UpdatePanel ID="uplTripPlanner" UpdateMode="Conditional" runat="server">
                            <ContentTemplate>
                                <div class="txtPadding">
                                    <strong>Arrive</strong><br />
                                    <asp:TextBox ID="txtTripArrive" runat="server" CssClass="txtDates"></asp:TextBox>
                                    <cc1:CalendarExtender ID="txtTripArrive_CalendarExtender" runat="server"
                                        Enabled="True" TargetControlID="txtTripArrive" Format="dd/MM/yyyy"
                                        PopupButtonID="txtTripArrive">
                                    </cc1:CalendarExtender>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="RequiredFieldValidator"
                                        ControlToValidate="txtTripArrive" ValidationGroup="TripDates" CssClass="WarningText10">* Required</asp:RequiredFieldValidator>
                                    <asp:HiddenField ID="hfdTripArrive" runat="server" />
                                    <asp:HiddenField ID="hfdTripDepart" runat="server" />
                                    <br />
                                    <strong>Depart</strong><br />
                                    <asp:TextBox ID="txtTripDepart" runat="server" CssClass="txtDates"></asp:TextBox>
                                    <cc1:CalendarExtender ID="txtTripDepart_CalendarExtender" runat="server"
                                        Enabled="True" TargetControlID="txtTripDepart" Format="dd/MM/yyyy" PopupButtonID="txtTripDepart">
                                    </cc1:CalendarExtender>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="RequiredFieldValidator"
                                        ControlToValidate="txtTripDepart" ValidationGroup="TripDates" CssClass="WarningText10">* Required</asp:RequiredFieldValidator>
                                    <br />
                                    <div style="text-align:right;">
                                        <asp:Button ID="btnTripDates" runat="server" Text="Go!"
                                            CssClass="btnTripDatesGo" ValidationGroup="TripDates"
                                                onclick="btnTripDates_Click" /></div>
                                        <asp:CompareValidator ID="CompareValidator1" Operator="GreaterThanEqual" Type="Date"
                                        ControlToValidate="txtTripDepart" ControlToCompare="txtTripArrive"
                                        ErrorMessage="Arrival must be BEFORE departure!"  runat="server" ValidationGroup="TripDates" CssClass="WarningText10" />
                                </div>
                            </ContentTemplate>
                        </asp:UpdatePanel>

    Any suggestions are greatly appreciated.

    Kind regards

    Jubbs

    Sunday, April 12, 2015 6:16 AM

Answers

  • User1644755831 posted

    Hello Jubbs,

    You could post this question on the ajax control toolkit forum to get a better response. It will be difficult to determine why you are receiving such an error without deep knowledge on the subject because the error seems to be coming from the MicrosoftAjax.js file.

    With Regards,

    Krunal Parekh

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, April 20, 2015 10:18 PM

All replies

  • User1644755831 posted

    Hello Jubbs,

    In a nutshell, the problem seems to be that my calendar extender on my nested master page only displays after a postback.

    1. Can you see if the HTML of the calendar is same as on the first run and after the post back ? What exactly is changing in HTML that after post back it works?

    2. It could be issue with how nested master page and content place holders of the aspx page are merged.

    With Regards,

    Krunal Parekh

    Monday, April 13, 2015 10:35 PM
  • User-596225964 posted

    Hi Krunal

    Thank you for your message.

    From what I can see, the only html that changes after postback is the values of the following 2 elements on the page:

    <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="3dAwuq3m8Cd0+11OTotBLJNqrz+DLloBQ014SLWuZRBT777sEviZD70zCIIUPkvYd44xixiM11fba4T8CVo0GdpGCZ2WfjRDpAbaOv4FFxgYzibqd1LsD/PzDnu2DJSgTwSw56QL1sGGWEU+KvK+7jy1CfFiYuuMYqQxkNgznizKJbEhJEZ7ZK3n64PjXl8c+fgnoyqJS5B4U4WkYDM1bfkqWq6uGj5vYjV+uqG156tvA3yFjyc6klyFflxoEyahSKoyddJ41PZkJJrjfI+hEdAg8B9JZIIWt/wwn2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" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="aOIw+NzI33gOFIkJ6lUAOncH1btmWqMloW6ltI2T4d+BeWaASbDB90n7JhCv4/MRaJ1q5hUYvUM8CvxblbI7MCaCaz+yIbC9JT092prqv/+36tI03f/NF4r6Bb1BeM2i4rD8xeuRKW/SC+orqxFh+21Hn5dtX0pV7bCbuyDji9zYEJ95PBGdXNL2KQsmIXKsvSKUX04vAjBdMM3yesF3QOEyCbDFV9evCgd6KA7NZbkTJ71D0Lp+hJFPzjtWJk3JmTV+aV1dtE9qCZIM84MUvppeM8tAGDsGTAU6TZYdbYYRmYKSJ8oddXCU5JhKhGbG7OOa9EgZiYT98LAMm3kNtzTsV3/SrUGC/KKW4Jlf4VK/rZtRk84+8PC6n8+EqJb4Zsc1W1oP8XggXdi71QTxIQ==" />

    Does this help at all?

    Many thanks

    Jubbs

    Wednesday, April 15, 2015 2:00 PM
  • User1644755831 posted

    Hello Jubbs,

    Those are view state hidden values they will be different each time you refresh the page so this is not causing your issue. Can you send me a sample project and upload it on cloud so may be I can reproduce the issue and give see if I am able to solve it.

    With Regards,

    Krunal Parekh

    Wednesday, April 15, 2015 9:19 PM
  • User1644755831 posted

    Hi Jubbs,

    I debugged your application and i see that its working fine in the default.aspx page in the sample you provided me, but when i tried to debug the the page that includes master pages i got following errors. 

    I think this is the main cause this error is stopping your executing of java script and your control is not showing properly. the error comes from MicrosoftAjax.js file. I think you could post this question on the ajax control toolkit forum to get a better response. 

    With Regards,

    Krunal Parekh

    Friday, April 17, 2015 5:58 AM
  • User-596225964 posted

    Thanks Krunal

    I also have a modalpopupextender on the page.  If I remove the modalpopupextender from the page then my calendar extender works fine. 

    It is the modalpopupextender that is causing the problems. Weird.

    This is my mpe mark-up:

    <cc1:ModalPopupExtender ID="imgMapThumb_ModalPopupExtender"
                                runat="server" Enabled="True" BackgroundCssClass="ModalBackground" CancelControlID="btnCancel"
                                TargetControlID="imgMapThumb" PopupControlID="pnlTouristMap"></cc1:ModalPopupExtender>

    Thanks

    Chris

    Saturday, April 18, 2015 7:16 AM
  • User1644755831 posted

    Hello Jubbs,

    You could post this question on the ajax control toolkit forum to get a better response. It will be difficult to determine why you are receiving such an error without deep knowledge on the subject because the error seems to be coming from the MicrosoftAjax.js file.

    With Regards,

    Krunal Parekh

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, April 20, 2015 10:18 PM
  • User-596225964 posted

    Hi Krunal

    I have posted it on the CodePlex forum.

    Thanks for your help.

    Jubbs

    Thursday, April 23, 2015 2:38 PM