Extending Web form Controls for validation

Discussion in 'ASP .Net Web Controls' started by seal, Sep 29, 2005.

  1. seal

    seal Guest

    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
    seal, Sep 29, 2005
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Colin Basterfield

    Web form validation vs object validation

    Colin Basterfield, Nov 28, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    425
    Tommy
    Nov 29, 2003
  2. Matt
    Replies:
    14
    Views:
    4,096
    Chad Z. Hower aka Kudzu
    Jan 30, 2004
  3. dustbort
    Replies:
    0
    Views:
    356
    dustbort
    Jul 19, 2006
  4. JJ

    extending web controls

    JJ, Oct 26, 2006, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    98
    senfo
    Oct 27, 2006
  5. bnp
    Replies:
    4
    Views:
    321
Loading...

Share This Page