Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 242
  • Last Modified:

calendar control

For this calendar control below in .NET I want to select the value in client side onselect of date and time and input in a txtbox. I am using c#.NET webapp.


<asp:Calendar ID="Calendar1" runat="server" BackColor="#FFFFCC" style="margin-bottom: 0px;position: relative;right: 4px;top: 62px;"
                BorderColor="#FFCC66" BorderWidth="1px" DayNameFormat="Shortest" 
                Font-Names="Verdana" Font-Size="8pt" ForeColor="#663399" Height="16px" 
                ShowGridLines="True" Width="84px" onselectionchanged="getFrmDate">
                <SelectedDayStyle BackColor="#CCCCFF" Font-Bold="True" />
                <SelectorStyle BackColor="#FFCC66" />
                <TodayDayStyle BackColor="#FFCC66" ForeColor="White" />
                <OtherMonthDayStyle ForeColor="#CC9966" />
                <NextPrevStyle Font-Size="9pt" ForeColor="#FFFFCC" />
                <DayHeaderStyle BackColor="#FFCC66" Font-Bold="True" Height="1px" />
                <TitleStyle BackColor="#990000" Font-Bold="True" Font-Size="9pt" 
                    ForeColor="#FFFFCC" />
            </asp:Calendar>

Open in new window

0
Moizsaif123
Asked:
Moizsaif123
1 Solution
 
Luis PérezSoftware Architect in .NetCommented:
The ASP.net Calendar control works only with postbaks, it means, reloading the whole page each time you select a new date, except if you use ASP.net AJAX and place the Calendar inside an UpdatePanel. If you want to manage the calendar only in client side, there are better options than ASP.net Calendar.

Please explain your scenario in order to help you the better way.
0
 
Moizsaif123Author Commented:
through Nuget manager I was able to install Ajax and got calendar control. What is the purpose of placing the calendar inside an update panel.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now