项目命令在重新加载页面后不断触发

时间:2019-01-11 14:37:37

标签: c# asp.net response.redirect

此代码在xyz.aspx页面中

protected void TslLogs_Command(object sender, CommandEventArgs e)
{
    Response.Redirect("xyz.aspx?Tsl=" + e.CommandArgument.ToString().Split('_')[0]);
}

这基本上将用户与查询字符串重定向到同一页面。问题在于此事件将继续执行,并以太多的重定向结束。我也尝试了没有任何运气的追随。

 Response.Redirect(......,false);

有什么建议吗?

0 个答案:

没有答案
相关问题