Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Writing A Value To A JavaScript

Status
Not open for further replies.

neroe

Technical User
Feb 27, 2003
54
0
0
GB
Morning All

I have a JavaScript on a .aspx which is located inside the heads tags. I need to be able to write a variable to the script i.e. var orderRef = <%= varName%>;. But I don't seem to be able to do it as the <%= %> tags do not turn yellow. Any ideas?

Thanks in advance.
 
Yes, simply create the javascript server-side and add it to the page by using the RegisterClientScriptBlock method.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top