Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Accept properties in Property Box for Customr Validator /or any Custom Control

Reply
Thread Tools

Accept properties in Property Box for Customr Validator /or any Custom Control

 
 
Vinod I
Guest
Posts: n/a
 
      02-03-2004
Hi Team,

I made a custom validator control which is having 2 public properties. But
after making dll & adding that to the ToolBox, I could not able to find
these properties in Property Box.

Can any body explain me where am I wrong ? Also, if I want to make this
control as like other validator control, e.g. to skip the "Registering on
the Page", wat should I do ?

web site name which explains all these aspects really appreciated.

Thanks in advance

Cheeeeeeeeers !!!!!!!!!


 
Reply With Quote
 
 
 
 
Brian K. Williams
Guest
Posts: n/a
 
      02-26-2004
If your custon validator is a Custom Web Control...
This will add it to a new group named Custom Property:

private String _formname;
[Category("Custom Property")]
public String FormName
{
get { return _formname; }
set { _formname = value; }
}
This will add it to the existing group Data:
private String _formname;
[Category("Data")]
public String FormName
{
get { return _formname; }
set { _formname = value; }
}


Brian K. Williams

"Vinod I" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Hi Team,
>
> I made a custom validator control which is having 2 public properties.

But
> after making dll & adding that to the ToolBox, I could not able to find
> these properties in Property Box.
>
> Can any body explain me where am I wrong ? Also, if I want to make this
> control as like other validator control, e.g. to skip the "Registering on
> the Page", wat should I do ?
>
> web site name which explains all these aspects really appreciated.
>
> Thanks in advance
>
> Cheeeeeeeeers !!!!!!!!!
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Asp.net User Control or Custom control Property doesnt accept inlineasp.net constract <%= %> is there a workaround? AleXmanFree ASP .Net 3 10-09-2008 07:39 PM
Making Custom Control Properties Visible in Visual Studio's Properties Palette Nathan Sokalski ASP .Net 0 10-17-2005 02:05 AM
Making Custom Control Properties Visible in Visual Studio's Properties Palette Nathan Sokalski ASP .Net Building Controls 0 10-17-2005 02:05 AM
RE POSTING Problem with a text box with custom properties in the IDE !!!HELP any MVP!! Sanjay Pais ASP .Net 0 08-04-2005 03:34 PM
Accepty Properties in Property Box for Custom Validator Control Vinod I ASP .Net 1 01-31-2004 06:36 PM



Advertisments