<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Club Web Site Starter Kit</title><link>http://forums.asp.net/1004.aspx</link><description>Discussions about Microsoft's Club Web Site Starter Kit for ASP.NET 2.0.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Showing multi-day events in the calendar</title><link>http://forums.asp.net/thread/3255362.aspx</link><pubDate>Wed, 24 Jun 2009 12:56:50 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3255362</guid><dc:creator>epora75</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3255362.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1004&amp;PostID=3255362</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi Jim,&lt;/p&gt;
&lt;p&gt;Were you able to post the EventCalendar.zip anywhere?&amp;nbsp; I have a tight deadline and was hoping to work off a base implementation.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Many thanks,&lt;/p&gt;
&lt;p&gt;Peter&lt;/p&gt;</description></item><item><title>Re: Showing multi-day events in the calendar</title><link>http://forums.asp.net/thread/3236810.aspx</link><pubDate>Tue, 16 Jun 2009 11:39:42 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3236810</guid><dc:creator>Jim 555</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3236810.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1004&amp;PostID=3236810</wfw:commentRss><description>&lt;p&gt;Hello suvn99999,&lt;/p&gt;
&lt;p&gt;I still have the zip file that I downloaded from &lt;a href="http://www.asp.net/StarterKits/Downloads/EventCalendar.zip"&gt;&lt;font color="#5403fa"&gt;http://www.asp.net/StarterKits/Downloads/EventCalendar.zip&lt;/font&gt;&lt;/a&gt;&amp;nbsp;back in year 2006.&lt;/p&gt;
&lt;p&gt;How can I deliver it to you?&amp;nbsp;&amp;nbsp; Better yet,&amp;nbsp;where can I post it so that eveyone &amp;nbsp;can access it?&lt;/p&gt;
&lt;p&gt;Jim&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Showing multi-day events in the calendar</title><link>http://forums.asp.net/thread/3235780.aspx</link><pubDate>Tue, 16 Jun 2009 04:28:52 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3235780</guid><dc:creator>suvn99999</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3235780.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1004&amp;PostID=3235780</wfw:commentRss><description>&lt;p&gt;Hi Jim,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Because at this time I realy need this code, but the url to download does not exist so I can not get it Can you post this project code for me?&lt;/p&gt;
&lt;p&gt;Thanks in advance for your help!!!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;suvn99999&lt;/p&gt;</description></item><item><title>Re: Showing multi-day events in the calendar</title><link>http://forums.asp.net/thread/2328676.aspx</link><pubDate>Tue, 29 Apr 2008 22:33:44 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2328676</guid><dc:creator>dfourlife</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2328676.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1004&amp;PostID=2328676</wfw:commentRss><description>&lt;p&gt;This is very helpful , but How can this code be adjusted so that the event description set in &lt;font color="#a31515" size="2"&gt;DayEventTemplate can span across the startdate and enddate fields?&lt;br /&gt;sort of like in outlook. any suggestions&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Re: Showing multi-day events in the calendar</title><link>http://forums.asp.net/thread/1449310.aspx</link><pubDate>Wed, 01 Nov 2006 15:05:54 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1449310</guid><dc:creator>rta</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1449310.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1004&amp;PostID=1449310</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;When I place the dll on a Windows Sharepoint Service website it gives me an error that the file is wrong.&lt;/p&gt;&lt;p&gt;&amp;nbsp;What do I need to do to get this up and running on a SHarepoint website?&lt;/p&gt;&lt;p&gt;&amp;nbsp;kind regards&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;robbert tames&lt;/p&gt;</description></item><item><title>Re: Showing multi-day events in the calendar</title><link>http://forums.asp.net/thread/1408556.aspx</link><pubDate>Sun, 24 Sep 2006 17:16:24 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1408556</guid><dc:creator>Jim 555</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1408556.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1004&amp;PostID=1408556</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;I just downloaded the calendar project C# codes from &lt;a href="http://www.asp.net/StarterKits/Downloads/EventCalendar.zip"&gt;&lt;font color="#7395c1"&gt;http://www.asp.net/StarterKits/Downloads/EventCalendar.zip&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;When I clicked on &amp;quot;EventCalendar.csproj&amp;quot;, I got the following message?&amp;nbsp; What does the message mean?&lt;br /&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;strong&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The project location is not trusted:&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; D:\Documents and Settings\My&amp;nbsp;Documents\Download\EventCalendar_zip\EventCalendar&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Running the application may result in security exceptions when it &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; attempts to perform actions which require full trust.&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Click OK to ignore and continue.&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;br /&gt;Jim&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Showing multi-day events in the calendar</title><link>http://forums.asp.net/thread/1337440.aspx</link><pubDate>Mon, 10 Jul 2006 23:31:40 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1337440</guid><dc:creator>mikedeko</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1337440.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1004&amp;PostID=1337440</wfw:commentRss><description>The code listing above was corrected and works as is.</description></item><item><title>Re: Showing multi-day events in the calendar</title><link>http://forums.asp.net/thread/1337020.aspx</link><pubDate>Mon, 10 Jul 2006 16:30:42 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1337020</guid><dc:creator>jonesf222</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1337020.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1004&amp;PostID=1337020</wfw:commentRss><description>Could someone please share the corrected solution for multiday EventsCalendar or better yet the dll file? Thanks</description></item><item><title>Re: Showing multi-day events in the calendar</title><link>http://forums.asp.net/thread/1329488.aspx</link><pubDate>Fri, 30 Jun 2006 15:10:14 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1329488</guid><dc:creator>jimbob_texas</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1329488.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1004&amp;PostID=1329488</wfw:commentRss><description>&lt;p&gt;Slick solution!&amp;nbsp; Thanks very much.&lt;/p&gt;
&lt;p&gt;jr&lt;/p&gt;</description></item><item><title>Re: Showing multi-day events in the calendar</title><link>http://forums.asp.net/thread/1192418.aspx</link><pubDate>Wed, 08 Feb 2006 21:25:27 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1192418</guid><dc:creator>samsp</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1192418.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1004&amp;PostID=1192418</wfw:commentRss><description>Doh. The problem was that I just pasted code into the html editor window. I thought the generic type definitions were html as they are delimited with &amp;lt; &amp;gt;. I updated the original code.</description></item><item><title>Re: Showing multi-day events in the calendar</title><link>http://forums.asp.net/thread/1190300.aspx</link><pubDate>Mon, 06 Feb 2006 21:24:38 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1190300</guid><dc:creator>meantown2</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1190300.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1004&amp;PostID=1190300</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Nice idea to post this enhancement. I pulled down the event calendar project, made the updates and I get the following error on build:&lt;/p&gt;
&lt;p&gt;Error&amp;nbsp;1&amp;nbsp;Using the generic type 'System.Collections.Generic.Dictionary&amp;lt;TKey,TValue&amp;gt;' requires '2' type arguments&amp;nbsp;C:\Documents and Settings\x\My Documents\Visual Studio Projects\EventCalendar\EventCalendar\EventCalendar.cs&amp;nbsp;352&amp;nbsp;40&amp;nbsp;EventCalendar&lt;/p&gt;
&lt;p&gt;In the "&lt;font color=#0000ff size=2&gt;void&lt;/font&gt;&lt;font size=2&gt; cacheDataInViewstate(System.Data.&lt;/font&gt;&lt;font color=#008080 size=2&gt;DataView&lt;/font&gt;&lt;font size=2&gt; dv)" function, the error is on the line:&lt;/font&gt;&lt;/p&gt;&lt;font size=2&gt;
&lt;p&gt;System.Collections.Generic.Dictionary ctrlcount = &lt;font color=#0000ff size=2&gt;new&lt;/font&gt;&lt;font size=2&gt; System.Collections.Generic.Dictionary();
&lt;p&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Showing multi-day events in the calendar</title><link>http://forums.asp.net/thread/1187521.aspx</link><pubDate>Fri, 03 Feb 2006 00:12:39 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1187521</guid><dc:creator>samsp</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1187521.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1004&amp;PostID=1187521</wfw:commentRss><description>&lt;p&gt;There were a couple of requests for showing multi-day events in the calendar.&amp;nbsp;I took a look at the calendar code, and came up with the following fix. Note I only did some brief testing, but it seemed to work for the cases I tried.&lt;/p&gt;
&lt;p&gt;Firstly, you'll need the calendar project, which can be found at &lt;a href="http://www.asp.net/StarterKits/Downloads/EventCalendar.zip"&gt;http://www.asp.net/StarterKits/Downloads/EventCalendar.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This is a C# dll project, so you'll need vs standard or C# express sku to open it. In the EventCalendar.cs code:&lt;/p&gt;
&lt;p&gt;a) Add the following property. It specifies the name of the field representing the end date:&lt;/p&gt;&lt;pre&gt;        [DefaultValue("")]
        [Themeable(false)]
        public virtual string EndDayField
        {
            get
            {
                object o = ViewState["EndDayField"];
                if (o != null)
                {
                    return (string)o;
                }
                return String.Empty;
            }
            set
            {
                ViewState["EndDayField"] = value;
                if (Initialized)
                {
                    OnDataPropertyChanged();
                }
            }
        }
