0

I need to call my own javascript function after OnServerValidate returns positive result.

<asp:CustomValidator Display="Dynamic" OnServerValidate="DBValidate">

I cannot use jQuery or any other external javascript libraries.

1 Answer 1

1

On server write:

ScriptManager.RegisterStartupScript(this, this.GetType(), "MyScript", "alert('MyScript');", true);

This script will be executed immediately when server will return the response to client.

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

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.