Category Archives: ASP.NET

Generation of Designer File Creation Failed

I ran into the problem recently where Visual Studio 2008 could not generate the designer file for a page that was using a custom control that had templated sections. I scoured the internet and couldn’t find anything so I resorted to some old school techniques. Here are the steps I took:

  1. Rebooted (It is Microsoft after all)
  2. Deleted all of the files out of C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files
  3. Opened the Solution
  4. Ran a Clean on the solution
  5. Rebuilt

That seemed to work. Just a little heads up for other people like me. I am currently running Windows XP but upgrading to Windows 7 in September.

Re-center ASP.NET ModalPopup with Javascript

I had the problem of opening a modal popup in my ASP.NET application and showing more information when the user clicks a checkbox or radio button and the data was too big for the modal or the dropshadow wouldn’t match up with the parent window.  I searched all over the web and posted a question on StackOverflow but I couldn’t find anything.

Finally I got the brilliant idea to check the source code to see what happens  in there and then I found the answer:

$find(‘ModalPopupExtenderClientID’)._layout();

Just add that javascript to the event where you are changing the content of the modal and it will resize.