Solved

calendar control

Posted on 2014-03-17
2
232 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
Comment Utility
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
Comment Utility
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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
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…

743 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

18 Experts available now in Live!

Get 1:1 Help Now