<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" gd:etag="W/&quot;DEcGRXk-cCp7ImA9WhRaE0U.&quot;"><id>tag:blogger.com,1999:blog-3870202655663238104</id><updated>2012-02-16T04:53:44.758-05:00</updated><category term="FullCalendar" /><category term="jquery" /><category term="VB.NET" /><category term="ASP.NET" /><title>Jake's Stuff</title><subtitle type="html" /><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://jake1164.blogspot.com/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://jake1164.blogspot.com/" /><author><name>Jake</name><uri>http://www.blogger.com/profile/12545015652530509920</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="31" height="21" src="http://4.bp.blogspot.com/_bXD9jF8WO_M/TEggF3GK_vI/AAAAAAAAAbQ/6agrpy7c-QU/S220/Wood.jpg" /></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>6</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/JakesStuff" /><feedburner:info uri="jakesstuff" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><entry gd:etag="W/&quot;DUQMR308eCp7ImA9WhRTFE0.&quot;"><id>tag:blogger.com,1999:blog-3870202655663238104.post-3307051093004104436</id><published>2011-11-04T07:49:00.000-04:00</published><updated>2011-11-04T07:49:46.370-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-11-04T07:49:46.370-04:00</app:edited><title>NYC BigApps 3.0 Hackathon</title><content type="html">&lt;strong&gt;&lt;span style="font-size: large;"&gt;&lt;a href="http://bigappshack.eventbrite.com/" target="_blank"&gt;NYC BigApps 3.0 Hackathon&lt;/a&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
Friday, November 11, 2011 at 7:00 PM - Sunday, November 13, 2011 at 5:00 PM (ET)&lt;br /&gt;
New York, NY &lt;br /&gt;
&lt;br /&gt;
Join other NYC BigApps 3.0 participants for the first NYC BigApps Hackathon! This weekend-long hackathon is for anyone planning to participate in &lt;a href="http://2011.nycbigapps.com/" target="_blank"&gt;NYC BigApps 3.0&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;Friday, Nov. 11 from 7 p.m to 9 pm.: &lt;div&gt;Networking event at Pivotal Labs&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;Saturday, Nov. 12 from 10 a.m. (through the night) to Sunday, Nov. 13 at 1 p.m.: &lt;div&gt;Hacking at Pivotal Labs&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;Sunday, Nov. 13 at 3 p.m.: &lt;div&gt;Presentations, judging, prizes &lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;&amp;nbsp;And here's what you can look forward to:&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;Develop ideas, brainstorm, explore NYC Open Data&lt;/li&gt;
&lt;li&gt;Find teammates and contribute your skills&lt;/li&gt;
&lt;li&gt;Build something amazing to help NYC&lt;/li&gt;
&lt;li&gt;Talk to representatives from &lt;a href="http://2011.nycbigapps.com/details/api" target="_blank"&gt;companies providing APIs&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Compete for &lt;strong&gt;&lt;span style="color: #38761d;"&gt;$2,500 in prizes&lt;/span&gt;&lt;/strong&gt; for the best hacks!&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;Like NYC BigApps submissions, hacks must use data from &lt;a href="http://nyc.gov/data" target="_blank"&gt;NYC Open Data&lt;/a&gt; and will be judged on the quality of the idea, implementation, and potential impact. Learn more or register now&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3870202655663238104-3307051093004104436?l=jake1164.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/uenNefTV0b_Bo-zNHxi629RzVVM/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/uenNefTV0b_Bo-zNHxi629RzVVM/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/uenNefTV0b_Bo-zNHxi629RzVVM/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/uenNefTV0b_Bo-zNHxi629RzVVM/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/JakesStuff/~4/bcDupn1I3bI" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://jake1164.blogspot.com/feeds/3307051093004104436/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://jake1164.blogspot.com/2011/11/nyc-bigapps-30-hackathon.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3870202655663238104/posts/default/3307051093004104436?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3870202655663238104/posts/default/3307051093004104436?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/JakesStuff/~3/bcDupn1I3bI/nyc-bigapps-30-hackathon.html" title="NYC BigApps 3.0 Hackathon" /><author><name>Jake</name><uri>http://www.blogger.com/profile/12545015652530509920</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="31" height="21" src="http://4.bp.blogspot.com/_bXD9jF8WO_M/TEggF3GK_vI/AAAAAAAAAbQ/6agrpy7c-QU/S220/Wood.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://jake1164.blogspot.com/2011/11/nyc-bigapps-30-hackathon.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEYMRH0-eCp7ImA9WhZbEUk.&quot;"><id>tag:blogger.com,1999:blog-3870202655663238104.post-7002739779237878521</id><published>2011-02-21T20:56:00.002-05:00</published><updated>2011-06-15T09:56:25.350-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-06-15T09:56:25.350-04:00</app:edited><title>Full Calendar 1-4.10</title><content type="html">&lt;div&gt;After a year of not playing with FullCalendar it was brought to my attention that my examples no longer work with version 1-4.10 of&amp;nbsp;&amp;nbsp;&lt;a href="http://arshaw.com/fullcalendar/"&gt;FullCalendar&lt;/a&gt;. So I took my sample code and modified it to work with&amp;nbsp;the latest version of FullCalendar and&amp;nbsp;ASP.NET (VB).&amp;nbsp; The problems are still the same, just in different places.&lt;br /&gt;
&lt;br /&gt;
You need to still modify the&amp;nbsp;start / end param names (now &amp;nbsp;called startParam and endParam) to use another date name, I prefer startDate and endDate.&amp;nbsp; If you open the fullcalendar.js file you will find these around line 43.&lt;br /&gt;
&lt;br /&gt;
&lt;pre style="background-color: #eeeeee; border-bottom: rgb(153,153,153) 1px dashed; border-left: rgb(153,153,153) 1px dashed; border-right: rgb(153,153,153) 1px dashed; border-top: rgb(153,153,153) 1px dashed; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; height: 86px; line-height: 14px; overflow: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; width: 100%;"&gt;&lt;code&gt;
//startParam: 'start',
//endParam: 'end',
startParam: 'startDate',
endParam: 'endDate' 
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
Next you need to a search for .ajax&amp;nbsp;(or skip to line 923) and modify the lines to add a couple key points to make this work with an ASP webservice. &lt;br /&gt;
&lt;br /&gt;
&lt;pre style="background-color: #eeeeee; border-bottom: rgb(153,153,153) 1px dashed; border-left: rgb(153,153,153) 1px dashed; border-right: rgb(153,153,153) 1px dashed; border-top: rgb(153,153,153) 1px dashed; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; height: 185px; line-height: 14px; overflow: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; width: 78.67%;"&gt;&lt;code&gt; $.ajax({
url: source,
type: 'POST',
dataType: 'json',
contentType: 'application/json; charset=utf-8',
data: JSON.stringify(params),
cache: options.cacheParam 
false, // don't let jquery prevent caching if cacheParam is being used
success: function(events) {
popLoading();
callback(eval(events.d));
}
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
The last change was to create your webservice that will post your calendar events from your database to the calendar via the jquery ajax call.&amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
&lt;pre style="background-color: #eeeeee; border-bottom: rgb(153,153,153) 1px dashed; border-left: rgb(153,153,153) 1px dashed; border-right: rgb(153,153,153) 1px dashed; border-top: rgb(153,153,153) 1px dashed; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; width: 100%;"&gt;&lt;code&gt;    &amp;lt;WebMethod()&amp;gt; _
    Public Function EventList(ByVal startDate As String, ByVal endDate As String) As String
        ' List to hold events
        Dim events As List(Of CalendarDTO) = New List(Of CalendarDTO)()

        Dim starting As DateTime = FromUnixTimespan(startDate)
        ' Loop through events to be added
        For i As Integer = 0 To 4
            ' Create a new event and start to populate
            Dim value As CalendarDTO = New CalendarDTO()
            ' Date is required to be in a unix format
            value.StartDate = ToUnixTimespan(starting.AddDays(i * 2))
            value.id = i
            value.title = "Title of event number " + i.ToString()

            If i Mod 2 = 1 Then ' if even we will add an end date
                value.EndDate = ToUnixTimespan(starting.AddDays(1 + (i * 3)))
            End If
            events.Add(value)
        Next
        ' Serialize the return value so it can be decoded in java.
        Dim js As New System.Web.Script.Serialization.JavaScriptSerializer
        Dim returnvalue As String = js.Serialize(events).Replace("StartDate", "start").Replace("EndDate", "end")

        Return ret
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
As promised &lt;a href="http://www.staceynjasonsjourney.us/Downloads/CalendarExamplev2.zip"&gt;here&lt;/a&gt; is the full sample code to get fullcalendar working with a ASP webservice.&lt;br /&gt;
&lt;br /&gt;
On a side note.. Have you read the latest Scot Harvath book, its well worth the read!&lt;br /&gt;
&lt;span&gt;&lt;iframe align="right" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=chautauquacen-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=1416586598&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: right; height: 245px; padding-right: 10px; padding-top: 5px; width: 109px;"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Enjoy!&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
&lt;/code&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3870202655663238104-7002739779237878521?l=jake1164.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/R_ViZ24r_RT-uec2lLaBE53VXEI/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/R_ViZ24r_RT-uec2lLaBE53VXEI/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/R_ViZ24r_RT-uec2lLaBE53VXEI/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/R_ViZ24r_RT-uec2lLaBE53VXEI/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/JakesStuff/~4/mM5n3gdFG5s" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://jake1164.blogspot.com/feeds/7002739779237878521/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://jake1164.blogspot.com/2011/02/full-calendar-1-410.html#comment-form" title="3 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3870202655663238104/posts/default/7002739779237878521?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3870202655663238104/posts/default/7002739779237878521?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/JakesStuff/~3/mM5n3gdFG5s/full-calendar-1-410.html" title="Full Calendar 1-4.10" /><author><name>Jake</name><uri>http://www.blogger.com/profile/12545015652530509920</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="31" height="21" src="http://4.bp.blogspot.com/_bXD9jF8WO_M/TEggF3GK_vI/AAAAAAAAAbQ/6agrpy7c-QU/S220/Wood.jpg" /></author><thr:total>3</thr:total><feedburner:origLink>http://jake1164.blogspot.com/2011/02/full-calendar-1-410.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CkcAQ346fCp7ImA9Wx9UEE4.&quot;"><id>tag:blogger.com,1999:blog-3870202655663238104.post-3130430533490388222</id><published>2011-02-06T17:07:00.000-05:00</published><updated>2011-02-06T17:07:22.014-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-02-06T17:07:22.014-05:00</app:edited><title>Silverlight and the dreaded 2104 error</title><content type="html">So I am working on my latest side project (learning Silverlight 4) and the samples from the book I am reading &lt;span&gt;&lt;a href="http://www.amazon.com/Microsoft-Silverlight-Data-Services-Cookbook/dp/1847199844?ie=UTF8&amp;amp;tag=chautauquacen-20&amp;amp;link_code=btl&amp;amp;camp=213689&amp;amp;creative=392969" target="_blank"&gt;Microsoft Silverlight 4 Data and Services Cookbook&lt;/a&gt;&lt;img alt="" border="0" height="1" src="http://www.assoc-amazon.com/e/ir?t=chautauquacen-20&amp;amp;l=btl&amp;amp;camp=213689&amp;amp;creative=392969&amp;amp;o=1&amp;amp;a=1847199844" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; margin: 0px; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important;" width="1" /&gt;&lt;/span&gt; are&amp;nbsp;causing errors, not all of them, just most of them.&amp;nbsp; Here are the problems I encountered and how I resolved them.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_bXD9jF8WO_M/TU8VvcnFYfI/AAAAAAAAAdc/QAIe_23Ljho/s1600/unable2load.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" h5="true" height="121" src="http://1.bp.blogspot.com/_bXD9jF8WO_M/TU8VvcnFYfI/AAAAAAAAAdc/QAIe_23Ljho/s320/unable2load.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;First error was the One or more projects in the solution could not be loaded error. This was a pretty simple fix, right click on the project and select edit and then change the &lt;silverlightapplication&gt;v3.0&lt;/silverlightapplication&gt; to v4.0.&amp;nbsp; Next just click save, close the file and right click on the project, selecting Reload Project.&amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
Problem solved, the project loads, time for a coke and a smile?&amp;nbsp; Not always.&amp;nbsp; The next error I ran across was a freaky Webpage Error, Line 56, Error: Unhandled Error in Silverlight Application Code: 2104.&amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_bXD9jF8WO_M/TU8ZIGZzNvI/AAAAAAAAAdk/srpHDAZS9PA/s1600/webpageerror.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" h5="true" height="211" src="http://2.bp.blogspot.com/_bXD9jF8WO_M/TU8ZIGZzNvI/AAAAAAAAAdk/srpHDAZS9PA/s320/webpageerror.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;This error had me stumped for awhile, with many solutions saying to add the .xap extension mime type under IIS6 or IIS7. Only problem, I am on a development machine and not using IIS, so what do I do.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_bXD9jF8WO_M/TU8ao1QLQZI/AAAAAAAAAdo/iYiOZwrcHZY/s1600/properties.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" h5="true" height="235" src="http://4.bp.blogspot.com/_bXD9jF8WO_M/TU8ao1QLQZI/AAAAAAAAAdo/iYiOZwrcHZY/s320/properties.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;Open your project properties, click on the Silverlight tab, and click Add..&amp;nbsp;Select the Silverlight 4 application that is being built, leave the destination the default ClientBin and click Add.&amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
The problem that took me many hours to resolve fixed in less than a minute of your time.&lt;br /&gt;
&lt;br /&gt;
As for the book I am still working on it but with the samples working it is very detailed and covers both WCF webservices as well as WCF RIA web services.&amp;nbsp; Give it a look if you are working on Silverlight 4 like me!&lt;br /&gt;
&lt;br /&gt;
&lt;span&gt;&lt;iframe align="right" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=chautauquacen-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=1847199844&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: right; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div align="center"&gt;﻿&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3870202655663238104-3130430533490388222?l=jake1164.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/3P0cmuaObQm66aXm1Qjb57zbTLs/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/3P0cmuaObQm66aXm1Qjb57zbTLs/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/3P0cmuaObQm66aXm1Qjb57zbTLs/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/3P0cmuaObQm66aXm1Qjb57zbTLs/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/JakesStuff/~4/HZUtGNwEToI" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://jake1164.blogspot.com/feeds/3130430533490388222/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://jake1164.blogspot.com/2011/02/silverlight-and-dreaded-2104-error.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3870202655663238104/posts/default/3130430533490388222?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3870202655663238104/posts/default/3130430533490388222?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/JakesStuff/~3/HZUtGNwEToI/silverlight-and-dreaded-2104-error.html" title="Silverlight and the dreaded 2104 error" /><author><name>Jake</name><uri>http://www.blogger.com/profile/12545015652530509920</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="31" height="21" src="http://4.bp.blogspot.com/_bXD9jF8WO_M/TEggF3GK_vI/AAAAAAAAAbQ/6agrpy7c-QU/S220/Wood.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/_bXD9jF8WO_M/TU8VvcnFYfI/AAAAAAAAAdc/QAIe_23Ljho/s72-c/unable2load.jpg" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://jake1164.blogspot.com/2011/02/silverlight-and-dreaded-2104-error.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkAGRnozeyp7ImA9Wx9QGU8.&quot;"><id>tag:blogger.com,1999:blog-3870202655663238104.post-6801308582295572477</id><published>2011-01-01T19:38:00.000-05:00</published><updated>2011-01-01T19:38:47.483-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-01-01T19:38:47.483-05:00</app:edited><title>Student Discounts Rock!</title><content type="html">If you do any development and happen to be a student you GOTTA check out Microsoft's &lt;a href="https://www.dreamspark.com/default.aspx"&gt;DreamSpark&lt;/a&gt; program! As per the DreamSpark site: &lt;br /&gt;
DreamSpark is simple: Its about giving students Microsoft professional tools at no charge.&amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
Students get full versions of Visual Studio 2010 Pro (Or 2008 Pro), Windows Server 2008 or 2008 R2, Expression Studio 4 ultimate and lots more (Sql Server, Game Studio).&amp;nbsp; I would say its worth enrolling in a few classes just to get download privileges to this site!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3870202655663238104-6801308582295572477?l=jake1164.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/y0GZJ0Z_o0lGGhQh2_hYexqDBfs/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/y0GZJ0Z_o0lGGhQh2_hYexqDBfs/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/y0GZJ0Z_o0lGGhQh2_hYexqDBfs/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/y0GZJ0Z_o0lGGhQh2_hYexqDBfs/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/JakesStuff/~4/s78BlXTCPi4" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://jake1164.blogspot.com/feeds/6801308582295572477/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://jake1164.blogspot.com/2011/01/student-discounts-rock.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3870202655663238104/posts/default/6801308582295572477?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3870202655663238104/posts/default/6801308582295572477?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/JakesStuff/~3/s78BlXTCPi4/student-discounts-rock.html" title="Student Discounts Rock!" /><author><name>Jake</name><uri>http://www.blogger.com/profile/12545015652530509920</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="31" height="21" src="http://4.bp.blogspot.com/_bXD9jF8WO_M/TEggF3GK_vI/AAAAAAAAAbQ/6agrpy7c-QU/S220/Wood.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://jake1164.blogspot.com/2011/01/student-discounts-rock.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkYCQnY_eip7ImA9WxFaFk8.&quot;"><id>tag:blogger.com,1999:blog-3870202655663238104.post-3469115083053330583</id><published>2010-07-20T08:16:00.000-04:00</published><updated>2010-07-20T08:16:03.842-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-07-20T08:16:03.842-04:00</app:edited><title>Adding dynamic color to FullCalendar from ASP.NET Webservice.</title><content type="html">&lt;span&gt;&lt;iframe align="right" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=chautauquacen-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=0321525566&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: right; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/span&gt;Building on the &lt;a href="http://jake1164.blogspot.com/2010/06/jquery-fullcalendar-and-aspnet.html"&gt;last &lt;/a&gt;example of how to get &lt;a href="http://arshaw.com/fullcalendar/"&gt;FullCalendar&lt;/a&gt; to run using VB.NET using a webservice, today we will show a simple example of adding dynamic color. In the example I created I have 3 events, holidays, vacations and other. I would like to color each event a separate color to make it easy to tell holidays from vacations. &lt;br /&gt;
&lt;br /&gt;
First we need to open the CalendarDTO class that we use to pass data from the webservice back to the FullCalendar plugin.&lt;br /&gt;
In the class add a single property named &lt;b style="color: red;"&gt;className&lt;/b&gt;, take note that this property name needs to be exact!&lt;br /&gt;
&lt;br /&gt;
&lt;pre style="background-color: #eeeeee; border-bottom: #999999 1px dashed; border-left: #999999 1px dashed; border-right: #999999 1px dashed; border-top: #999999 1px dashed; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; width: 100%;"&gt;&lt;code&gt;
    Private m_Class As String
    Public Property &lt;b style="color: red;"&gt;className()&lt;/b&gt; As String
        Get
            Return m_Class
        End Get
        Set(ByVal value As String)
            m_Class = value
        End Set
    End Property
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
Next in the Calendar.vb webservice you need to add the class name that you will use in the sytlesheet. For my example I am going to randomly assign the class names &lt;b&gt;holiday&lt;/b&gt;, &lt;b&gt;vacation &lt;/b&gt;and &lt;b&gt;other&lt;/b&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;pre style="background-color: #eeeeee; border-bottom: #999999 1px dashed; border-left: #999999 1px dashed; border-right: #999999 1px dashed; border-top: #999999 1px dashed; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; width: 100%;"&gt;&lt;code&gt;
    &lt;webmethod()&gt; _
    Public Function EventList(ByVal startDate As String, ByVal endDate As String) As String
        ' List to hold events
        Dim events As List(Of CalendarDTO) = New List(Of CalendarDTO)()
        Dim rand As New System.Random(2)

        Dim starting As DateTime = FromUnixTimespan(startDate)
        ' Loop through events to be added
        For i As Integer = 0 To 4
            ' Create a new event and start to populate
            Dim value As CalendarDTO = New CalendarDTO()
            ' Date is required to be in a unix format
            value.StartDate = ToUnixTimespan(starting.AddDays(i * 2))
            value.id = i
            value.title = "Title of event number " + i.ToString()


            Select Case rand.Next(1, 3)
                Case 1
                   &lt;b&gt; value.className = "holiday"
&lt;/b&gt;                Case 2
                    &lt;b&gt;value.className = "vacation"
&lt;/b&gt;                Case 3
                    &lt;b&gt;value.className = "other"
&lt;/b&gt;            End Select

            If i Mod 2 = 1 Then ' if even we will add an end date
                value.EndDate = ToUnixTimespan(starting.AddDays(1 + (i * 3)))
            End If
            events.Add(value)
        Next
        ' Serialize the return value so it can be decoded in java.
        Dim js As New System.Web.Script.Serialization.JavaScriptSerializer
        Return js.Serialize(events)
    End Function

&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
Now we need to add the style to the page with the calendar, once again you need to make sure the &lt;b&gt;name matches &lt;/b&gt;the name you used in the className field in the webservice.&lt;br /&gt;
&lt;br /&gt;
&lt;pre style="background-color: #eeeeee; border-bottom: #999999 1px dashed; border-left: #999999 1px dashed; border-right: #999999 1px dashed; border-top: #999999 1px dashed; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; width: 100%;"&gt;&lt;code&gt;
&amp;lt;style type="text/css"&amp;gt;
    &lt;b style="color: red;"&gt;.holiday&lt;/b&gt;, 
    .fc-agend a &lt;b style="color: red;"&gt;.holiday &lt;/b&gt;.fc-event-time,
    &lt;b style="color: red;"&gt;.holiday &lt;/b&gt;a
    {
        background-color: Olive; /* background color */
        border-color: Olive;     /* border color */
        color: White;           /* text color */
    }
    .vacation, 
    .fc-agend a .vacation .fc-event-time,
    .vacation a
    {
        background-color: Maroon; /* background color */
        border-color: Maroon;     /* border color */
        color: White;           /* text color */
    }
    .other, 
    .fc-agend a .other .fc-event-time,
    .other a
    {
        background-color: Fuchsia; /* background color */
        border-color: Fuchsia;     /* border color */
        color: White;           /* text color */
    }
&amp;lt;/style&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
Run the example and you should have colored events! &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span&gt;&lt;iframe align="right" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=chautauquacen-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=0470499834&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: right; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style="font-size: large;"&gt;The key to this is to watch the names and make sure you are consistant.&lt;/span&gt;&lt;/strong&gt; &lt;br /&gt;
&lt;br /&gt;
Up next will be integrating a tooltip with matching colors.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3870202655663238104-3469115083053330583?l=jake1164.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/2wsbRfx_dR1wz59r6Qteeo8lM9g/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/2wsbRfx_dR1wz59r6Qteeo8lM9g/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/2wsbRfx_dR1wz59r6Qteeo8lM9g/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/2wsbRfx_dR1wz59r6Qteeo8lM9g/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/JakesStuff/~4/9icK0j9UK_M" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://jake1164.blogspot.com/feeds/3469115083053330583/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://jake1164.blogspot.com/2010/07/adding-dynamic-color-to-fullcalendar.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3870202655663238104/posts/default/3469115083053330583?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3870202655663238104/posts/default/3469115083053330583?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/JakesStuff/~3/9icK0j9UK_M/adding-dynamic-color-to-fullcalendar.html" title="Adding dynamic color to FullCalendar from ASP.NET Webservice." /><author><name>Jake</name><uri>http://www.blogger.com/profile/12545015652530509920</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="31" height="21" src="http://4.bp.blogspot.com/_bXD9jF8WO_M/TEggF3GK_vI/AAAAAAAAAbQ/6agrpy7c-QU/S220/Wood.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://jake1164.blogspot.com/2010/07/adding-dynamic-color-to-fullcalendar.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0YBRXY_fSp7ImA9Wx9bFkk.&quot;"><id>tag:blogger.com,1999:blog-3870202655663238104.post-5207342822210864160</id><published>2010-06-22T12:03:00.002-04:00</published><updated>2011-02-25T08:39:14.845-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-02-25T08:39:14.845-05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="VB.NET" /><category scheme="http://www.blogger.com/atom/ns#" term="FullCalendar" /><category scheme="http://www.blogger.com/atom/ns#" term="jquery" /><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET" /><title>jQuery FullCalendar and ASP.NET</title><content type="html">I needed to display a simple event calendar and looked around for the easiest path to the solution and found &lt;a href="http://arshaw.com/fullcalendar/"&gt;fullcalendar v1.4.6&lt;/a&gt;. The control is simple and elegant, but not very asp.net and expecially vb.net friendly. This is how you get it to work with a VB.NET webservice that can be used to pull from a database.&lt;br /&gt;
&lt;br /&gt;
Update: v1.4.10 example can be found &lt;a href="http://jake1164.blogspot.com/2011/02/full-calendar-1-410.html"&gt;here&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
Updated!&amp;nbsp; You can now download the example code &lt;a href="http://www.staceynjasonsjourney.us/Downloads/CalendarExample1.zip"&gt;here&lt;/a&gt;.&lt;br /&gt;
I am going to assume that you are able to create a basic asp.net website, add your own calendar page and put the fullcalendar control on the page.&lt;br /&gt;
&lt;br /&gt;
First we will create a data class to return the results from the webservice.&lt;br /&gt;
&lt;br /&gt;
&lt;pre style="background-color: #eeeeee; border-bottom: #999999 1px dashed; border-left: #999999 1px dashed; border-right: #999999 1px dashed; border-top: #999999 1px dashed; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; width: 100%;"&gt;&lt;code&gt;
Public Class CalendarDTO
Private m_id As Int32    
Public Property id() As Int32
Get
Return m_id
End Get
Set(ByVal value As Int32)
m_id = value
End Set
End Property

Private m_Title As String
Public Property title() As String
Get
Return m_Title
End Get
Set(ByVal value As String)
m_Title = value
End Set
End Property

Private m_Start As Int64
Public Property &lt;span style="color: #ff6666;"&gt;StartDate&lt;/span&gt;() As Int64
Get
Return m_Start
End Get
Set(ByVal value As Int64)
m_Start = value
End Set
End Property

Private m_End As Int64
Public Property &lt;span style="color: red;"&gt;EndDate&lt;/span&gt;() As Int64
Get
Return m_End
End Get
Set(ByVal value As Int64)
m_End = value
End Set
End Property

Private m_Url As String
Public Property url() As String
Get
Return m_Url
End Get
Set(ByVal value As String)
m_Url = value
End Set
End Property
End Class
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
The part of this code you need to take special note is &lt;strong&gt;EndDate&lt;/strong&gt; and &lt;strong&gt;StartDate&lt;/strong&gt; properties, we need to convert these to &lt;strong&gt;start &lt;/strong&gt;and &lt;strong&gt;end&lt;/strong&gt; in the fullcalendar.js file.&lt;br /&gt;
&lt;br /&gt;
Next we will add the basic info to the webservice (once again I hope you can find enough examples to add a webservice on the web). Points to take note of are the startDate and endDate strings, these will be passed in as a unixTimespan and will look like a long integer, we will need to convert our dates from this format.&lt;br /&gt;
&lt;br /&gt;
&lt;pre style="background-color: #eeeeee; border-bottom: #999999 1px dashed; border-left: #999999 1px dashed; border-right: #999999 1px dashed; border-top: #999999 1px dashed; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; width: 100%;"&gt;&lt;code&gt;
Public Function EventList(ByVal startDate As String, ByVal endDate As String) As String
Dim events As List(Of CalendarDTO) = New List(Of CalendarDTO)()
' Do Some SQL Here
Using con As New SqlConnection(conString)
Dim sqlCmd As SqlCommand = New SqlCommand("GetCalendarEvents", con)
sqlCmd.Parameters.Add(New SqlParameter("@startdate", Data.SqlDbType.DateTime))
sqlCmd.Parameters("@startdate").Value = FromUnixTimespan(startDate)
sqlCmd.Parameters.Add(New SqlParameter("@enddate", Data.SqlDbType.DateTime))
sqlCmd.Parameters("@enddate").Value = FromUnixTimespan(endDate)

con.Open()
Dim sdr As SqlDataReader = sqlCmd.ExecuteReader
While sdr.Read
Dim value As CalendarDTO = New CalendarDTO()
If Not IsDBNull(sdr("EndDate")) Then
value.EndDate = ToUnixTimespan(sdr("EndDate"))
End If
value.StartDate = ToUnixTimespan(sdr("StartDate"))
value.id = sdr("Event_ID")
value.title = sdr("title")
value.url = "http://url/"
events.Add(value)
End While
End Using

Dim js As New JavaScriptSerializer
Return js.Serialize(events)
End Function

Private Function ToUnixTimespan(ByVal d As DateTime) As Int64
Dim time As New TimeSpan()
time = d.ToUniversalTime().Subtract(New DateTime(1970, 1, 1, 0, 0, 0))
Return CType(Math.Truncate(time.TotalSeconds), Int64)
End Function

Private Function FromUnixTimespan(ByVal s As String) As DateTime
Dim time As DateTime = New DateTime(1970, 1, 1, 0, 0, 0)
Return time.AddSeconds(s)
End Function
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
Now to call the json formatted webservice we need to add "Calendar.asmx/EventList" to the events to be called by the calendar plugin.&lt;br /&gt;
&lt;br /&gt;
&lt;pre style="background-color: #eeeeee; border-bottom: #999999 1px dashed; border-left: #999999 1px dashed; border-right: #999999 1px dashed; border-top: #999999 1px dashed; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; width: 100%;"&gt;&lt;code&gt;
&amp;lt;script type="text/javascript" language="javascript"&amp;gt;
$(document).ready(function() {       
$('#calendar').fullCalendar({
header: {
left: 'prev,next,today',
center: 'title',
right: 'month,basicWeek,basicDay'
},
events: "Calendar.asmx/EventList"         
//events: [{title:'event1',start:'2010-06-01'},{title:'event2',start:'2010-06-05',end:'2010-06-07'}]                        
});         
});
&amp;lt;/script&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;iframe align="right" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=chautauquacen-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=1935182323&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: right; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;br /&gt;
Last we need to make the changes to make the fullcalendar.js file VB.NET friendly. &lt;br /&gt;
Line 25 (give or take)&lt;br /&gt;
Replace the following lines: &lt;br /&gt;
&lt;pre style="background-color: #eeeeee; border-bottom: #999999 1px dashed; border-left: #999999 1px dashed; border-right: #999999 1px dashed; border-top: #999999 1px dashed; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; width: 100%;"&gt;&lt;code&gt;
startParam: ‘start’,
endParam: ‘end’,
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
with&lt;br /&gt;
&lt;pre style="background-color: #eeeeee; border-bottom: #999999 1px dashed; border-left: #999999 1px dashed; border-right: #999999 1px dashed; border-top: #999999 1px dashed; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; width: 100%;"&gt;&lt;code&gt;
startParam:’startDate’,
endParam:’endDate’,
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
This will change the passed parameters to work with the webservice created above (call using startDate and endDate instead of start and end.&lt;br /&gt;
Next we need to change all the returned fields from the webservice calendarDTO class from startDate to start and endDate to end.&lt;br /&gt;
At line 442 in the ‘reportEventsAndPop = function(a) function you need to add:&lt;br /&gt;
&lt;pre style="background-color: #eeeeee; border-bottom: #999999 1px dashed; border-left: #999999 1px dashed; border-right: #999999 1px dashed; border-top: #999999 1px dashed; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; width: 100%;"&gt;&lt;code&gt;
reportEventsAndPop = function(a) {
&lt;span style="color: red;"&gt;if (a.d) {
var a = eval('(' + a.d.replace(/StartDate/g, 'start').replace (/EndDate/g, 'end') + ')');
}&lt;/span&gt;
reportEvents(a);
popLoading();
};
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
This will convert the json to an object and replace all the ‘StartDate’ and ‘EndDate’ fields with ‘start’ and ‘end’&lt;br /&gt;
For the ajax call to work using a asp.net webservice you need to add the type: ‘Post’ since GET is not allowed, You need to specifiy the content and data type and lastly you need to use the jasn2.js script to convert the params variable to a json string to pass into the webservice.&lt;br /&gt;
At line 448 replace the $.ajax call with the following:&lt;br /&gt;
&lt;pre style="background-color: #eeeeee; border-bottom: #999999 1px dashed; border-left: #999999 1px dashed; border-right: #999999 1px dashed; border-top: #999999 1px dashed; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; width: 100%;"&gt;&lt;code&gt;
$.ajax({
url: src,
type: 'POST',
contentType: 'application/json; charset=utf-8',
dataType: 'json',
&lt;span sytle="color:red;"&gt;data: JSON.stringify(params)&lt;/span&gt;,
cache: options.cacheParam false, // don't let jquery prevent caching if cacheParam is being used
success: reportEventsAndPop });
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
Take special note of the JSON.stringify(params), this uses the json2.js script availible from &lt;a href="http://www.json.org/js.html"&gt;json.org&lt;/a&gt;. This is required to convert the passed parameters into a json formated string.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3870202655663238104-5207342822210864160?l=jake1164.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/XDDYPNA3z3SMsuFP3W-k_kFFQEs/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/XDDYPNA3z3SMsuFP3W-k_kFFQEs/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/XDDYPNA3z3SMsuFP3W-k_kFFQEs/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/XDDYPNA3z3SMsuFP3W-k_kFFQEs/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/JakesStuff/~4/Iw9jma9GPcM" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://jake1164.blogspot.com/feeds/5207342822210864160/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://jake1164.blogspot.com/2010/06/jquery-fullcalendar-and-aspnet.html#comment-form" title="4 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3870202655663238104/posts/default/5207342822210864160?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3870202655663238104/posts/default/5207342822210864160?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/JakesStuff/~3/Iw9jma9GPcM/jquery-fullcalendar-and-aspnet.html" title="jQuery FullCalendar and ASP.NET" /><author><name>Jake</name><uri>http://www.blogger.com/profile/12545015652530509920</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="31" height="21" src="http://4.bp.blogspot.com/_bXD9jF8WO_M/TEggF3GK_vI/AAAAAAAAAbQ/6agrpy7c-QU/S220/Wood.jpg" /></author><thr:total>4</thr:total><feedburner:origLink>http://jake1164.blogspot.com/2010/06/jquery-fullcalendar-and-aspnet.html</feedburner:origLink></entry></feed>

