停止自动引用网页 [英] stop auto refersh Web Page
本文介绍了停止自动引用网页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我有一个网页。我使用网站上的一些图表代码是
Hello everyone,
I Have a web page.I use some graphs from a site the code is
<form onsubmit="document.getElementById('infominegraph').src='http://www.abc.com/ChartsAndData/GraphEngine.ashx?gf='+this.c.value+'.'+this.x.value.toUpperCase()+'.'+this.u.value+'&z=f&dr='+this.r.value; return false;">
但是当我点击按钮页面是在页面加载之前引用..如果我使用< form>< / form>
在此代码之前它适用于所有浏览器,但有IE创建一些问题我如何解决这个问题?我在主页上使用它.....
c,u,x,r所有下拉列表....
谢谢
but when i click the button page is refersh before page load ..if i use <form></form>
before this Code it works in all browser but with IE creat some problem how i resolve this? i use this with master page.....
c,u,x,r all the drop down list....
Thanks
推荐答案
http://forums.asp.net/t/1462390.aspx/1 [ ^ ]
http://bytes.com/topic/asp-net/answers/335440-how-disable-asp-net-page-auto-post -back [ ^ ]
页面加载事件句柄IsPostBack
ie
On page load event handle IsPostBack
i.e
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
//Do your initial page load stuff
}
else
{
//Do stuff that involves a post back
// That is what happens when you click the button
}
}
这篇关于停止自动引用网页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文