Hi Ron,
If your control implements the IComponent interface (which it does when you inherit from Control), you can use this syntax:
Code:
if (this.Site.DesignMode == true)
{
// Design Mode
}
else
{
// Run-time
}
I only discovered this recently, and haven't really implemented it yet in my controls (I check for ClientID == null), but I think this should work.
Cheers,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to:
Aqueous Transmission by
Incubus (Track 13 from the album:
Morning View)
What's This?