Results 1 to 5 of 5

Thread: How to disable ASP.NET Server Controls validation

  1. #1
    Join Date
    Feb 2010
    Posts
    530

    How to disable ASP.NET Server Controls validation

    Hi everybody,

    I already created my own custom server controls. It inherit a label control, and also support scroll bars. The ultimate control with a Panel control all of the properties, plus I add some custom attributes. Now i need to disable the ASP.NET Server Controls validation. How to do it. Please suggest. Thanks in advance.

  2. #2
    Join Date
    Apr 2008
    Posts
    1,948

    How to disable ASP.NET Server Controls validation

    In a particular control to disable validation in ASP.net. The control's CausesValidation property is set to false. The following example shows how to create a "Cancel" button in order to avoid validation checks:

    Code:
    <asp: Button id = "Button123" runat = "server"
    Text = "Cancel" CausesValidation = "False">
    </ asp: Button>
    Check and reply.

  3. #3
    Join Date
    May 2008
    Posts
    2,012

    How to disable ASP.NET Server Controls validation

    If you want to disable validation controls. You can do validation control's Enabled property is set to false. If you want to disable client-side validation. You will validate the control EnableClientScript property is set to false. You may need to avoid verification. For example, you may have a page, even if the user does not correctly complete all certification fields. All the best.

  4. #4
    Join Date
    Apr 2008
    Posts
    2,005

    Re: How to disable ASP.NET Server Controls validation

    You can set the ASP.NET Server control to bypass the client and server authentication, not just client-side validation. But i suggest you to check by default, theASP. NET web page to execute the request user input validation to ensure that the content does not include script or HTML elements. You can explicitly disable this feature. Best of luck.

  5. #5
    Join Date
    May 2008
    Posts
    2,297

    Re: How to disable ASP.NET Server Controls validation

    You also can disable the validation controls, so that it is simply not rendered on the page and not to use the control verification. If you want to perform validation on the server, does not perform client authentication, you can set individual validation controls do not generate client-side script. If the client dynamic update on the lead page layout problems, or if you want to perform some server code before validation of this measure will be particularly useful. Check and reply if you need more information.

Similar Threads

  1. How to disable the addon controls in new firefox 8
    By Sachi Trivedi in forum Technology & Internet
    Replies: 5
    Last Post: 01-12-2011, 10:15 PM
  2. Replies: 5
    Last Post: 26-08-2010, 05:15 PM
  3. Disable Firefox Parental Controls
    By TAARIQ in forum Operating Systems
    Replies: 3
    Last Post: 01-04-2009, 11:50 PM
  4. Disable cell validation on form DataGridView
    By Chandrakant81 in forum Software Development
    Replies: 3
    Last Post: 06-02-2009, 05:52 PM
  5. Can I disable Parental Controls?
    By Marisa in forum Vista Help
    Replies: 3
    Last Post: 14-01-2008, 01:04 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,137,660.63997 seconds with 17 queries