.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Room and Equipment Reservations - Customization of Availability Time per Resource

Posted By:      Posted Date: August 31, 2010    Points: 0   Category :SharePoint
Hi All, My user wants the Room and Equipment Reservations' look and feel be customized. We are using MOSS 2007. The objective is to change the color of the Time Reserved in the Reserve a Resource link per resource. This can be found in sharepointsite/Lists/Reservations/Availability.aspx. For example: Resource 1 = All Time Reserved is in color Red. Resource 2 = All Time Reserved is in color Blue. Resource 3 = All Time Reserved is in color Green. I used SharePoint Designer 2007 and found out that the Time Reserved is using an image named blueGradient.jpg as background image for container. I tried modifying this but I ended up replacing all for every resource. I tried adding background-color for the code below as well, but is yet unsuccessful in customizing it per resource. <tr>      <td nowrap="" class="resource" style="padding-left:2px; padding-right:2px"><a href="/{$directory}/DispForm.aspx?ID={$id}" onclick="javascript:this.href = unescapeProperly(escape(this.href)); GoToLink(this); return false;" target="_self"><xsl:value-of select="$fieldvalue" /></a></td>      <td class="resource" style="width:100%">       <div class="container" style="{$STA

View Complete Post

More Related Resource Links

Room and Equipment Reservation Template - Change Availability Date Calendar


I have customize the availability.aspx page and added some lookup drop-down fields to filter by additional criteria (Resource Type, Room Capacity, Location, Floor, Equipment). As i select from the drop-down it filters the list of available resources and it displays availability by the current date only, I need to see availability by the day, week and month from this screen. How do I change the display view?



Rooms and Equipment Reservations Application template using WSS 3.0 issue.

I have set up a conference room reservations site using the RER template, I have questions...The template functions pretty much as I want out of the box, except for two items.1.)  Any User can delete any other user's reservation.2.)  Any User can delete a resource.Does anyone know of a way to resolve these issues?  All users need contribute permissions to use the site.

Room and equipment reservation template more than 20 resources

We want to use the room and equipment reservation template in our company.
It worked fine until we created more than 20 resources. When reserving a rescource, starting from the availabilitiy page, the new items dropdown wasn't focussed anymore.
After we deleted resources until 20 remained the focus worked again.
Does anyone know how to solve this, because we need to have more than twenty resources.


Workflow failed to start in Room Equipment Reservation Site


I created a site using Microsoft's Room and Equipment Reservation template. I created a workflow to send an email to confirm reservation using sharepoint designer. I get the following error on workflow status: workflow failed to start (retrying). The error detail on the log file is:

RunWorkflow: System.ArgumentException: Value does not fall within the expected range.     at Microsoft.SharePoint.SPList.GetItemById(Int32 id, String strRootFolder, Boolean cacheRowsetAndId)     at Microsoft.SharePoint.SPList.GetItemById(Int32 id)     at Microsoft.SharePoint.Workflow.SPWorkflowNoCodeSupport.LoadWorkflowBytesElevated(SPWeb web, Guid docLibID, Int32 fileID, Int32 fileVer)     at Microsoft.SharePoint.Workflow.SPWorkflowNoCodeSupport.<>c__DisplayClass2.<LoadWorkflowBytes>b__0()     at Microsoft.SharePoint.SPSecurity.CodeToRunElevatedWrapper(Object state)     at Microsoft.SharePoint.SPSecurity.<>c__DisplayClass4.<RunWithElevatedPrivileges>b__2()&n

User Interface Customization Resource Center | SharePoint 2010

Learn how to customize and extend the Server ribbon, Web Parts, pages, and other elements in the SharePoint user interface.

Visual Studio can't resolve static resource in WPF window, even though it works at run time - why?


I have a WPF window and am using the MVVM pattern. I set the view model as a resource for the window as follows...

  ...other stuff removed for clarity...
  <mvvm:DhrTemplatesViewModel x:Key="viewmodel" />

I want to set the window's data context to use the resource, and found that the following XAML works...

<StaticResource ResourceKey="viewmodel"/>

