Attribute Design Time Support

R

Ram

Hi,
I have an user control(.ascx) file with one Text Box and a Regular Expression Validator. I wrote property in the User control Code behind (C#) to set the ErrorMessage for the RegularExpressionValidator. Now, I want this property to be displayed int the "Proeperties Window of the User control" When I drag the User control onto a form. I used some attributes like Bindable, Category, Description But I could nt see any thing in the desing time. Whats the problem? Can anyone help me with this.
Thanks
Ram
 
T

Teemu Keiski

Hi,

user controls are not designable that way in VS.NET 2002 - 2003, meaning you
can't get it to work. VS.NET 2005 will provide better design-time support
for user controls.

FYI:
http://weblogs.asp.net/scottgu/archive/2003/10/24/33379.aspx

--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist
http://blogs.aspadvice.com/joteke




Hi,
I have an user control(.ascx) file with one Text Box and a Regular
Expression Validator. I wrote property in the User control Code behind (C#)
to set the ErrorMessage for the RegularExpressionValidator. Now, I want
this property to be displayed int the "Proeperties Window of the User
control" When I drag the User control onto a form. I used some attributes
like Bindable, Category, Description But I could nt see any thing in the
desing time. Whats the problem? Can anyone help me with this.
Thanks,
Ram
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,011
Latest member
AjaUqq1950

Latest Threads

Top