• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 177
  • Last Modified:

Custom control design time rendering

Hi,

Is there a way to show something at design time and another thing when the web page is actualy showed.
I have built a custom web control with a built in javascript pull down menu, it's working well but since the javascript is generated in the "render" event
nothing is showing at design time. What I'd like to do is to show a square with a label marking the position of the menu in design time but generating the real menu when the control is used in a page.
Is there a event or a condition occuring only in design time??

Thanks

0
hqdev
Asked:
hqdev
  • 2
1 Solution
 
BurntSkyCommented:
Ah, this is a fun one.  What you'll have to do is create a ControlDesigner class for your control and override the GetDesignTimeHtml() method.  

Check out the following link:
http://aspalliance.com/articleViewer.aspx?aId=436&pId=-1
0
 
hqdevAuthor Commented:
Great BurntSky! Thats exactly what I was looking for!

Thanks
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now