0

I want to use

ScriptManager.RegisterClientScriptBlock(ctrlName, Page.GetType(), "msg", _script, false)

from Javascript function in

OnClientClick="CheckMaxLength(this);"

of TextBox. I want to show my custome PopUp.I am able to use it in .cs but I want it to use inside JavaScript.

2
  • Can you elaborate plz? You want to call a JS function to open a popup from inside of another function that is called in OnClientClick? Commented May 13, 2013 at 16:50
  • My Question is I have a TextBox I want to show my custom message Box once it is exceeding 5000 length in javascript may be textchange Commented May 14, 2013 at 10:45

1 Answer 1

1

The whole point of that function is to make the client run a line of Javascript, from the server.

From Javascript code, you can simply run more code directly.

Sign up to request clarification or add additional context in comments.

2 Comments

My Question is I have a TextBox I want to show my custom message Box once it is exceeding 5000 length in javascript may be textchange
@Fayaz: Yes; you need to write ordinary Javascript. What did you try? What are you having trouble with?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.