C# 获取从中引发事件的页面URL

C# 获取从中引发事件的页面URL,c#,webforms,C#,Webforms,我有一个asp.net按钮 protected void myPreciousButton_Click(object sender, EventArgs e) { //My Logic is happening Response.Redirect( What will go here ??); } 如何将用户重定向到同一页面 更新 我这样做的原因是因为我对数据库做了一些更改,并使用了异步回发,但除非我进行页面引用,否则它们在GridView中是不可见的 我已经试过了 &l

我有一个asp.net按钮

protected void myPreciousButton_Click(object sender, EventArgs e)
{
     //My Logic is happening
     Response.Redirect( What will go here ??);
}
如何将用户重定向到同一页面

更新

我这样做的原因是因为我对数据库做了一些更改,并使用了异步回发,但除非我进行页面引用,否则它们在GridView中是不可见的

我已经试过了

 <asp:AsyncPostBackTrigger

您可以使用

string Pageurl = HttpContext.Current.Request.Url.AbsoluteUri;
你可以用

protected void myPreciousButton_Click(object sender, EventArgs e)
{
     Response.Redirect(HttpContext.Current.Request.Url.AbsoluteUri);
}
如果你想刷新你的页面

Response.Redirect(Page.Request.Url.ToString(), true);

这个问题不是很清楚。如果这是一个正常的网页,你不需要重定向,在触发事件后,它将加载同一个网页。我更新了我的问题,谢谢。我想你现在已经知道答案了。祝你好运
Response.Redirect(Page.Request.Url.ToString(), true);