M
Michael Lierheimer
Hallo.
After migration from ASP1.0 to ASP 2.0 I have the following problem. The
migrated code does not compile. I get an error: "Cannot implicitly convert
type 'NetView.WebUI.ctlSubDevice' to 'ASP.distributor_ctlsubdevice_ascx'.
An explicit conversion exists ...."
The line in the code behind file is:
ctlSubDevice = (NetView.WebUI.ctlSubDevice) this.FindControl("ctlSubDevice");
This code it worked in ASP.NET 1.0. An analysis of the problem showed that
the type ot the ctlSubDevice, which is NetView.WebUI.ctlSubDevice, was
implict convert to ASP.distributor_ctlsubdevice_ascx. So the cast fails.
In the aspx file, the control is registered with:
<%@ Reference Control="~/distributor/ctlsubdevice.ascx" %>
<%@ Register TagPrefix="uc1" TagName="ctlSubDevice" Src="ctlSubDevice.ascx" %>
Does anybody has a solution for this problem, or did I missed something
Yours
Michael
After migration from ASP1.0 to ASP 2.0 I have the following problem. The
migrated code does not compile. I get an error: "Cannot implicitly convert
type 'NetView.WebUI.ctlSubDevice' to 'ASP.distributor_ctlsubdevice_ascx'.
An explicit conversion exists ...."
The line in the code behind file is:
ctlSubDevice = (NetView.WebUI.ctlSubDevice) this.FindControl("ctlSubDevice");
This code it worked in ASP.NET 1.0. An analysis of the problem showed that
the type ot the ctlSubDevice, which is NetView.WebUI.ctlSubDevice, was
implict convert to ASP.distributor_ctlsubdevice_ascx. So the cast fails.
In the aspx file, the control is registered with:
<%@ Reference Control="~/distributor/ctlsubdevice.ascx" %>
<%@ Register TagPrefix="uc1" TagName="ctlSubDevice" Src="ctlSubDevice.ascx" %>
Does anybody has a solution for this problem, or did I missed something
Yours
Michael