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

The Archive Base Latest Questions

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

I have a pop up window that is create in run time, and can

  • 0

I have a pop up window that is create in run time, and can have several text area. I need to count number of characters of its text area and show warning to users if they pass maximum number.
the application wrote by ASP.NET. I can’t use “onClientClick”, because I don’t know the name of the text area, they created run time and I save their name in a dictionary that just have in server side.
I tried to use “RegisterStartupScript” to call java script “alert” method but it doesn’t work. In fact it works but it execute all the save code and show alert after that. but I want to execute save code after user confirmation.
I think to open message box with jquery but my current windows is opening with AJAX and it won’t nice to open another AJAX page.
Can You help me and show me the way to show warning, or solving my problem.

  • 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-24T22:35:28+00:00Added an answer on May 24, 2026 at 10:35 pm

    You need to use the onkeypress or onkeyup events in the text area, and use a function like this to show the warning:

    onkeypress="checkLength(this, 200);"
    

    And the JavaScript function:

    checkLength = function(input, maxLength){
        if (input.value.length > maxLength)
            alert('Length exceeds maximum');
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i need to create a pop up window from my java. Can anyone give
I have a need to create a small pop up information box when a
If I have a button within a iframe, how can I create a pop-up
I have a fairly simple page that displays an image in a pop-up window.
I have a Qt main window that will pop up a dialog box that
I want to create an in-window pop up that darkens the entire window with
I'm trying to create a pop up box (with jQuery) that can handle forms,
I have a pop-up window a user logs into, once they are logged in
I have the following JavaScript code to pop up a window in Internet Explorer.
I have a pop up form that i wish to close on successfull submit

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.