如何设置Web表单的页码,即asp.net中的aspx页面 [英] How to set page number for web form i.e aspx page in asp.net

查看:126
本文介绍了如何设置Web表单的页码,即asp.net中的aspx页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在页脚中将页码设置为aspx形式,
wt是此

I want to set page number to my aspx form in the footer,
wt is the code for this

推荐答案

的代码,如果是我,我只会创建一个基类Page,该基类定义一个保存页面的公共整数变量编号,然后在您网站上每个页面的PageLoad方法中进行设置.
If it were me, I''d simply create a base Page class that defines a public integer variable that holds the page number, and set it in the PageLoad method from each page on your site.


这篇关于如何设置Web表单的页码,即asp.net中的aspx页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