12 2014 档案
摘要:生成验证码的类:using System;using System.Collections.Generic;using System.Drawing;using System.Text;namespace Controllers.Core.Util{ /// /// 验证码 //...
阅读全文
摘要:HTML代码:@{ Layout = null;}@using DAL;@using System.Data;@{ AreaDal areaDal = new AreaDal(); string areaId = ViewBag.areaId; DataRow drArea ...
阅读全文
摘要:子页面AreaSelect.cshtml页面的Controller代码:public ActionResult AreaSelect(){ return PartialView();}父页面前台代码: @{ ViewDataDictionary data = new Vi...
阅读全文
摘要:1、引用JS: <script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=87be68605271c5e4cfe712787041be0a"></script> 2、HTML: 东经: <input name=
阅读全文
摘要:定义一个类:using System.Data.SQLite;namespace DAL{ /// /// SQLite中文排序 /// [SQLiteFunction(FuncType = FunctionType.Collation, Name = "PinYin")...
阅读全文
摘要:EasyUI的datagrid分页前台代码:View Code后台:public ActionResult TouBiZhaoLingSearch(string startDate, string endDate, int page, int rows){ int totalCount; ...
阅读全文
摘要:HTML代码: 这里是表单内容View CodeJS代码:若保存成功,后台返回{"ok":true};若保存失败,后台返回{"ok":false, "msg":"错误信息"}function save() { $("#frm").submit(); $("#fra").one("l...
阅读全文
摘要:通过COM1发送数据,COM2接收数据。当COM2接收完本次发送的数据后,向COM1发送信息通知COM1本次数据已发完,COM1接到通知后,再发下一段数据。这样可以确保每次发送的数据都可以被正确接收。代码:using System;using System.Collections.Generic;u...
阅读全文

浙公网安备 33010602011771号