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 7825805
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T09:09:27+00:00 2026-06-02T09:09:27+00:00

I have an using an ascx control ina DotNetNuke framework that lets users input

  • 0

I have an using an ascx control ina DotNetNuke framework that lets users input a phone number into a textbox. It has a requirement for an input mask (999) 999-9999 and a checkbox that toggles the input mask off/on to allow international numbers to be input.
I had several problems with the asp.net ajax control toolkit when I tested Chrome so I decided to try jQuery with the jquery.maskedinput-1.3.min.js extension even though I’m new to it
I got the mask applied by adding the following code in the script section but the checkbox but only works once.
I think this is because the textbox is in an update panel. The checkbox has autopostback enabled but I don’t know how to capture that event to force a reload of the javascript.

    jQuery(document).ready(function () {
        jQuery(".primarymask").mask("(999) 999-9999");

        jQuery("input[name=ckbIntPrimaryPhone]").click(function () {
            if (jQuery(this).is(":checked")) {
                jQuery(".primarymask").mask("");
            }
            else {
                jQuery(".primarymask").mask("(999) 9999-9999");
            }
        }); 
    });

I tried using the code below then repeating the js functions but the mask only goes away until clicked then comes back all the time.

    var prm = Sys.WebForms.PageRequestManager.getInstance();
    prm.add_endRequest(function () {

\
}

  • 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-06-02T09:09:29+00:00Added an answer on June 2, 2026 at 9:09 am

    You can try this:

    Put this code into your ascx/aspx code file

    <asp:ScriptManager ID="ScriptManager1" EnablePartialRendering="true" syncPostBackTimeout="70" runat="server" />
    
    <script language="javascript" type="text/javascript">
        Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(update_start);
        Sys.WebForms.PageRequestManager.getInstance().add_endRequest(update_end);
        function update_start(sender, args) {
            // code here executes when update panel begins to update
        }
    
        function update_end(sender, args) {
            // code here executes when update panel is done updatinging
        }
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a partial control formy.ascx that I am using on a lot of
I have a page containing a control called PhoneInfo.ascx. PhoneInfo is dynamically created using
I am using Javascript for my ascx control. I have 2 tables, one below
Does anyone have any recommendations about using a .ascx file (user control) versus a
I have an Ascx control which I reload every Page_load using Loadcontrol . This
I have an ASP.Net UserControl that looks like this: <%@ Control Language=C# AutoEventWireup=true CodeBehind=WebUserControl1.ascx.cs
I have an ascx control which contains dropdownboxes I want to be able to
I have LogOn.ascx control which is located on master page site.master: <% Html.RenderPartial(LogOn); %>
I currently have a dropdown inside an ascx control. I need to find it
I have an ASP.NET web application. One of the ASCX control in my app

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.