Line 6 Toneport UX8 report

I can’t believe I forgot to mention this on the blog… After I worked with the Wave GTR Solo, I really liked the idea of using the computer as the amp modeller.  Right AFTER I tried GTR Solo, I started to get interested in the POD Farm from Line 6.  But, to purchase the Pod Farm, I was going to have to spend a bit of money.  Plus, at the time, I was not very thrilled with my Presonus Firestudio Project.  So, I started looking at the Line 6 Toneport UX8.  What a nice combination, a good recording interface with Line 6’s amp modelling software.  So, by selling the Presonus, I was able to justify the price.  (a $100 coupon from Sam Ash didn’t hurt, either!) 
 
Initially, I had a couple of little glitches, but between bug reporting to Line 6 and Apple resolving the OS issues, this has turned into a fantastic unit.  The guitar modelling is great!  There is virtually no latency when running POD Farm for a virtual amp.  The sounds are fantastic.  Lots of features (most of which I’ll never use), but overall, a GREAT primary multi-track audio unit for a guitarist.
 
I’m happy!  (especially looking forward to the NEXT upgrade of Pod Farm!)

How to get the ASP.NET AdRotator to hide if there is no ad to display

Some days, I wonder about the people who write the ASP.NET controls…

Today, I was implementing the AdRotator control on one of our main pages.  The control needed to do the following… display an image if there was something to display, but if not, don’t display ANYTHING.

Unfortunately, what the control does if there is nothing to display is set the image source to an empty string.   On Internet Explorer 8, this produces the following lovely result:

Doh!  That’s not what I wanted!

Fortunately, there is a quick answer.  The AdRotator control has an AdCreated event.  By assigning a bit of code to it, one can check if the ImageUrl property is blank.  At that point, it’s very easy to hide the control.

Here’s the code:

protected void AdRotator1_AdCreated(object sender, AdCreatedEventArgs e)
{
  if (String.IsNullOrEmpty(e.ImageUrl))
  {
    AdRotator1.Visible = false;
  }
}

Pretty simple, and gets rid of the ugly red ‘X’!