none
ASP.Net Page does not exist c# varible RRS feed

  • Question

  • ASP.Net Page does not exist c# varible?

    Correct build two days ago! The code does not changed!

    Not found  

    var currentPageNumber =<%= currentPageNumber%>;

    ASPX.CS

    <script type="text/javascript">
    
    
        $(document).ready(function () {
            var currentPageNumber =<%= currentPageNumber%>;
            $("#newsPagenation").find("a").each(function () {
    
                //alert($(this).text());
                if ($(this).text() == currentPageNumber) {
                    $(this).addClass(" orange");
                }
    
            });
        });
    </script>
    
    <body>
     <form ID="form1">
    
       <div class="pageInfo">
           <%= model.Content %>
        </div>
    </form>

    C# code


        public partial class NewsImageView : System.Web.UI.UserControl
        { 
            protected int currentPageNumber = 1; 
    
            protected void Page_Load(object sender, EventArgs e)
            {
    
            }
    
    ......


    Final Fantasy-B



    • Edited by Fhnrjds Friday, September 1, 2017 8:22 AM
    • Moved by CoolDadTx Friday, September 1, 2017 1:39 PM ASP.NET related
    Friday, September 1, 2017 8:03 AM

Answers

All replies