473,395 Members | 2,423 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Calendar - Outlook Type

Is there a Web Control that I can use to generate a calendar similar to an
Outlook calendar... I.e, if I have a event on a given date, show that event
on that day on the calendar... likewise, If I have an event spanning
multiple dates, show a bar across all the dates... and if there are several
multi-day events, create multiple bars, from their respective start to end
dates...
--
Thanks,
Martin Schmid, EIT, CCSA, MCDBA, MCSE
Nov 15 '05 #1
1 2539
Hi Martin
There is the calendar server side control. And here is an example that
does something similar (yet simple) to what you want to do.
In this example we want to display a message that reads "Friday" below
every Friday displayed in the calendar. You also want to find all the
weekdays for the current month displayed in the calendar and show them with
a yellow highlight.

So we define the control in page.aspx as follow

<asp:calendar id="WorkDays" runat="server"
OnDayRender="WorkDays_DayRender"/>
Then we write the event handler as follows
private void WorkDays_Render(object source,DayRenderEventArgs e)
{

if (e.Day.Date.DayOfWeek == DayOfWeek.Friday)
{
e.Cell.Controls.Add(new
LiteralControl("Friday"));
}
if (!e.Day.IsWeekend && !e.Day.IsOtherMonth)
{
e.Cell.BackColor = System.Drawing.Color.Red;
}
}
Hope this would help


Nov 15 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Steve | last post by:
Can someone recommend a way to display a one-month calendar view where the month can be selected and up to six events can be shown in any day of the calendar. The events and dates would be stored...
8
by: Shyguy | last post by:
Is it possible to create a calendar that shows previous input data and also allows for input of new data?
1
by: Brian | last post by:
Greetings all! I've been searching and searching for about two hours looking for advise, help, tips for viewing an Outlook calendar (any view, month, week, day) from within Access. I've noticed...
5
by: Peter | last post by:
Is it possible to span / display a graphic in the web calendar control that spans more than one cell / day? Does anyone have an example of this? Thanks Peter
3
by: Peter | last post by:
Is there anyway to make the System.Web.UI.WebControls.Calendar to display only Month Name and Year, like: January, 2006 February, 2006 ..... .... .... ....
2
by: dunk_king | last post by:
Hi Anybody, i´m trying to show a calendar (dayview) in my own vb.net programm. This calendar sheet should get all items (of this day) of my local outlook calendar (Outlook 2000). Is something...
1
by: xian2 | last post by:
Hi, I wanted to create a calendar in Access that would call on data stored within tables in the database (dates in forms) and would show it visually on a calendar when the calendar was opened. I...
1
by: CoachBarkerOJPW | last post by:
We are expanding an application we wrote last semester for a course at school. It is written in VB.net with an Access data base.We were wondering if is possible to use Data Grid View to create a...
2
by: =?Utf-8?B?RU1jQ2FydGh5?= | last post by:
My organization currently has interfaces in place to generate MS Outlook emails from our business applications. I am trying to determine if it is possible and how difficult it might be to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.