Is it possible to embed <% ... %> tags in a javascript file and have it render the appropriate server-side code? How can this be done?
Is it possible to embed <% … %> tags in a javascript file and
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 process is actually backwards from what you’re thinking.
You create an *.aspx page that renders to a JavaScript file. You can then reference that *.aspx page in your
<script>tag: