引用:
原帖由 usnameless 於 2007-2-2 07:47 發表
一般鞝SP用VBScript access完Database 之後, 將data presents 好就放入html 中送到 browser for display. 之後如果data 在 database 中被改動, browser 中髼tml係唔會自動被update的. 你可以好似樓上咁講 ...
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 use like:
Sub xxxx_onchange
document.formx.submit()
end sub
In this case once you update the data say from ABC XYZ to DEF MNO, it will submit the form automatically and refresh the page, then you can see the new changed data immediately.
To refresh the page after you change the data in the form, you should add the line
formx method= post action = abc.asp