S
sklett
Hi-
I understand that the Page class has methods for inserting client script
into the page. I don't want to build my entire client block w/ a
StringBuilder because I only need 1 dynamic variable in the whole block.
So, with that said, here is what I need to do:
<script language="javascript">
var root = <%=m_root%>;
</script>
in my code behind I have a protected string
protected string m_root = "Some value";
I can't find a way to insert or Response.Write() into the client block, it
just renders out my asp script as a string inside the javascript. How do
you do this? I thought it would be easy, but it's escaping me at this time.
Thanks,
Steve
I understand that the Page class has methods for inserting client script
into the page. I don't want to build my entire client block w/ a
StringBuilder because I only need 1 dynamic variable in the whole block.
So, with that said, here is what I need to do:
<script language="javascript">
var root = <%=m_root%>;
</script>
in my code behind I have a protected string
protected string m_root = "Some value";
I can't find a way to insert or Response.Write() into the client block, it
just renders out my asp script as a string inside the javascript. How do
you do this? I thought it would be easy, but it's escaping me at this time.
Thanks,
Steve