?? default3.aspx.cs
字號:
?using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
public partial class Default3 : System.Web.UI.Page,ICallbackEventHandler
{
//定義一個全局字符串供callback使用
string str = "";
// 定義當callback服務器時回調的方法
public void RaiseCallbackEvent(String eventArgument)
{
str = "服務器callback得到了您輸入的信息:" + eventArgument + "<br/>您的IP地址是:";
str += Request.UserHostAddress;
str += "<br/>當前服務器的時間:";
str += DateTime.Now.ToLocalTime();
}
// 定義返回給CallBack的字符串
public string GetCallbackResult()
{
return str;
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -