AJAX功能強大,做出的頁面給人視覺效果很好.最近在學習此方面的知識.下面給一個小例子演示與下效果: 前臺html代碼:
Untitled Page
后臺Page_Load中代碼: lblCurrentTime.Text = "This Could Be A Data Control" + " That Needs To Be Refreshed" + "
We're going to keep this" + " simple and illustrate change of data by showing" + "
The Current System Date / Time. " + "
The Current Time is:" + System.DateTime.Now; lblFormTime.Text = "This is The Part Of The Page That is NOT supposed" + "
refresh on post back's created by the button!" + "
The Current Time is:" + System.DateTime.Now; Thread.Sleep(5000);
We're going to keep this" + " simple and illustrate change of data by showing" + "
The Current System Date / Time. " + "
The Current Time is:" + System.DateTime.Now; lblFormTime.Text = "This is The Part Of The Page That is NOT supposed" + "
refresh on post back's created by the button!" + "
The Current Time is:" + System.DateTime.Now; Thread.Sleep(5000);