﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebScheduler - WebScheduler, get Resource using ResourceID</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/WebScheduler-get-Resource-using-ResourceID/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>WebScheduler, get Resource using ResourceID</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/WebScheduler-get-Resource-using-ResourceID/</link><pubDate>Thu, 29 Apr 2010 13:03:25 GMT</pubDate><dc:creator>Glayaar</dc:creator><description>&lt;p&gt;In the server side, in order to retrieve the Resource detail using ResourceID you will need to iterate the Resources collection and match the ResourceID property. Here is the snippet to retrieve resource of an event in DataBound server side event handler using LINQ:&lt;/p&gt;&lt;pre&gt;protected void WebScheduler1_DataBound(object sender, ISNet.WebUI.WebScheduler.WebSchedulerDataBoundDataArgs e)&lt;br /&gt;{&lt;br /&gt;    if (e.Type == WebSchedulerObjectType.Event)&lt;br /&gt;    {&lt;br /&gt;        WebSchedulerResource res = (WebSchedulerResource)&lt;br /&gt;                (from r in WebScheduler1.Resources&lt;br /&gt;                 where ((WebSchedulerResource)r).ResourceID == ((WebSchedulerEventBase)e.DataObject).ResourceID&lt;br /&gt;                 select r).FirstOrDefault();&lt;br /&gt;&lt;br /&gt;        //Process the resource object&lt;br /&gt;    }&lt;br /&gt;}&lt;/pre&gt;&lt;p&gt; Unfortunately, WebScheduler do not provide any method to retrieve the resource using resource ID. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>WebScheduler, get Resource using ResourceID</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/WebScheduler-get-Resource-using-ResourceID/</link><pubDate>Wed, 28 Apr 2010 08:13:58 GMT</pubDate><dc:creator>vangeloni</dc:creator><description>Hi all,
&lt;p&gt;I want to set disabled time for a resource when I found an event with some defined attributes. I do it in the WebScheduler_DataBound method. When an event is bound I can get the ResourceID from property WebSchedulerEvent.ResourceID, then I have to get the corresponding Resouce. Is there some get method to get the Resource or I have to cycle the WebScheduler.Resources collection?&lt;/p&gt;
&lt;p&gt;Thanks in advance,&lt;/p&gt;
&lt;p&gt;Vince.&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>