Solved

Why the Designer is doing this?

Posted on 2015-01-20
1
53 Views
Last Modified: 2015-01-22
The designer.cs for a web control keeps changing this:

protected global::System.Web.UI.UpdatePanel upList;

(which is correct) to this:

protected global::System.Web.UI.WebControls.WebParts.UpdatePanel upList;

(which causes compile-time errors)

I can manually correct it ... but then later on the problem surfaces again (maybe every 20 rebuilds).

Why does this happen?  Can it be permanently fixed?

Keep in mind - it does not happen EVERY single time.
0
Comment
Question by:Tom Knowlton
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 23

Accepted Solution

by:
Michael74 earned 500 total points
ID: 40560707
Use a register command on the asp page to override this behavior
<%@ Register TagPrefix="asp" Namespace="System.Web.UI" Assembly="System.Web"%>

Open in new window


You could place the system.web.dll, and system.web.design. dll in your bin folder but this introduces a security risk

http://blogs.msdn.com/b/nikhil_agarwal/archive/2014/04/19/asp-net-issue-with-auto-generated-designer-page.aspx
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question