摘要:  本文转载自:马兆娟 原文链接:http://blog.csdn.net/mazhaojuan/article/details/7660657     开发web项目时需要安装IIS,在安装好IIS的Windows7本上发布asp.net网站时,web程序已经映射到了本地IIS上,但运行如下错误提示 阅读全文
posted @ 2016-03-15 16:24 m-n 阅读(189) 评论(0) 推荐(0) 编辑
摘要:   本文转载自:zhanglan478950 原文链接:http://blog.csdn.net/zhanglan478950/article/details/8960665 using System; using System.Collections; using System.Collectio 阅读全文
posted @ 2016-03-15 15:37 m-n 阅读(1102) 评论(0) 推荐(0) 编辑
摘要: 转 经典SQL问题: 行转列 发表于5个月前(2015-09-19 17:49) 阅读(2905) | 评论(0) 20人收藏此文章, 我要收藏 赞0 学校里面记录成绩,每个人的选课不一样,而且以后会添加课程,所以不需要把所有课程当作列。数据库grade里面数据如下图,假定每个人姓名都不一样,作为主 阅读全文
posted @ 2016-02-18 08:56 m-n 阅读(339) 评论(0) 推荐(0) 编辑
摘要: // 待请求的地址string url = "http://www.cnblogs.com"; // 创建 WebRequest 对象,WebRequest 是抽象类,定义了请求的规定,// 可以用于各种请求,例如:Http, Ftp 等等。// HttpWebRequest... 阅读全文
posted @ 2016-01-25 09:51 m-n 阅读(360) 评论(0) 推荐(0) 编辑
摘要: 一、邮件发送:.NET中自带SMTP邮件发送的类——SmtpClient第一步:导入命名空间:using System.Net.Mail;using System.Net;第二步:编写邮件发送代码: //1.实例化发邮件的类 SmtpClient smtp = new SmtpClie... 阅读全文
posted @ 2016-01-25 09:27 m-n 阅读(302) 评论(0) 推荐(0) 编辑
摘要: LASTYEAR ) return alert("请输入1936-2031有效年份"); sm = SolarMonth - 1; if ( sm 11 ) return alert("请输入有效月份"); leap = GetLeap( SolarYear ); if ( sm == 1... 阅读全文
posted @ 2016-01-25 09:18 m-n 阅读(1200) 评论(0) 推荐(0) 编辑
摘要: 百度开放平台:http://alading.baidu.com/ 百度地图开放平台:http://lbsyun.baidu.com/ 淘宝开放平台:http://open.taobao.com/?spm=a21bo.7724922.1997523009.28.WiDxUW# 支付宝开放平台:http 阅读全文
posted @ 2016-01-19 15:37 m-n 阅读(777) 评论(0) 推荐(0) 编辑
摘要: 一般来说在aspx页面使用Session直接用Session["名字"]就可以使用,但是在ashx页面不能直接使用,需要通过HttpContext对象context去操作Session;如果直接在ashx页面取Session:context.Session["uid"]; 则取出来的是空值NUL... 阅读全文
posted @ 2015-12-30 23:15 m-n 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 前台aspx代码不变,处理页面需要新建一个类,封装属性并在处理页面调用新建类DB代码:using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Data;//引用命名空间... 阅读全文
posted @ 2015-12-30 23:14 m-n 阅读(283) 评论(0) 推荐(0) 编辑
摘要: aspx代码: 员工表 代号 姓名 ... 阅读全文
posted @ 2015-12-29 23:03 m-n 阅读(261) 评论(0) 推荐(0) 编辑