Request.MapPath("../../../Upload");获取文件路径
Form认证安全的:
前端控件<asp:Button ID="btnOK" runat="server" onclick="btnOK_Click"
PostBackUrl="~/Form/Default.aspx" Text="搜索" />
获取数据:Request.Form["txtMess"];
获取服务器和客户端ie浏览器的版本:
//服务器端变量 //this.lblMess.Text=Request.ServerVariables["Http_User_Agent"];
//客户端 this.lblMess.Text = Request.Browser.Browser + " " + Request.Browser.Version;
server对象获取客户端计算机名称:
//Response.Write(Server.MachineName);
//Response.Write("<hr/>是一条直线");
string str = Server.HtmlEncode("<hr/>是一条直线");
Response.Write(str);