刚才在写博客文章时,需要粘帖C#代码,点确认时,它出错了。想粘帖的代码如下:
using System;
using System.Web;
/// <summary>
/// Summary description for Class1
/// </summary>
public class Class1
{
public Class1()
{
//
// TODO: Add constructor logic here
//
}
public void t()
{
HttpContext.Current.Session["sessionkey"] = "namespace";
HttpContext.Current.Response.Write("lost namespace.");
HttpContext.Current.Server.MapPath(@"z:\t\");
}
}
点上图“code”按钮,粘帖完代码,点“确定”铵钮时,出现下面错误:
视频下载:
文件格式:.wmv;大小:673KB;长度:00:00:22
下载地址:http://download.cnblogs.com/insus/Miscellaneous/cnblogsPasteCodeError.rar