Extending Web form Controls for validation

S

seal

I have a drop down list in a user control (that is actually put on another
user control which is then put on a page) and I need to put a required field
validator on the drop down list. I found this article
(http://support.microsoft.com/default.aspx?scid=kb;en-us;310082) which seemed
to be the answer, however I get parser errors after I follow all the steps
layed out here (see below for errors). I thought if I could get this working
as a unit test I would then try a drop down list and have my answer.
So the question(s) are:
1. Do I have to (or better yet can I) extend the control in order to use the
required field validator
2. If so can you give me an example or at least point me in the right
direction of some documentation - if its not asking too much.

Errors:
Source File: c:\inetpub\wwwroot\ExtendValidation\WebForm1.aspx Line: 2

Assembly Load Trace: The following information can be helpful to determine
why the assembly 'Class1' could not be loaded.


=== Pre-bind state information ===
LOG: DisplayName = Class1
(Partial)
LOG: Appbase = file:///c:/inetpub/wwwroot/ExtendValidation
LOG: Initial PrivatePath = bin
Calling assembly : (Unknown).
===

LOG: Policy not being applied to reference at this time (private, custom,
partial, or location-based assembly bind).
LOG: Post-policy reference: Class1
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/extendvalidation/a8ac6d44/a0bd20c7/Class1.DLL.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/extendvalidation/a8ac6d44/a0bd20c7/Class1/Class1.DLL.
LOG: Attempting download of new URL
file:///c:/inetpub/wwwroot/ExtendValidation/bin/Class1.DLL.
LOG: Attempting download of new URL
file:///c:/inetpub/wwwroot/ExtendValidation/bin/Class1/Class1.DLL.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/extendvalidation/a8ac6d44/a0bd20c7/Class1.EXE.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/extendvalidation/a8ac6d44/a0bd20c7/Class1/Class1.EXE.
LOG: Attempting download of new URL
file:///c:/inetpub/wwwroot/ExtendValidation/bin/Class1.EXE.
LOG: Attempting download of new URL
file:///c:/inetpub/wwwroot/ExtendValidation/bin/Class1/Class1.EXE.

Thanks for any input
Seal
 

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,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top