如何在asp.net 4.0中发布页面之前删除查询字符串

时间:2017-03-14 09:41:31

标签: asp.net c#-4.0 query-string

在成功导航页面后,我有完整的国旗和网址,如:

protected void Repeater_EasyMailSystem_ItemCommand(object source, 

    RepeaterCommandEventArgs e)
        {
            Response.Redirect(e.CommandArgument.ToString());
        }
        protected void Repeater_Template_management_ItemCommand(object source, RepeaterCommandEventArgs e)
        {
            Response.Redirect(e.CommandArgument.ToString());
        }

这是url绘制的url栏:

http://localhost:2670/Mail.aspx?flag=1
http://localhost:2670/Mail.aspx?flag=2
http://localhost:2670/Mail.aspx?flag=3
http://localhost:2670/Mail.aspx?flag=4

如何从菜单项单击导航是可以的。但是在发布带有提交按钮的页面时我不需要这个URL。它是一个passout page.Isvalid并清除在提交时指定的所有输入。

请帮帮我

0 个答案:

没有答案