
VS2015_检测到在集成的托管管道模式下不适用的 ASP.NET 设置
VS2015_检测到在集成的托管管道模式下不适用的 ASP.NET 设置HTTP Error 500.23 - Internal Server Error报错如下图此错误是因为项目使用的托管管道模式有问题,将集成改为经典即可选中项目按F4进入项目属性 ,如图界面
VS2015_检测到在集成的托管管道模式下不适用的 ASP.NET 设置HTTP Error 500.23 - Internal Server Error报错如下图此错误是因为项目使用的托管管道模式有问题,将集成改为经典即可选中项目按F4进入项目属性 ,如图界面
//截取整个窗体 private void button1_Click(object sender, EventArgs e){Bitmap bit=new Bitmap(this.Width,this.Height);//实例化一个和窗体一样大的bitmapGraphics g=Graphics.FromImage(bit);g.CompositingQuality = CompositingQuality.HighQuality;//质量设为最高g.Co…
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Xml;namespace XML增删改查 {public partial class Form1 : For…
一直不知道编译时 类库下文件怎么也同时生成到Bin目录下今天发现了 方法如下图右击文件属性进入如下然后如下图操作即可
namespace ListBox和XML操作 {public partial class Form1 : Form{public Form1(){InitializeComponent();}Dictionary dic = new Dictionary();private void button1_Click(object sender, EventArgs e){AddData();foreach (Control c in thi…
namespace 读xml_RSS_到TreeView {public partial class Form1 : Form{public Form1(){InitializeComponent();}private void button1_Click(object sender, EventArgs e){XmlDocument doc = new XmlDocument();doc.Load("1.xml");XmlElement rootXml = doc.Document…
using System; using System.Collections.Generic; using System.Windows.Forms; using System.Xml; using System.Xml.Linq;namespace XML文件创建 {public partial class Form1 : Form{public Form1(){InitializeComponent();}List<Penson> list = new List<Penson&…
扩展方法是在不改动原来类的基础上添加方法一般尽量少用namespace 扩展方法 {class Program{static void Main(string[] args){person p = new person();p.name = "lqwvje";p.SaiHello("罗分明");//这是在不改动原来类上添加一扩展方法//注意扩展方法一定是…
static void Main(string[] args){Action action = M1;action += M2;action += M3;//添加方法,这样调用一下action 就会执行M1 M2 M3action -= M2;//把第M2方法去掉action("罗分明");Console.ReadKey();}static void M1(string msg){Console.WriteLine(msg);}static …
2018-11-21修改 添加演示图 及JH.xml文件 2018-03-04修改 先看一下演示以下是核心代码DataSet ds = new DataSet();private void ReadXml(){//转载请保留原创地址 http://www.luofenming.com/show.aspx?id=ART2017071200001//AppDomain.CurrentDomain.BaseDirectory为应用程序…