【发布时间】:2014-03-18 07:38:52
【问题描述】:
我的项目的起始页是 Default.aspx。
protected void ImageButton1_Click1(object sender, ImageClickEventArgs e)
{
Response.Redirect("Payment.aspx);
}
当我单击按钮时,它返回 //localhost/Default.aspx/Payment.aspx 而不是 //localhost/Payment.aspx。问题出在哪里?
【问题讨论】:
-
你试过 Response.Redirect("~/Payment.aspx"); 吗?
-
@AliBaghdadi:这就是答案。为什么将其发布为评论?
-
谢谢@Ali,如果你愿意,请写下这个答案,我会接受的。成功了。