我将如何刷新页面

问题描述:

我想刷新页面,当我添加记录,更新,删除记录..

i want to refresh the page when i add the record,update,delete the record..

插入/删除/更新后





只需拨打你第一次用于预约的绑定方法,即可工作







参考这个例子



http://www.codedigest.com/Articles/ASPNET/281_Edit_Update_Delete_and_Insert_data_with_DataList_control_using_LINQ.aspx [ ^ ]
after insertion/deletion/update


just call the binding method which is you used for biding first time, that will work



refer this example

http://www.codedigest.com/Articles/ASPNET/281_Edit_Update_Delete_and_Insert_data_with_DataList_control_using_LINQ.aspx[^]


嗨亲爱的,



执行Insert,Delete或Update过程然后重新加载刷新功能。
hi dear,

when you execute Insert, Delete or Update process then Reload your Refresh function.


默认情况下在asp.net中点击每个按钮发回页面。

通过执行Response.redirect(tosomepage.aspx),如果有任何重要数据,您将失去视图状态。你如何进行插入/更新/删除?
By default in asp.net click on every button post back the page.
By doing Response.redirect("tosomepage.aspx") you will loose view state if any important data. how you are doing insert/update/delete?