Re: Clever ways to work around the fact that control breaks VS.NET design view? (replacing a literal?)
- From: wawang@xxxxxxxxxxxxxxxxxxxx ("Walter Wang [MSFT]")
- Date: Tue, 28 Aug 2007 05:20:00 GMT
Hi Ken,
If you open the file RoundedCornersDesign.cs in VS2005 or 2008, the IDE
should notify you that the ReadWriteControlDesigner is now obsolete and you
should use ContainerControlDesigner instead.
Now, open the file RoundedCorners.cs, change:
[DefaultProperty("Text"), PersistChildren(true), ParseChildren(false),
ToolboxData("<{0}:RoundedCorners runat=server></{0}:RoundedCorners>"),
Designer(typeof(PrettyUI.Design.RoundedCornersDesign))]
public class RoundedCorners : System.Web.UI.WebControls.WebControl
{
into:
[DefaultProperty("Text"), PersistChildren(true), ParseChildren(false),
ToolboxData("<{0}:RoundedCorners runat=server></{0}:RoundedCorners>"),
Designer(typeof(System.Web.UI.Design.ContainerControlDesigner))]
public class RoundedCorners : System.Web.UI.WebControls.WebControl
{
You should see it works in VS2008. Let me know if you still have trouble to
make it work.
Regards,
Walter Wang (wawang@xxxxxxxxxxxxxxxxxxxx, remove 'online.')
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
.
- Follow-Ups:
- References:
- Clever ways to work around the fact that control breaks VS.NET design view? (replacing a literal?)
- From: Ken Fine
- RE: Clever ways to work around the fact that control breaks VS.NET design view? (replacing a literal?)
- From: "Walter Wang [MSFT]"
- Re: Clever ways to work around the fact that control breaks VS.NET design view? (replacing a literal?)
- From: Ken Fine
- Clever ways to work around the fact that control breaks VS.NET design view? (replacing a literal?)
- Prev by Date: Re: ASP.NET binding to DataReader
- Next by Date: Re: Any tricks to protect data in GridView from being copied?
- Previous by thread: Re: Clever ways to work around the fact that control breaks VS.NET design view? (replacing a literal?)
- Next by thread: Re: Clever ways to work around the fact that control breaks VS.NET design view? (replacing a literal?)
- Index(es):