Geting VS '03 to play nice with my javascript

D

Darrel

I'm try to put some server-side (codebehind) variables in my javascript.
Something like this:


<script language='JavaScript'>
var monkey = <asp:literal runat="server" id="strMonkey"></asp:literal>

But VS'03 doesn't like any ASP tags being wrapped in a script tag.

So, I response-write the script tag. No my literal works, but VS '03 keeps
reformatting my javascript in design view.

I asked yesterday about this and was pointed to this article:


http://www.codeproject.com/aspnet/Mayank_Gupta.asp
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,734
Messages
2,569,441
Members
44,832
Latest member
GlennSmall

Latest Threads

Top