I am very new to Ajax and have been impressed with reading about it and how you can refresh a area of a page and not the whole thing. I thought doing this when reading about it was fairly easy but I'm abit stuck on an area.
I have a Report-viewer on my page which uses a ScriptManager and I have a calendar control which when I click a day will need to refresh to put that into a Textbox.
The Report-viewer is on the page when it loads it needs to be passed a parameter but can only get that after they have selected something from a combobox
So this is what I have done so far:
<li>
<asp:UpdatePanel runat="server" ID="updateDOI">
<ContentTemplate>
<input id="txt_DateOfInterview" type="Date" class="aclass" runat="server" />
<asp:ImageButton runat="server" ImageUrl="~/Images/Calender.png" ID="calendericonDOI" CssClass="calendericonDOI ClanderDOI" OnClick="calendericonDOI_Click"></asp:ImageButton>
<asp:Calendar runat="server" ID="ClanderDOI" CssClass="ClanderDOI" OnSelectionChanged="ClanderDOI_SelectionChanged" BorderColor="#6a3d98" OnVisibleMonthChanged="ClanderDOI_VisibleMonthChanged">
<TitleStyle BackColor="Orange" />
</asp:Calendar>
</ContentTemplate>
</asp:UpdatePanel>
As you can see i have a wrapped a UpdatePanel around the calender and also the input box that will get populated with the day selected
And then with the report viewer I have done the same:
<asp:UpdatePanel runat="server" ID="UpdatePanel1">
<ContentTemplate>
<rsweb:ReportViewer ID="rvSickness" runat="server" BackColor="#6e4594" Font-Names="Arial" Font-Size="8pt" Height="100%" ProcessingMode="Remote" WaitMessageFont-Names="Arial" WaitMessageFont-Size="14pt" Width="450px" ShowCredentialPrompts="False" ShowParameterPrompts="False" ShowPromptAreaButton="True" ShowToolBar="true" ShowFindControls="False" ToolBarItemBorderColor="#FF9900" ToolBarItemHoverBackColor="#FF9900" ForeColor="White">
<ServerReport ReportServerUrl="" />
</rsweb:ReportViewer>
</ContentTemplate>
</asp:UpdatePanel>
But what I don't understand it that the ReportViewer is still refreshing when I do anything.
My question is why is the Report-viewer refreshing when I am selecting something from a calender control? Is it because it has not been passed a parameter yet or have I done something wrong?