Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Building Controls > Can you set a "required attribute" on control property?

Thread Tools

Can you set a "required attribute" on control property?

Cameron Eckman
Posts: n/a
When creating a property for a server control can you set some sort of
"required attribute", so that the developer sees the browser message you see
when you leave off an attribute on a Microsoft control:

Parser Error
Description: An error occurred during the parsing of a resource required
to service this request.
Please review the following specific parse error
details and modify your source file appropriately.
Parser Error Message: The required attribute 'ContentPlaceHolderID' is
not found on 'Content' control.
Source Error:

For right now I am just throwing HttpParseException during the Init, but
that does not behave like Microsoft's controls.


Reply With Quote

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
I have no idea, you didn't say what country state or city you're in and you can't even write a proper post anyways. richard Computer Support 7 08-01-2010 09:12 PM
if you have free time ,you can chose the pro of you like sara_love67 Computer Support 7 09-25-2007 08:29 PM
if you have free time ,you can chose the pro of you like sara_love67 Digital Photography 0 09-24-2007 08:19 PM
how do you set focus to next control on controls with autopostback so you don't have to hit tab twice? Mad Scientist Jr ASP .Net 2 06-29-2004 01:28 PM
Can you set a default property for a user control? Dave ASP .Net Building Controls 0 05-14-2004 02:01 PM