声明偏移为1 [英] Declaring offset is 1

查看:72
本文介绍了声明偏移为1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在使用分页.第一次加载页面时,偏移量为1,但不会显示在url中,如果我在分页中单击2,则在URL offset = 2中.我需要如果offset是hide然后将其设置为1.

所以,请任何人帮助我.
在此先感谢

Hi All,

I am using pagination. First time page load the offset is 1 but it not display in url, if i click 2 in pagination then in the url offset=2. I need if offset is hide then it set to 1.

so, please any one help me.
Thanks in advance

推荐答案

我已经这样做了:
I have done this:
offset = Convert.ToInt32(Request.QueryString["offset"]);
        if (offset== 0)
        {
            offset = 1;
        }


这篇关于声明偏移为1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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