问题描述
我最近开发了一个内部网站,其中包含针对我们的SQL服务器的各种查询。我在Response.Redirect中添加了按钮。这些按钮
不适用于Internet Explorer,但是当使用Firefox时,页面
完美无瑕。有谁知道为什么会这样或者如何修复它?
I recently developed an internal website with various queries against
our SQL server. I added buttons with Response.Redirect. These buttons
do not work with Internet Explorer, however when using Firefox the page
works flawless. Does anyone know why this is happening or how to fix it?
推荐答案
protected void btnDVD2_Click(object sender,EventArgs e)
{
Response.Redirect(" dvd.aspx?dvd =" + txtSearch.Text);
}
txtSearch是一个文本框。
页面这是有框架重定向...
< BASE href =" /" target =" Results"
< / BASE>
protected void btnDVD2_Click(object sender, EventArgs e)
{
Response.Redirect("dvd.aspx?dvd=" + txtSearch.Text);
}
txtSearch is a text box.
the page this is on has a frame redirect...
<BASE href="/" target="Results">
</BASE>
嗯,很难说只给出了按钮所做的信息。 />
不起作用。它们以什么方式不起作用?你有浏览器请求
吗?怎么了?你能给一些示例代码吗?你知道
问题是在浏览器端还是服务器端?
-
Jon Skeet - < ; sk *** @ pobox.com>
博客:
如果回复小组,请不要给我发邮件
Well, it''s hard to say given only the information that the "buttons do
not work". In what way do they not work? Do you get a browser request
at all? What happens? Can you give some sample code? Do you know
whether the issue is at the browser end or the server end?
--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
这篇关于网站适用于Firefox,而不适用于IE(Response.Redirect)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!