Can i do this in javascript ?(ASP.NET MVC)

Posted by user1710716 on Stack Overflow See other posts from Stack Overflow or by user1710716
Published on 2012-10-01T02:59:30Z Indexed on 2012/10/01 3:37 UTC
Read the original article Hit count: 69

Filed under:
|
|
<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.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about ASP.NET