javascript - How to pass the value of the variable in the asp.net backend .cs file to the frontend aspx for use (JS can also be used)
我想大声告诉你
我想大声告诉你 2017-05-18 10:59:59
0
1
488

As the title says, I am making a paging function, because one page in .net corresponds to a background processing program, which feels a little different from Java, so I would like to ask how to pass the values ​​​​in the variables in the background Go to his corresponding front page:
Background handler a.cs:

## Front-end display page a.aspx:

How to get these background values ​​during paging?
is now a null value

我想大声告诉你
我想大声告诉你

reply all(1)
大家讲道理

You can define a variable in the a.cs file to store the total number of pages
Write a method
GetPageTotalPage(){
return totalPage;
}

In the frontend you can write like this <%=GetPageTotalPage()%>

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!