BEHZADTALA
Programmer
Dear Freinds
how i can send a variable(from asp page) to client(html or javascript)
thanks
how i can send a variable(from asp page) to client(html or javascript)
thanks
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<%
dim sVar : sVar = "Hello World"
Response.write("Server Generated Var: " & sVar)
%>
<script type="text/javascript">
var vJSVar = '<%=sVar%>';
alert('Client Generated Var: '+vJSVar);
</script>
<form name="sneakyform">
<input type="hidden" name="amount" value="<% = intAmount %>"
</form>
document.sneakyform.amount.value
<%
dim sVar : sVar = "Hello World"
Response.write("Server Generated Var: " & sVar)
%>
<script type="text/javascript">
var vJSVar = '[highlight]<%=sVar%>[/highlight]';
alert('Client Generated Var: '+vJSVar);
</script>
<script type="text/javascript">
var vJSVar = 'Hello World';
alert('Client Generated Var: '+vJSVar);
</script>