I don't want no stinkin <span>

by joey.westcott 26. March 2009 15:34

Goal:
The label control adds <span> tags around the text when rendered, I needed to have these removed. I also show how to replace the <span> tag with whatever tag you would like.

I currently work on a site that has a custom built CMS, which is not always a good thing.  Now don't get me wrong there are some great ideas in this home grown CMS, but just like any application there are some wrong/bad things as well.  Here is one of those bad things that I had the time to fix recently. 

The web site content is entered via a WYSIWYG editor by whoever is responsible for the content, this markup (from the WYSIWYG) is stored in the database along with flags/keys that determine when to display this content.  If a few content items score the same then they all get built together, each one in its own Label control.  This is all fine and dandy, but when it comes time to dynamically create this content and add it to the current page is when they go less than ok.  Because of some limitations of the rest of the framework the content has to be built inside a System.Web.UI.WebControls.WebControl, ok this is fine except we are limited to a select few controls that fall into that category.

More...

Currently rated 3.8 by 4 people

  • Currently 3.75/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , ,

Development | .Net | Work

TF14082: Can not lock item message during a branch/merge

by joey.westcott 6. September 2008 19:45

This morning I was creating a branch in Team Foundation Server via VSTS, the branch name that I wanted to use was one that has been used before and is in fact still sitting around but is now old and out of date. So it being so out of date I just decided to delete the branch and then recreate if from the main branch of code.  After deleting the branch, I went to create the new branch and I get the message "TS14082: Can not lock item $/projectName/../filename.ext for merging. This item is checkout to another workspace".

tfs.cannot.lock.item 

At this point I have already deleted and committed the changed to the branch of code that I'm trying to recreate.  So being able to see what or even find who has files checked out was not an option, I was for the most part out of luck, well at least using the default tools that come in VSTS.  So I fired up the trusty Team Foundation SideKicks application and opened the Status Sidekick. This application allows you to search and view who has files checked out and what each of those files are (great tool, go get it). This tool allows you to filter based on username or even project name and then shows a nice tree view of all the files that are checked out and who has them checked out.

team.foundation.sidekick.status.screen

After gathering the details above I contacted each of the offending people who had items checked out in the old, now deleted branch, and asked them to "undo changes" to each of the files that were locked.  After all the files are no longer checked out or locked in any way, it allowed me to go ahead and recreate the branch using the same name.

What if you cant get a hold of those people or they cant undo the changes?
Lucky for you that the Team Foundation Sidekicks - Status Sidekick also supports undoing others pending changes. It accomplishes this by using the following command from the commandline:

tf undo $/path/to/file.txt /workspace:<WSname>;<domain\user>

Currently rated 5.0 by 1 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: ,

Development | Work

Could not load file or assembly 'App_Web...'

by joey.westcott 10. August 2008 16:37

Could not load file or assembly 'App_Web_9olwzuwu, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
 

Error:
Every now and then an ASP.Net 2.0 production app is coming up with the error “Could not load file or assembly 'App_Web...".   The app works fine up until that point and then it breaks and the only solution seems to be a full recompile.   It somehow seems like it is occurring when the application has recycled and .Net Framework recompiles the site to its temp files. 

More...

Currently rated 5.0 by 1 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

Development | .Net | Work

Microsoft case study on Performance Point

by joey.westcott 15. November 2007 21:21
A little while back while i was working for Skanska USA Building Inc; Skanska had been working with MS to design and blueprint an architecture on how they could leverage its newest BI tools, Performance point.  Microsoft saw our application of the tools and decided to do a case study and video to be displayed at the global launch of Performance Point.  They sent in a film crew that shot video a couple managers and a few other members of the IT staff, i just happen to be one of the few that managed to sneak in for a few scenes.  While i really had no role in the implementation of Performance Point i do still enjoy being in a case study / video on MS website. 

Links to the video and case study:
Case Study (video link also in the top right-hand corner)
Video

 

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

Work

Powered by BlogEngine.NET 1.4.5.0
Theme by Mads Kristensen