引用:
原帖由 koon 於 2/3/2007 03:55 AM 發表
You are right that ASP will not auto fresh the page, but you can add a sub-routine such as button1_onclick, or if you have change something in the pull down menu, or change some text box you can ...
其實都唔洗code咁多, 樓主refresh個client已經可以. 問題關鍵係, 唔似一D client/server application, data in database被updated, web-client 係好難被通知而update display緊魈nformation accordingly. 例如你on-line banking時 check你個account balance, 機乎無web-application會synchronize the dispalyed balance with the database after the initial request. Data只會係for reference only. 又好似網上購物買飛, 見到有都不一定買到, 直至payment confirmed, 你先知道. 有D seller 好人D, 你proceed to check-out時佢已幫你hold 住件貨/D 飛 until session expire.
[
本帖最後由 usnameless 於 2007-2-5 12:34 編輯 ]