0

I put together my whole javascript functions in one file(let's say it for making clear, javascriptsample.js).

And i need to use one of the function, which is in that file, in my asp.net side using RegisterStartupScript.

How can i call this function?

1 Answer 1

2

You must give a reference of the javascriptsample.js in your aspx page...

Aftre that you can use..

ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "tmp", "<script type='text/javascript'>JavascriptFunctionname();</script>", false);
Sign up to request clarification or add additional context in comments.

Comments

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.