Solved

calendar control

Posted on 2014-03-17
2
233 Views
Last Modified: 2014-03-25
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
Comment
Question by:Moizsaif123
2 Comments
 
LVL 25

Accepted Solution

by:
Luis Pérez earned 500 total points
ID: 39941681
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
 
LVL 4

Author Comment

by:Moizsaif123
ID: 39955119
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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now