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

  • Home
  • SEARCH
  • 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 6954361
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T14:35:45+00:00 2026-05-27T14:35:45+00:00

I am using user controls (.ascx) that each generate their own specific client validation

  • 0

I am using user controls (.ascx) that each generate their own specific client validation functions using names like ‘validate<%= NameTextBox.ClientID %>’. I would like to then call these validation functions from a higher level javascript function such as…

function checkControl(controlID) {
     //call validate function generated above using controlID 
     // instead of <%= NameTextBox.ClientID %>
}

I’d guess the syntax to call a concatenated function name is straight forward but I can’t seem to find the answer. Any help would be greatly appreciated.

Thanks,
Matt

  • 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-27T14:35:45+00:00Added an answer on May 27, 2026 at 2:35 pm

    You could do this:

    function checkControl(controlID){
       // create a concatenated function name
       var myfuncname = controlid + '_somethingelse';
       // invoke the function 
       window[myfuncname]();
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a way of using ASP.NET user-controls (.ascx files) to fill my own
We have a website that we would like to extrapolate user controls from and
I've been using user controls extensively but never use a HttpHandler and was wondering
ASP.NET: How do you debug dynamically loaded user controls using LoadControl(string path);
i have 2 textbox controls inside a usercontrol TextBoxUC.ascx i have a page.aspx that
I am building an application where a page will load user controls (x.ascx) dynamically
I've got a user control that should use caching, with VaryByControl . The .ascx
I have a website project that is consuming user controls from another shared project.
Does anyone have any recommendations about using a .ascx file (user control) versus a
i'm using AJAX to make a user control which contains a panel that contains

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.