D
diac
Hello,
I create and fill a variable in the Page_Load sub and then i need it in
a javascript code. Of course the xxx variable is declared in the sub so
that it is not available out of the sub. How can i fill the javascript
variable with its content?
------------------------------------
Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
Dim xxx As String = "xxx"
End Sub
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>PR</title>
<script type="text/javascript" language="javascript">
var xxx = <%=xxx%>
I create and fill a variable in the Page_Load sub and then i need it in
a javascript code. Of course the xxx variable is declared in the sub so
that it is not available out of the sub. How can i fill the javascript
variable with its content?
------------------------------------
Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
Dim xxx As String = "xxx"
End Sub
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>PR</title>
<script type="text/javascript" language="javascript">
var xxx = <%=xxx%>