怎么刷新不提交数据
我在a.aspx里有两个输入框,一个提交按钮,当我提交数据后,然后每次刷新页面,他又提交一次,是什么音原因了
------解决方案--------------------加到 (!ispostback)里面去.把提交
------解决方案--------------------提交后做个转向 Response.Redirect( "a.aspx ");
------解决方案--------------------你把代码贴出来看看啊!!
------解决方案--------------------protected void Page_Load(object sender, EventArgs e)
{
id = Request.QueryString[ "ID "];
bokeid = Request.QueryString[ "bokeid "];
sid = Request.QueryString[ "sid "];
uname = Request.QueryString[ "uname "];
pid = this.Request.QueryString[ "Page "];
page = conndb.Get_IntPage(pid);
Bangding();
}
这段在page_load里放在
if(!ispostback)
{
这里
}
------解决方案--------------------protected void Page_Load(object sender, EventArgs e)
{
protected void Page_Load(object sender, EventArgs e)
{
id = Request.QueryString[ "ID "];
bokeid = Request.QueryString[ "bokeid "];
sid = Request.QueryString[ "sid "];
uname = Request.QueryString[ "uname "];
pid = this.Request.QueryString[ "Page "];
page = conndb.Get_IntPage(pid);
Bangding();
}
}
id = Request.QueryString[ "ID "];
bokeid = Request.QueryString[ "bokeid "];
sid = Request.QueryString[ "sid "];
uname = Request.QueryString[ "uname "];
pid = this.Request.QueryString[ "Page "];
page = conndb.Get_IntPage(pid);
Bangding();
}