.NET way of response.write plain text?

bim12

New Member
I want to write a javascript line of code inside script tags...<BR><BR>In asp i would:<BR><BR>var ColorList = '<%=ColorList%>'<BR><BR>How to do this in .NET though *without* using a public variable in the code behind page, and using old asp <%=ColorList%> at the right point in teh page.. Is there a way to do it with a placeholder??? Or some sort of server control that doesn't wrap it's contents with a tag?I believe the <asp:literal ... /> control does not wrap its output in a tag. Not 100% sure, go ahead and try it though, and let me know if it works.Yes - this works perfectly Scott, thank you!
 
Back
Top