可能用的网站

php:有对DedeCMS建站感兴趣的可以看一下

http://www.mubanzhijia.com/shipin/list_10_3.html 

李老师博客 http://blog.csd.net/lch901004

一般来说在aspx页面使用Session直接用Session["名字"]就可以使用,但是在ashx页面不能直接使用,需要通过HttpContext对象context去操作Session; 如果直接在ashx页面取Session: context.Session["uid"]; 则取出来的是空值NULL; 解决这个问题的方法是: 1.在ashx页面添加命名空间:using System.Web.SessionState; 2.在ashx页面添加接口:IRequiresSessionState; public class Handler : IHttpHandler, IRequiresSessionState { } 这样就可以取到Session的值了。

changfengDataContext context = new changfengDataContext(); var query = from a in context.YuanGong join b in context.ZhiWu on a.ZhiWu equals b.Code join c in context.GangWei on a.GangWei equals c.Code select new { 工号 = a.Code, 姓名 = a.Name, ID = a.ID, 现岗位 = c.Name, 现职务 = b.Name, 出生年月 = a.Birthday, 户籍 = a.HuJi, 性别 = a.SexName }; if (textBox1.Text != "按工号或姓名查找") { query = query.Where(r => r.工号.Contains(textBox1.Text) || r.姓名.Contains(textBox1.Text)); } dataGridView1.DataSource = query;

private Point mPoint = new Point(); private void Form4_MouseDown(object sender, MouseEventArgs e) { mPoint.X = e.X; mPoint.Y = e.Y; } private void Form4_MouseMove(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Left) { Point myPosittion = MousePosition; myPosittion.Offset(-mPoint.X, -mPoint.Y); Location = myPosittion; } }

先加一个ImageList 设置大小及图像深度 按钮的属性ImageAlign修改 为了好看一些,”确定“这两个字前面可以加几个空格

if(process==null) { string path = Application.StartupPath;//这个path就是你要调用的exe程序的绝对路径 process = new System.Diagnostics.Process();//创建一个新进程 process.StartInfo.FileName = Assembly.GetExecutingAssembly().ManifestModule.FullyQualifiedName;//获取自身exe或dll的文件名 process.StartInfo.WorkingDirectory = path; process.Start(); } this.Close();

DataClasses1DataContext context = new DataClasses1DataContext(); List list = context.GeRenZhengJian.Where(p => p.YGCode == dataGridView1.SelectedRows[0].Cells[0].Value).ToList(); if (list.Count > 0) { GeRenZhengJian data = list.First(); context.GeRenZhengJian.DeleteOnSubmit(data); } context.SubmitChanges();

原文地址:https://www.cnblogs.com/wang-kaifeng/p/5164625.html