Can i do this in javascript ?(ASP.NET MVC)
- by user1710716
<script type="text/javascript">
function CheckData(e) {
var form = e.form;
var dataItem = e.dataItem;
var r = <%=Session["count"] %>;
var s = [];
var t = [];
for (i=1;i<r;i++)
{
s.push(<%=Session["level"+i] %>;
}
for(i=1;i<r;i++)
{
t.push(<%=Session["level"+i+"val"] %>
}
if(e.mode="edit")
{
}
}
</script>
I try to combind session in to variable in JavaScript but my session has dynamic session this code get error when I try to build.