&lt;/pre&gt;
&lt;p&gt;b) Replace the existing versions of the following methods:&lt;/p&gt;&lt;pre&gt;       private int CreateDataBoundChildren(System.Data.DataView dv, Table table, DateTime todaysDate, DateTime visibleDate, System.Globalization.Calendar threadCalendar)
        {
            DateTime firstDay = FirstCalendarDay(this.VisibleDate);
            dv.Table.Locale = new CultureInfo("en-US");

            int dayoffset = 0;
            string dayField = this.DayField;
            string endDayField = this.EndDayField;

            for (int iRow = 0; iRow &amp;lt; 6; iRow++)
            {
                TableRow row = new TableRow();
                table.Rows.Add(row);

                for (int iDay = 0; iDay &amp;lt; 7; iDay++)
                {
                    DateTime d = firstDay.AddDays(dayoffset);

                    //Initialize the cell
                    CalendarDay day = getDay(d, TodaysDate, visibleDate, threadCalendar);
                    TableCell cell = CreateDayCell(day);
                    row.Cells.Add(cell);

                    //Process real data for this day
                    dv.RowFilter = string.Format("IsNull({1},{0}) &amp;gt;= #{2}# AND {0}&amp;lt;#{3}#", dayField, endDayField, d.ToString("MM/dd/yyyy"), d.AddDays(1).ToString("MM/dd/yyyy"));
               
                    if (dv.Count &amp;gt; 0 &amp;amp;&amp;amp; this.DayEventTemplate != null)
                    {
                        foreach (System.Data.DataRowView drv in dv)
                        {
                            DataBoundCalendarItem dataitem = new DataBoundCalendarItem(drv, day);
                            DayEventTemplate.InstantiateIn(dataitem);
                            //add the controls to both collections
                            cell.Controls.Add(dataitem);
                            //databind the data item
                            dataitem.DataBind();
                        }
                    }
                    else if (this.DayEmptyTemplate != null)
                    {
                        DataBoundCalendarItem dataitem = new DataBoundCalendarItem(null, day);
                       DayEmptyTemplate.InstantiateIn(dataitem);
                        //add the controls to both collections
                        cell.Controls.Add(dataitem);

                    }
                    dayoffset++;
                }
            }
            return 1;
        }
