473,804 Members | 2,257 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2560
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="Wo rkDays_DayRende r"/>
Then we write the event handler as follows
private void WorkDays_Render (object source,DayRende rEventArgs e)
{

if (e.Day.Date.Day OfWeek == DayOfWeek.Frida y)
{
e.Cell.Controls .Add(new
LiteralControl( "Friday"));
}
if (!e.Day.IsWeeke nd && !e.Day.IsOtherM onth)
{
e.Cell.BackColo r = 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
4514
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 in an events table and any event may be for one day or multiple days. Thanks! Steve
8
2462
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
2007
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 that linking the Outlook folder is easy, but the link doesn't include the appointment data, i.e. start time, end time, etc. Am I barking up a dead tree? Any help would be greatly appreciated. Thanks in advance
5
2304
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
850
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
11784
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 like this possible? Perhaps is it possible to involve the whole outlook calendar in my program? (This would be the best way!) Thanks for all help
1
3006
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 was told about calendar control fundtion and created a calendar in a form but cannot work out how to call on the data within the tables so it appears as an entry in the calendar when the calendar is opened. Please can you give me some advice on...
1
2867
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 calendar like the one in Outlook. The application is going to be used to track reservations, so we would like a calendar type interface that can display mulitple events on any given day, week or month. Any help would be greatly appreciated, or if...
2
3052
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 interface with MS Ecxhange or Outlook from a business application and add items to a user's calendar, task list, or at a minimum to set a follow up flag in an email. We are running Exchange 2003 and a variety of MS Outlook 2000 and 2003. We do have...
0
9714
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9594
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10090
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9173
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7635
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5531
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5673
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3832
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3001
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.