2

I have a page that calls RegisterClientScriptInclude. For some reason, the script isn't included though. If I change it to RegisterStartupScript or RegisterClientScriptBlock, the script isn't written to the markup either.

Why might this be? Are there certain preconditions that may preclude a client script from being registered?

1
  • can you post some codes? Commented Dec 15, 2009 at 0:42

1 Answer 1

4

Are you using Ajax? If you're using MS Ajax, you should be using the ScriptManager.Register....() methods.

If you're using straight webforms, you should be using the ClientScriptManager.Register....() methods.

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.