In the Oct 20, 2008 issue of Ad Age, it was announced that YouTube is now the second largest search site at 2.6 billion searches in August (they overtook Yahoo at 2.4 billion searches). Although this doesn't come close to Google's dominance of the search category (7.6 billion), it does raise some interesting questions about the value of niche search sites.  When people are searching strictly for videos - they are turning to youtube.com to get their info. Most of these searches are regarding entertainment; and the gaming and movie industries are buying up ad space featured under "promotional videos". But I also found some interesting microsites for companies you wouldn't necessarily expect including: Bank of America (http://www.youtube.com/yourmoney) and University of Phoenix (http://www.youtube.com/UofPhoenix?feature=pyv). Lessons learned: YouTube is definitely a player in the search space. In addition to Facebook applications, your PPC campaign, blogs and other social media - consider not only posting your videos/ads on youtube.com but also creating content driven microsites for your paid ad listings to engage users with your product.  Afterall, 2.6 billion people are searching every month...

 

Went to a seminar this morning from Jive Software on social media in a B2B environment (interesting btw) and this was one of the clips they presented from Microsoft (really).

Seasonal Gems!

The fall season is upon us and as year round cyclist I'm begining to appreciate the change in seasons more and more. Though October may yield shorter days and chiller nights the sunsets on the ride home are getting better and better. Its hard to pay attention to path ahead when the best stuff is over your shoulder,  across Schuylkill rowers and behind the Piles of trees that hide our constantly backed up and beloved i76.

These are some candid shots I snapped on the ride home yesterday that prove that riding your bike to work everyday is well worth the effort.

Why would we want to change the output of ASP.NET server controls?

When writing either a custom web control derived from an existing control or a control adapter, it is not uncommon that we need to modify the html output of that is normally generated only slightly, without having to reinvent the entire wheel. In fact, saying that this "is not uncommon" is a bit of an understatement. If you've seen many of our recent development posts on this blog you will notice that we spend a fair amount of time trying to manipulate the output of asp.net. As user interfaces gain complexity and other client side frameworks enter the picture, we consistently find ourselves less than satisfied with the standard output offered by ASP.NET server controls. Recoding all of the output can be a risky proposition because the original microsoft rendering code often contains conditionals that account for various scenarios, browsers and property settings. In the case of control adapters, the ability to use virtual methods with inheritance to override the rendering of particular attributes or elements is somewhat limited. This might leave the developer somewhat stuck with needing to re-invent the wheel with their control adapter. I'll go over a simple, general technique for those, "I want to produce the exact same html except..." situations.  Keep reading to see a neat little short cut to this tak much easier, and no...we're not talking about doing string replaces on the output stream!

Adding Some Sweet JQuery Animation to Your ASP.NET Form Validators

This blog post is a continuation of my previous post on this subject. In case you haven't, I highly suggest you give it a read here so that you will have some clue what the heck I am talking about. After writing that original post, I received number of requests asking that I take it a step further by adding some animation into the mix so that my extended ASP.NET form validators are truly deserving of the title "jQuery Style". The results are pretty slick, and I have added the new functionality into our internal timesheet system and it seems to be holding it's own accross the different browsers and operating systems that we employ here at DS. And yes, I actually used JQuery to do it, since it offers some nice, quick out of the box options for animation that have been battle tested.

See Demo | Download the Source Code 

How It's Done

Ok, prepare to be dazzled. This whole addition is doable by overriding one of the .NET validation functions and adding about 2 lines of code to it.  Have a look:

   1:  ValidatorUpdateDisplay = function (val) 
   2:  {
   3:      if (typeof(val.display) == "string") 
   4:      {
   5:          if (val.display == "None") 
   6:          {
   7:              return;
   8:          }
   9:          if (val.display == "Dynamic") 
  10:          {
  11:              //changed this block to not set display to inline, but to remove style attribute entirely
  12:              //undo comments if not using jQuery
  13:              if(val.isvalid)
  14:                  $(val).hide("fast");//val.style.display = "none"; 
  15:              else
  16:                  $(val).show("fast");//val.removeAttribute("style");
  17:              return;
  18:          }
  19:      }
  20:      if ((navigator.userAgent.indexOf("Mac") > -1) && (navigator.userAgent.indexOf("MSIE") > -1)) 
  21:      {
  22:          val.style.display = "inline";
  23:      }
  24:      val.style.visibility = val.isvalid ? "hidden" : "visible";
  25:  }

 

Results Per Page 
Page: 1 2