Webpart code behind and custom layout.

Vu Hung asked on September 11, 2014 12:31

Hi, I have some webpart that are using the custom layout instead of default layout. My problem is that each time I modify some code in the code behind of the webpart, the changed doesn't affect until I have to rebuild the project (modify web.config or iisreset doesn't work).

I'm using KenticoCMS7 and this issue didn't happen on KenticoCMS5.

Can you explain how it works and how to avoid to rebuild the project?

Thank a lot :)

Recent Answers


Joshua Adams answered on September 11, 2014 19:59

You can just restart the site from the site manager interface. The restart actually adds a space into the web.config file and saves it, which restarts/builds the site. This should work for you. As for why it has to be done when you update the layout, I'm not exactly sure. I have had it happen as well, but not consistently.

0 votesVote for this answer Mark as a Correct answer

Marc Gervais answered on September 19, 2014 16:20

@Joshua - What code does this process actually build?

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.