Blog Home  Home Feed your aggregator (RSS 2.0)  
Design Time tips - Manuel Abadia's ASP.NET stuff
# Sunday, May 21, 2006

I’m spending a lot of time lately with the designer infrastructure and I don’t know why it’s so badly documented. I'm posting some tips that you may find useful when working with design time stuff:

  •  The designers are cached so if you have opened a WebForm, make sure you reopen it again to test your changes. Otherwise you will be running an old version of your designer.

  • The design time life cycle is very reduced from the usual life cycle:
    • Only the Init and Render stages are executed (no PreInit, PreLoad, Load, LoadComplete, PreRender or UnLoad stages are executed).
    • There’s no Context.

  • When there’s an error in a designer, very little information about the error is shown. Change the GetErrorDesignTimeHtml to display the stack trace so you can figure out where the error is without having to debug the component:

protected override string GetErrorDesignTimeHtml(Exception e)


   return CreateErrorDesignTimeHtml("Error creating the control " + e.StackTrace.ToString(), e);


  • If your component is a class library you can debug it, choosing project properties->debug->start external program->(put complete path to devenv.exe).

That's all for now.

Sunday, May 21, 2006 9:29:49 PM (Romance Daylight Time, UTC+02:00)  #    Comments [0]   ASP.NET  | 
All comments require the approval of the site owner before being displayed.
Home page

Comment (Some html is allowed: a@href@title, strike) where the @ means "attribute." For example, you can use <a href="" title=""> or <blockquote cite="Scott">.  

[Captcha]Enter the code shown (prevents robots):

Live Comment Preview
Copyright © 2020 Manuel Abadia. All rights reserved.
DasBlog 'Portal' theme by Johnny Hughes.