上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 18 下一页
摘要: 控制器部分 视图部分 确认邮件模板 阅读全文
posted @ 2016-06-11 11:14 深南大道 阅读(234) 评论(0) 推荐(0)
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Mvc;using MvcTest.Models;using Webdiyer.WebControl... 阅读全文
posted @ 2016-06-10 21:56 深南大道 阅读(224) 评论(0) 推荐(0)
摘要: 在深入学习某项技术之前,应该努力形成对此技术的总体印象,并了解其基本原理,本文的目的就在于此。 一、理解EF数据模型 EF本质上是一个ORM框架,它需要把对象映射到底层数据库中的表,为此,它使用了三个模型来描述这种映射关系。 (1)概念模型(Conce... 阅读全文
posted @ 2016-06-09 21:46 深南大道 阅读(180) 评论(0) 推荐(0)
摘要: using MvcShopping.Migrations;using MvcShopping.Models;using System;using System.Collections.Generic;using System.Data.Entity;using System.Linq;using... 阅读全文
posted @ 2016-06-09 21:30 深南大道 阅读(177) 评论(0) 推荐(0)
摘要: public static HttpResponseMessage toJson(Object obj) { String str; if (obj is String || obj is Char) ... 阅读全文
posted @ 2016-06-08 16:04 深南大道 阅读(1221) 评论(0) 推荐(0)
摘要: /// /// HttpClient实现Post请求(异步)/// static async void dooPost(){ string url = "http://localhost:52824/api/register"; //设置HttpClientHandler的AutomaticD... 阅读全文
posted @ 2016-06-08 15:41 深南大道 阅读(2265) 评论(0) 推荐(0)
摘要: using System.IO;/// /// WebApi返回图片/// public HttpResponseMessage GetQrCode(){ var imgPath = @"D:\ITdosCom\Images\itdos.jpg"; //从图片中读取byte v... 阅读全文
posted @ 2016-06-08 15:07 深南大道 阅读(1209) 评论(0) 推荐(0)
摘要: using System;using System.Collections.Generic;using System.ComponentModel.DataAnnotations;using System.Linq;using System.Web;namespace ProductStore.... 阅读全文
posted @ 2016-06-08 14:39 深南大道 阅读(1299) 评论(0) 推荐(0)
摘要: QQ是一个基于TCP/UDP协议的通讯软件 发送消息的时候是UDP打洞,登陆的时候使用HTTP~因为登陆服务器其实就是一个HTTP服 务器,只不过不是常用的那些,那个服务器是腾讯自行开发的! 一、登录 QQ客户端在局域网内,当你打开QQ登录到QQ服务器时,通过外网,你的客户端与QQ服 ... 阅读全文
posted @ 2016-06-07 20:31 深南大道 阅读(1324) 评论(1) 推荐(0)
摘要: "); Response.Write(mmodel.UserName + ""); } if (emodel != null) { ... 阅读全文
posted @ 2016-06-07 18:50 深南大道 阅读(133) 评论(0) 推荐(0)
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication1.code{ /* 接口和抽象类 MSDN这样建议:... 阅读全文
posted @ 2016-06-06 22:23 深南大道 阅读(188) 评论(0) 推荐(0)
摘要: # 事件或方法 功能 描述 1 Init 事件 页面初始化 初始化设置。 2 LoadViewState 方法 加载视图状态 填充ViewState属性。 3 LoadPostData 方法 处理回发数据 处理传入窗体数据。 4 Load 事件 加载页面 页面控件初始化... 阅读全文
posted @ 2016-06-06 18:51 深南大道 阅读(110) 评论(0) 推荐(0)
摘要: 前言 这不是一篇描述asp.net生命周期的文章,仅仅是关于IIS操作的。在我们开始之前,先了解这些会有助于对全文的理解,同时欢迎反馈和建议。 什么是Web Server? 每当我们通过VS运行ASP.NET网站时,VS集成的ASP.NET引擎会响应各种请求,这个引擎的名字叫“WebDe... 阅读全文
posted @ 2016-06-06 18:27 深南大道 阅读(162) 评论(0) 推荐(0)
摘要: using System; using System.Collections.Generic; using System.Text; using System.Net.Sockets; using System.Threading; namespace EventBase { /*解决Socket的粘包处理 使用方法 A2DTcpClient client = ... 阅读全文
posted @ 2016-06-06 11:30 深南大道 阅读(440) 评论(0) 推荐(0)
摘要: 以前在windows2003里,使用的是iis6.0,那时常使用的URL重写组件是iisrewrite,当服务器升级到windows2008R2时,IIS成了64位的7.5,结果iisreite组件是32位的,虽然可以设置IIS支持32位程序,不过还是希望找个更好的方法,于是找到了:用... 阅读全文
posted @ 2016-06-06 10:02 深南大道 阅读(236) 评论(0) 推荐(0)
摘要: using System;using System.Web;using System.IO;using System.Text;using System.Web.Security;using weixin_api;public class wxgz_api : IHttpHandler{ ... 阅读全文
posted @ 2016-05-18 09:49 深南大道 阅读(467) 评论(0) 推荐(0)
摘要: using System; using System.Net; using System.Net.Sockets; using System.Text; using System.Threading; namespace socket2016 { class Program { static void Main(string[] args) { ... 阅读全文
posted @ 2016-05-18 09:25 深南大道 阅读(1655) 评论(0) 推荐(0)
摘要: 百度地图API测试 阅读全文
posted @ 2015-08-18 16:43 深南大道 阅读(347) 评论(0) 推荐(0)
摘要: protected void Button1_Click(object sender, EventArgs e) { //图片转二进制 byte[] imageByte = GetPictureData(Server.MapPath("./uploadf... 阅读全文
posted @ 2015-07-08 09:50 深南大道 阅读(1301) 评论(0) 推荐(0)
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Diagnostics; using System.IO; public partial c... 阅读全文
posted @ 2015-06-12 10:56 深南大道 阅读(259) 评论(0) 推荐(0)
摘要: localStorage.setItem("key","value");//存储变量名为key,值为value的变量 localStorage.key = "value"//存储变量名为key,值为value的变量 localStorage.getItem("key");//获取存储的变量key的值www.it165.net localStorage.key;//获取存储的变量key的... 阅读全文
posted @ 2015-05-06 12:15 深南大道 阅读(527) 评论(0) 推荐(0)
摘要: 前些天客户提出一个这样的要求:一个手机订餐网,查询当前所在位置的5公里范围的酒店,然后客户好去吃饭。 拿到这个请求后,不知道如何下手,静静地想了一下,在酒店的表中增加两个字段,用来存储酒店所在的经度和纬度,当订餐的时候,要求手机得到当前客户所在的经度和纬度传过来,再与数据库中酒店的经度和纬度计算一下 阅读全文
posted @ 2015-04-28 17:52 深南大道 阅读(3572) 评论(0) 推荐(0)
摘要: --右键user表所在的数据库,然后任务--导出数据,然后根据提示设置就行--从txt中导入EXEC master..xp_cmdshell 'bcp Northwind.dbo.sysusers in c:\1.txt -c -Sservername -Usa -Ppassword' --用帐... 阅读全文
posted @ 2015-04-17 14:15 深南大道 阅读(635) 评论(0) 推荐(0)
摘要: 首先要加入下面的代码: 解释: width - viewport的宽度 height - viewport的高度 initial-scale - 初始的缩放比例 minimum-scale - 允许用户缩放到的最小比例 maximum-scale - 允许用户缩放到的最大比例 user... 阅读全文
posted @ 2015-04-15 10:08 深南大道 阅读(646) 评论(0) 推荐(0)
摘要: /*异步写入FileStream中包含BeginWrite、EndWrite 方法可以启动I/O线程进行异步写入。public override IAsyncResult BeginWrite ( byte[] array, int offset, int numBytes, AsyncCall... 阅读全文
posted @ 2015-04-06 15:29 深南大道 阅读(253) 评论(0) 推荐(0)
摘要: //以下这个例子,就是通过Thread显示当前线程信息static void Main(string[] args){ Thread thread = Thread.CurrentThread; thread.Name = "Main Thread"; string threadMessage ... 阅读全文
posted @ 2015-04-06 14:42 深南大道 阅读(155) 评论(0) 推荐(0)
摘要: static void DeferredQuery() { var names = new List { "Nino", "Alberto", "Juan", "Mike", "Phil" }; var namesWithJ = from n in names ... 阅读全文
posted @ 2015-04-06 11:31 深南大道 阅读(142) 评论(0) 推荐(0)
摘要: Restriction Operators Where - Simple 1 public void Linq1() { int[] numbers = { 5, 4, 1, 3, 9, 8, 6, 7, 2, 0 }; var lowNums = from n in numbers where n 0 && p.UnitPrice > 3.00M... 阅读全文
posted @ 2015-04-04 15:16 深南大道 阅读(259) 评论(0) 推荐(0)
摘要: // Create the in-memory bitmap where you will draw the image. // This bitmap is 300 pixels wide and 50 pixels high. Bitmap image = new Bitmap(300, 50); // get the grap... 阅读全文
posted @ 2015-03-31 14:53 深南大道 阅读(342) 评论(0) 推荐(0)
摘要: $(function () { setInterval("startRequest()", 3000); }); function startRequest() { $("#date").text((new ... 阅读全文
posted @ 2015-03-28 14:11 深南大道 阅读(1918) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 18 下一页