It seems rather convenient. I was wondering if there was a good reason to load one of the RegisterScript methods.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
The RegisterScript methods can be used without placing any markup in the page, and without knowing the specific type of the page. Also, you can add the same script more than once, and it will only be included once in the page.
This is convenient when you want to include script from a user control, as you then can use the control in different pages, and more than once in the same page.