&lt;/pre&gt;
&lt;p&gt;and&lt;/p&gt;&lt;pre&gt;    void cacheDataInViewstate(System.Data.DataView dv)
        {
            DateTime firstDay = FirstCalendarDay(this.VisibleDate);
            DateTime lastDay = EndDate(this.VisibleDate);

            System.Collections.Generic.Dictionary&amp;lt;DateTime, int&amp;gt; ctrlcount = new System.Collections.Generic.Dictionary&amp;lt;DateTime, int&amp;gt;();

            foreach (System.Data.DataRowView drv in dv)
            {              
                DateTime startdate = ((DateTime)drv[DayField]).Date;
                DateTime enddate = (drv[EndDayField] != DBNull.Value) ? ((DateTime)drv[EndDayField]).Date : startdate;
                DateTime rowdate = startdate;
                while (rowdate &amp;lt;= enddate)
                {
                    if (rowdate &amp;gt;= firstDay &amp;amp;&amp;amp; rowdate &amp;lt;= lastDay)
                    {
                        if (ctrlcount.ContainsKey(rowdate))
                        {
                            ctrlcount[rowdate] += 1;
                        }
                        else
                        {
                            ctrlcount[rowdate] = 1;
                        }
                    }
                    rowdate = rowdate.AddDays(1);
                }
            }
            ViewState[ViewStateDataKey] = ctrlcount;
        }

&lt;/pre&gt;
&lt;p&gt;That should be all you need in the calendar. Build it and either reference it from the website, or copy the output to the bin directory.&lt;/p&gt;
&lt;p&gt;The eventscalendar.aspx page needs to be modified to query for the end data as part of the sql datasource and to set the name of the enddate field on the calendar control. For example:&lt;/p&gt;&lt;pre&gt;&amp;lt;asp:SqlDataSource id=SqlDataSource1 SelectCommand="SELECT [id], [starttime], [endtime], [title], [description] FROM [Events]" ConnectionString="&amp;lt;%$ ConnectionStrings:ClubSiteDB %&amp;gt;" runat="server"&amp;gt;&amp;lt;/asp:SqlDataSource&amp;gt;
            &amp;lt;ec:EventCalendar id=eventscalendar CssClass="eventmonthtable" runat="server" ShowTitle="true" EndDayField="endtime" DayField="starttime" BorderWidth="0" DataSourceID="sqldatasource1"&amp;gt;
...
&amp;lt;/ec:EventCalendar&amp;gt;

&lt;/pre&gt;
&lt;p&gt;That should be all that you need to have long running events show up on each day that they occur.&lt;/p&gt;</description></item></channel></rss>