asp.net linkbutton客户端问题
我有这个禁用回发的链接按钮...我应该用 html 控件来完成它,但只是这样做了..它正在切换顶部的语言栏(marara.com.tr - 语言链接) 需要单击两次才能使 div 淡入。 我可以纠正这个问题,但只是想知道为什么会这样。 .. 在第一次单击时,它会在地址栏中添加一个 # 符号,然后在第二次单击时,它会执行它应该执行的操作.. 有任何线索吗?
提前感谢
埃姆雷
I have this linkbutton with post-back disabled ... I should have done it with an html control but just did it that way .. It is toggling a language bar on top (marara.com.tr - language link)
It needs to be clicked twice in order to get the div to fade-in. I can correct the problem but just want to know why it behaves like that. .. in the first click it adds a # sign to the address bar then on the second click it does what it is supposed to.. any leads?
thanx in advance
Emre
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我有类似的问题。 这取决于您使用的浏览器(当我使用 Firefox 时会发生这种情况,但当我在 IE6 中测试时不会发生这种情况)。 看起来浏览器查看 URL 并发现没有任何更改(除了 #...),因此它不会重新加载 URL,导致 #... 无法注册。 您可以通过添加“&”来欺骗它认为查询字符串已更改 在“#”之前,以便将 &#... 添加到 URL。
I had a similar problem. It depends on the browser you are using (This occurred when I was using Firefox but not when I was testing in IE6). It seemed like the browser looks at the URL and sees that nothing has changed (except the #...) so it doesn't reload the URL, causing the #... not to register. You can trick it into thinking the query string has changed by adding a '&' before the '#' so that you add &#... to the URL.