The problem is that I can only do this by typing the XAML manually, Visual Studio doesn't show the resource anywhere. I can go to the window's properties and click the little icon next to the DataContext property, click the "Apply resource" option, but it doesn't show "viewmodel" as a resource, static or dynamic. If I enter the XAML manually and then open the "Apply resource" pop-up window, it has the "viewmodel" underlined as an error, and hovering over it shows a tooltip "cannot resolve resource reference"

However, when I run the application, it works fine, so the resource is being resolved at run time.

Anyone ab

Round off time to the nearest minute

How would you round this up to the nearest minute? There isn't a built in function to do this so you have to use a little bit of maths to get there. There are 60 seconds in a minute. We already have 38 seconds on the clock. So we need to add on 60 - 38 = 22 more seconds.

Performance Tests: Precise Run Time Measurements with System.Diagnostics.Stopwatch

Everybody who does performance optimization stumbles sooner or later over the Stopwatch class in the System.Diagnostics namespace. And everybody has noticed that the measurements of the same function on the same computer can differ 25% -30% in run time. This article shows how single threaded test programs must be designed to get an accuracy of 0.1% - 0.2% out of the Stopwatch class. With this accuracy, algorithms can be tested and compared.

Date and Time Functions in SQLSERVER

Date and time functions allow you to manipulate columns and variables with DATETIME and SMALLDATETIME data types.

1 DATEPART Function
2 DATENAME Function
3 DAY, MONTH, and YEAR Functions
5 DATEADD Functions
6 DATEDIFF Function
7 More SQL Server Functions

Data Types - Date and Time in SqlServer

Date and time values can be stored with either the DATETIME or SMALLDATETIME data type. The difference between the two is that SMALLDATETIME supports a smaller range of dates and does not give the same level of precision when accounting for time. The DATETIME data type can hold values from January 1st of 1753 to December 31st of 9999. The time is stored to the 1 three hundredths of a second and each value takes up 8 bytes of storage. The SMALLDATETIME data type can hold values between January 1st 1900 and June 6th of 2079. The time is tracked to the minute and each value takes up 4 bytes of storage. The majority of business applications can live happily with SMALLDATETIME, however, if you are in an environment where each second matters or you need to make estimates to the distant future (or past) then you have to resort to DATETIME. If you fail to specify the time when inserting a value into a DATETIME or SMALLDATETIME column, a default of midnight is used. If you fail to specify the date portion the default of January 1, 1900 is used.

How to programmatically add controls to Windows forms at run time by using Visual C#

Create a Windows Forms Application
Start Visual Studio .NET or Visual Studio 2005 or a later version, and create a new Visual C# Windows Application project named WinControls. Form1 is added to the project by default.
Double-click Form1 to create and view the Form1_Load event procedure.
Add private instance variables to the Form1 class to work with common Windows controls. The Form1 class starts as follows:

.NET 4 Web Application Startup Time

I was chatting with Jonathan Hawkins and some of the folks on the ASP.NET team about performance and Jonathan mentioned the startup time for large ASP.NET applications is improved on .NET 4. There are some improvements in the CLR and in ASP.NET itself that helped. If you have a giant app, you should do some tests.

Built-in Functions - Date and Time Functions

Date and time functions allow you to manipulate columns and variables with DATETIME and SMALLDATETIME data types.

Essential SQL Server Date, Time and DateTime Functions

The essential date and time functions that every SQL Server database should have to ensure that you can easily manipulate dates and times without the need for any formatting considerations at all.

Date/Time Conversions Using SQL Server

There are many instances when dates and times don't show up at your doorstep in the format you'd like it to be, nor does the output of a query fit the needs of the people viewing it. One option is to format the data in the application itself. Another option is to use the built-in functions SQL Server provides to format the date string for you.

Date and Time Data Types and Functions

The following sections in this topic provide an overview of all Transact-SQL date and time data types and functions. For information and examples that are common to date and time data types and functions

The Free Barcode Creator produces barcode images one at a time, and allows easy saving to a file or

The Free Barcode Creator produces barcode images one at a time, and allows easy saving to a file or pasting into an application. 2D versions are also available:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend