Re: custom control designer & content pages
am 14.04.2008 14:59:23 von nemtsev
Hello gerry,
Everything ok with your code - it works fine and I see controls in designer
- i just rebuld project and everything okey-dokey
As I understand u are using VS 2008. Try to install the VS 2008 hotfix -
it was shiped this february.
google to find it
---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour
"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
g> asp.net 3.5 , vs 2008
g>
g> solution contains :
g> 1 library
g> 1 web project
g> The library contains a single custom WebControl ( SimpleControl ) and
g> it's
g> associatied ControlDesigner ( SimpleControlDesigner).
g> The Web project contains a reference to the library, a master page
g> and a
g> content page.
g> If I drop the custom control on the master page , the control display
g> properly.
g> However if I view the content page , I get the following error on the
g> custom
g> control :
g> Error creating control : SimpleControlOnMaster
g> Failed to create designer 'Lib.Controls.SimpleControl' , Lib ,
g> Version=1.0.0.0 , Culture=Neutral , PublicKeyToken=null'
g> If I drop the custom control on the content page, it displays as it
g> should, the control on the master page still displays an error.
g>
g> The attached solution illustustrates the problem.
g>
g> Am I doing something wrong or does vs2008 vwd still have issues with
g> master pages ?
g>
g> Gerry
g>
Re: custom control designer & content pages
am 14.04.2008 19:18:13 von Gerry
The hotfix was applied when it was released.
Playing with this a bit , I found that if I open the master page in the
designer and then open the content page ( with the master page still open )
, the controls display fine.
If I open the content page without having the master page open, then the
controls do not display properly.
"Michael Nemtsev [MVP]" wrote in message
news:900895ec37a438ca6c9a50b81260@msnews.microsoft.com...
> Hello gerry,
>
> Everything ok with your code - it works fine and I see controls in
> designer - i just rebuld project and everything okey-dokey
> As I understand u are using VS 2008. Try to install the VS 2008 hotfix -
> it was shiped this february.
>
> google to find it
>
> ---
> WBR, Michael Nemtsev [.NET/C# MVP] :: blog:
> http://spaces.live.com/laflour
> "The greatest danger for most of us is not that our aim is too high and we
> miss it, but that it is too low and we reach it" (c) Michelangelo
>
> g> asp.net 3.5 , vs 2008
> g> g> solution contains :
> g> 1 library
> g> 1 web project
> g> The library contains a single custom WebControl ( SimpleControl ) and
> g> it's
> g> associatied ControlDesigner ( SimpleControlDesigner).
> g> The Web project contains a reference to the library, a master page
> g> and a
> g> content page.
> g> If I drop the custom control on the master page , the control display
> g> properly.
> g> However if I view the content page , I get the following error on the
> g> custom
> g> control :
> g> Error creating control : SimpleControlOnMaster
> g> Failed to create designer 'Lib.Controls.SimpleControl' , Lib ,
> g> Version=1.0.0.0 , Culture=Neutral , PublicKeyToken=null'
> g> If I drop the custom control on the content page, it displays as it
> g> should, the control on the master page still displays an error.
> g> g> The attached solution illustustrates the problem.
> g> g> Am I doing something wrong or does vs2008 vwd still have issues with
> g> master pages ?
> g> g> Gerry
> g>
>