Solved

calendar control

Posted on 2014-03-17
2
235 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
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…

813 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

13 Experts available now in Live!

Get 1:1 Help Now