3512

Link Button Click on Master Page causing Content Page Validators to Fire

Question:

In my ASP.Net page, i have a few link button controls which are placed in the master page. Whenever i click on the link button , the required field validators which are part of content page gets fired.

I don't want the validators to fire when someone clicks on the Link Buttons which are part of master page. Is there any way i can set the Page.ClientValidate() to true through javascript ??

Answer1:

There's a CausesValidation property which you can set to false for such controls.

You may also run into a situation where you wan't to keep validation groups seperate, then there's a ValidationGroup property for that. Only controls within the same validation group triggers validation in such cases. By default, all controls belong to the validation group without a name (empty string), that's why you're experiencing this problem.

Recommend

  • Scroll down whole browser window
  • Android fade in not working
  • TFS edit build log using custom activity
  • Rails 4.0.0 jQuery Mobile button icons not showing in production
  • JQM (jQueryMobile) Problem with AJAX content and focus()
  • Update SQL MS Access 2010
  • UI-GRID column summation on checkbox change
  • Extjs, handling success or failure when doing a standard submit in a form
  • qt how to know that a pushbutton is clicked?
  • Chrome breakpoint on radio doesn't fire
  • Each Radiobutton for each form or 1 Form for all radiobuttons?
  • How to replace TouchesBegan with UIGestureRecognizer
  • Fire callback when selection was made with select2 4.0, and retrieve the value of last selection
  • Entity Framework ObjectContext: Concurrency
  • How to name a 'group' check box in Adobe Reader when wanting to fill form by FDF / XFDF
  • Creating a Multi-Step Modal Using Jquery
  • Android onKey w/ virtual keyboard
  • How do I Dispose a HttpResponseMessage in my Web Api Method?
  • Change Checkbox value without raising event
  • Using MouseListener to select a range of cells in a grid
  • Dart - Isolate Cross Window Communication
  • Debug.DrawLine not showing in the GameView
  • Android full screen on only one activity?
  • Jquery UI tool tip close icon
  • What is Eclipse's Declaration View used for?
  • DotNetZip - Calculate final zip size before calling Save(stream)
  • htaccess rewriting URLs with multiple forward slashes
  • Display Images one by one with next and previous functionality
  • Adding custom controls to a full screen movie
  • Web-crawler for facebook in python
  • Jquery - Jquery Wysiwyg return html as a string
  • Warning: Can't call setState (or forceUpdate) on an unmounted component
  • SVN: Merging two branches together
  • Traverse Array and Display in markup
  • A cron job substitute?
  • Load html files in TinyMce
  • Free memory of cv::Mat loaded using FileStorage API
  • Qt: Run a script BEFORE make
  • Append folder name and increment by 1 using batch script
  • reshape alternating columns in less time and using less memory