开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