开发者

OnUpdating, the previous record occurs, how to tackle this in ASP.NET

开发者 https://www.devze.com 2023-03-09 11:37 出处:网络
I have many text fields in HTML, and when i upd开发者_运维技巧ate the fields, it gets updated in db, but the sheet which appears come with previous record, i have to manually refresh the browser to se

I have many text fields in HTML, and when i upd开发者_运维技巧ate the fields, it gets updated in db, but the sheet which appears come with previous record, i have to manually refresh the browser to see the updated record, how can i tackle this situation, that after updating, the updated record should come in fields.


reload the fields from the db after the update. that way you'll also know if anything went wrong while saving to the db


You will have to rebind all HTML fileds with updated record by fetching new values from db.


You have to rebind your controls again with the data. Only then you will get the updated data. You may use Updatepanel if you want.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号