我正在开发一个 Asp.net,C# 应用程序。单击“更新”链接按钮后,我想刷新网页;在网格视图中。我尝试了以下代码;但是它只是刷新页面而不在网格视图中保存更新的数据。
protected void LinkButton1_Click1(object sender, EventArgs e)
{
Response.Redirect(Request.RawUrl.ToString());
}
数据源名称SqlDataSourcePlan
SELECT [PlanID], [Deposit], [DepositReturn], [Discount] FROM [PaymentPlan] WHERE ([Ref] = @Ref)
UPDATE [PaymentPlan] SET [Deposit] = @Deposit, [DepositReturn] = @DepositReturn, [Discount] = @Discount WHERE [PlanID] = @original_PlanID