English 中文(简体)
• 如何在装上新版本的页时,克服Browser重选位置?
原标题:How to Override Browser Remembering Position when loading a new Version of a Page?

页: 1 清单列出了查询结果。 我在每一页上和下页都有一个运输(为了更好用词)。 其中一项:

Previous   1   2   [3]   4   5   Next 

每一运输中的案文要素都有其关联,例如:

<a href="results.aspx?page=4" />

当然,页数根据预期目的地不同。

我的问题是,由于根本的网页名称相同,results.aspx,浏览器总是在新装页上与刚上页上一样的位置,而我只是点击。 或者说,至少这是我假定的。

我曾试图制造诸如标签之类的标签。

<a name="top">
<a id="top">

改变我与其中任何一方的联系

<a href="results.aspx?page=4#top" />
<a href="results.aspx#top?page=4" />

无结果。 我应该指出,这是继承的法典基础,因此,在 j中可能出现一些过时行为。

是否有明确的办法解决这一问题? 如果它应该不停地工作,那么,在法典中,我是否应当期望我应当改变或删除?

页: 1

从浏览器中提取的生成代码样本如下:

<!-- Page Transport --> 
<ul> 
<li class="gray">first</li> 
<li class="gray">previous</li> 
<li class="current">1</li> 
<li><a href="lodging/results.aspx?page=2">2</a></li> 
<li><a href="lodging/results.aspx?page=3">3</a></li> 
<li><a href="lodging/results.aspx?page=4">4</a></li> 
<li><a href="lodging/results.aspx?page=2">next</a></li> 
<li><a href="lodging/results.aspx?page=20">last</a></li> 
</ul>

是的,改为just 我不能不明白,为什么一位浏览者会记得其在网页上的立场!

成员:

抽出原开发商包括一个javascript文档、滚动器。 min.js蓄意实施这种行为。 删除这一提法消除了行为。

最佳回答

您是否确信这些链接为<代码><a> tags and not htons or <a> tags with onclick. 如果它们是:<代码><a>,那么你所描述的标签就不应发生。 如果它们是背后纽州,则在法典的某个地方,则使用https://web.archive.org/web/20211020121505/https://www.4guys fromrolla.com/articles/111407-1.aspx” rel=“nofollow” 。

问题回答

暂无回答




相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Transaction handling with TransactionScope

I am implementing Transaction using TransactionScope with the help this MSDN article http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx I just want to confirm that is ...

System.Web.Mvc.Controller Initialize

i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...

Microsoft.Contracts namespace

For what it is necessary Microsoft.Contracts namespace in asp.net? I mean, in what cases I could write using Microsoft.Contracts;?

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签