易截截图软件、单文件、免安装、纯绿色、仅160KB

ASP.NET 创建XML

 public void CreatXml(int oid)
        {
            XmlTextWriter writer = null;
           string fileName ="a"+ oid.ToString() + ".xml";
            string path = HttpContext.Current.Request.PhysicalApplicationPath + "al/";
            writer = new XmlTextWriter(path + fileName, null);
            //为使文件易读,使用缩进
            writer.Formatting = Formatting.Indented;
            //写XML声明版本1.0
            writer.WriteStartDocument();
            //写一个元素(根元素)
            writer.WriteStartElement("ClassOne");
            //关闭根元素
            writer.WriteEndElement();
            writer.WriteEndDocument();
            //缓冲器内的内容写入文件
            writer.Flush();
            writer.Close();
            XmlDocument xmlDoc = new XmlDocument();
            xmlDoc.PreserveWhitespace = true;
            //加载文件
      &nbs


相关文档:

ASP.NET MVC 系列文章

http://www.cnblogs.com/chsword/archive/2008/03/10/dotnetmvcframework.html
以下文章属于ASP.NET MVC 1.0 正式版
ASP.NET MVC雕虫小技 1-2
ASP.NET MVC 重点教程一周年版 第十一回 母版页、用户自定义控件及文件上传
ASP.NET MVC 重点教程一周年版 第十回 请求Controller
ASP.NET MVC 重点教程一周年版 第九回 H ......

Asp.net中动态在中加入Scrpit标签

许久以前,写过一篇《asp.net页中动态加入样式表文件》,后来发现在使用时如果每页都写这么个函数真是很麻烦,于是自己写了一个Page的派生。将这个函数加了进去。
      /**//// <summary>
    /// 作者 邹健
    ///  ......

关于ASP.NET/C#中对Cookie的操作

写cookie
  1 HttpCookie cookie = new HttpCookie("Info");//定义cookie对象以及名为Info的项
  2 DateTime dt = DateTime.Now;//定义时间对象
  3 TimeSpan ts=new TimeSpan(1,0,0,0);//cookie有效作用时间,具体查msdn
  4 cookie.Expires = dt.Add(ts);//添加作用时间
  5 cookie.Values.Add("user","cx ......

Paging long articles in ASP.NET using C#

Paging long articles in ASP.NET using C#
Long articles are better broken into bite-sized chunks over several pages. With static HTML, this is easily achieved by dividing the article into logical separations and creating separate .htm files for each. Here's how to do it using C# for an article that ......

ASP.NET自定义错误页面

ASP.NET 提供三种用于在出现错误时捕获和响应错误的主要方法:Page_Error 事件、Application_Error 事件以及应用程序配置文件 (Web.config)。
如果您不调用 Server.ClearError 或者捕获 Page_Error 或 Application_Error 事件中的错误,则将根据 Web.config 文件的 <customErrors> 部分中的设置处理错误。在 <cus ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号