Solved

Why the Designer is doing this?

Posted on 2015-01-20
1
49 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:knowlton
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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Editing XSL files, 2 21
c# regex: extract & replace text between braces 6 30
C# TextBox 11 15
Asp.net mvc foreach 3 6
In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

759 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now