28 novembre 2007

How to show the CalendarExtender over a dropdown?

1. Add a new item (Style Sheet) to your project and call it ajaxcalendarfix.css
2. In the css file paste the following:
.ajax__calendar
{
position: relative;
left: 0px !important;
top: 0px !important;
visibility: visible;
display: block;
}
.ajax__calendar iframe
{
left: 0px !important;
top: 0px !important;
}

3. In your MasterPage (or aspx page if you're not using a MasterPage) include the following line in your "head" section below all other css entries (change the path for your unique setup):



4. In the CssClass properties of your Calendar Extender, type: ajax__calendar ajaxcalendarfix
Note the space character between "ajax__calendar" and "ajaxcalendarfix".
This will take the default css properties of the Ajax Calendar and apply the bug fix in ajaxcalendarfix. Using this solution, I didn't have to mess with div tags, IFrames, z-indexes, etc.

Team Foundation Server - Undo Check Out

On various projects, there are occassions when files are left locked by team members leaving the project or while on long vacations. In VSS, the administrator could simply select the file(s) and chose to undo-checkout.
A couple of months ago, our TFS installation was moved from one domain to another and some files were locked out with user accounts from a domain that was retired. Well, being the admin, I thought it was just a matter of selecting the files and unlocking them. Well, guess what - the option either didnt show up or when it did, it was grayed out. After researching this, I found out that the way to unlock, undo-check out is using the command line options:1. Check the status of the file in question
c:\tf status "$/ProjectRoot/Project/File" /server: /format:detailed

2. Since we need to know the name of the workspace for the next few commands, the following command will give us this information
c:\tf workspaces /owner:\ /computer:* /server:

3. Unlock the 'locked' file
c:\tf lock /lock:none "$/ProjectRoot/Project/File" /workspace:;\ /s:

4. If required, undo the changes using the following command
c:\tf undo "$/ProjectRoot/Project/File" /workspace:;\ /server:

For each of the above commands, you need to have the correct administrative rights on the project/TFS server.