Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6622359
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T21:23:45+00:00 2026-05-25T21:23:45+00:00

i have a control inside a larger form (to upload files) and I need

  • 0

i have a control inside a larger form (to upload files) and I need it to validate the entire page before it submits.

<asp:Button ID="btnUpload" runat="server" CssClass="button2" Text="Upload"
OnClientClick="if(Page_ClientValidate()) {return Page_IsValid;}"
onclick="btnUpload_Click" ValidationGroup="Bgroup" />

because this is a sub control it is not part of the main validation group (i dont want to validate it unless they hit the upload button)

currently the validation fires but then the page still submits? If the page doesnt validate I would like to stop it from submiting

Thanks!

edit

i changed the onclientclick to

javascript:return productsValidation()

which is defined as

function productsValidation() {
if(Page_ClientValidate()) {
    return true;
}else {
    return false;
}       
}

and now it will stop at the validation but it wont submit once you update the required fields????

I got this working but i had to have it validate each of the groups separately because evidently there are othervalidation groups on the page that were not valid

a la

function productsValidation() {
if(Page_ClientValidate('g1') && Page_ClientValidate('g2')) {
    return true;
}else {
    return false;
}       
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T21:23:45+00:00Added an answer on May 25, 2026 at 9:23 pm

    I got this working but i had to have it validate each of the groups separately because evidently there are othervalidation groups on the page that were not valid

    a la

    function productsValidation() {
      if(Page_ClientValidate('g1') && Page_ClientValidate('g2')) {
          return true;
      }else {
          return false;
      }       
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a asp.net page content as below. There is an HtmlInputText control inside
I have an ASP.Net CheckBoxList control inside an Ajax UpdatePanel. I will include the
I'm building an asp.net cutom control inside which I have two dropdownlists: companyIdSelection and
I have 'BasketControl' control inside of repeater: <asp:Repeater runat=server ID=rptItems> <ItemTemplate> <uc:BasketControl runat=server ID=ucBasket
I have a windows form control inside wpf application using a windows forms host.
I have an asyncfileupload control inside an update panel. The file succesfully upload and
Suppose, that I need to have a HTML control inside my Flex/AIR app. The
I have a menu control inside of an updatepanel. When I hover over a
I have one control named thumbviewer inside repeater. I want to set its imageurl
I have an ESRI dropdown control inside of an ESRI toolbar. One of the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.