FebMarch 2004Apr
SMTWTFS
29123456
78910111213
14151617181920
21222324252627
28293031123
45678910

Site Stats

  • Posts - 475
  • Articles - 94
  • Comments - 577
  • Trackbacks - 231

News

All the news that's fit to print.

Disclaimer

  • These postings are provided
    "AS IS" with no warranties, and confer no rights.

Desktop Cam

  •  

My Flickr Photos

  •          

Post Categories

Article Categories

Archives

Image Galleries

My Bookshelf

In My CD Player

Blogs I Like To Read

Longhorn Links

MCE 2005 Sites

Newsgator Online Services

Sharepoint Links

Useful Links

Web Design Sites

Windows Server Links

Miscellany

  •             

  •                 

  •                 

Friday, March 26, 2004 #

I understand why this probably happens, but I'd really like to know how to get around it:  Any time I try to post a snippet of code in a post with .Text, it assumes it's HTML code and dorks up my post.  How do I post code snippets without .Text screwing it up?  Sorry, but this REALLY is annoying.

posted @ 7:51 PM

I've put the DesktopCam back on the page after re-skinning .Text.  For those that expressed interest, I've packaged up the ASP.NET code required to make it display as well as an example of my PageTemplate.ascx file so that you can do the same if you'd like.

I'm using a program called SCWebCam3 (donation ware) from http://www.harmlesslion.com.  It takes a screenshot on a schedule and uploads a thumbnail and a large version via FTP.  I posted about it originally in this post.

  • Make a good backup of the .Text skin you'll be “playing“ with.  :-)
  • The DesktopCam control is super simple - it doesn't have to be a control at all...you could just edit the PageTemplate.ascx file and paste the code in there.  It's just ASP.NET code to display a thumbnail of my desktop capture as a hyperlink to the larger version which opens in a new window. 
  • Open up the DesktopCam.ascx file and change the paths to the thumbnail and full-size screenshots to match your configuration.  Then, copy the DesktopCam.ascx file to the “Controls” directory of the .Text skin you're using.  (Download the DesktopCam.aspx file by clicking here.) 
  • Edit the PageTemplate.aspx file for the skin you're using with a text editor (or Visual Studio.NET).  At the top, you must register the new DesktopCam control so that the PageTemplate.aspx file will be able to call it.  To do this, just add the following line at the top of the file somewhere among the other control registrations you'll see: <%@ Register TagPrefix=“uc1“ TagName=“DesktopCam“ Src=“Controls/DesktopCam.ascx“ %>
    Next, you need to actually call the DesktopCam control from the PageTemplate in the location you'd like it to be.  To call the DesktopCam control, you would add the line: <uc1:DesktopCam id=“DesktopCam1“ runat=“server“></uc1:DesktopCam>
  • The placement of the line above will determine where it shows up.  I've posted my PageTemplate.ascx file so you can see what I'm talking about.  (Download the PageTemplate.ascx file by clicking here.) 
  • Upload your PageTemplate.ascx file to the root of the directory of the .Text skin you're using.  Refresh.  You should be done!

I feel like I'm missing something here...let me know if I am.

posted @ 7:42 PM