How to include jQuery library (.js) into webpart on С#? I need to write script, which using jQuery, and use it for action on click.
p.s.: Webpart is not visual
p.s.: is it real? =)
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.
Basically, you need to include a line like
somewhere in your webpart’s code where it will be called on every page load, e.g. in the
OnLoadmethod:This will cause a line like
to appear in your page source, and you can then use JQuery in your webpart.