Help! Refresh controls at design time.

  • Thread starter Thread starter nobody
  • Start date Start date
N

nobody

I've got a solution with two projects. One is my web application, the other
is a Web Control Library. The .aspx page has an instance of my custom web
control on it. When I make a change to the Web control's source and
recompile the solution (both projects), the .aspx page still shows the old
version of the web control on it in the designer.
How can I make the .aspx page designer refresh to show the new control that
was just compiled? As it is now, I'm having the remove the control from the
page, remove the reference from the web application project, remove the
control from the ToolBox, re-add it to the tool-box, and re-add it to the
page before it shows the newly compiled version of the control. This
*obviously* isn't the correct way, as it's causing me to go pre-maturely
gray/bald. :) What am I doing wrong?
 
Hi,

Below you can find the steps I'm doing. Basically you need to keep the
same control library version otherwise your web project holds reference
to old dll version.

Web control:
1) use fix version in assemblyInfo "1.0.0.0"
2) I also use strong name key.

Web project:
1) add project reference to control library project.
2) customize toolbox to add control library.

every time you recompile solution the changes made in certain control
shows on web pages.

HTH

Natty Gur[MVP]

blog : http://weblogs.asp.net/ngur
Mobile: +972-(0)58-888377
 
Back
Top