摘要: /** * 判断系统的网络是否可用 * @return */ private bool isNetworkConnected() { bool net = false; ConnectivityManager connManager = (ConnectivityManager)this.GetSystemService(ConnectivityService); // connManager.ActiveNetworkInfo ==null 手机无法连接网络 if (connManager.ActiveNetworkInfo != null) { //获得 wifi 连接管理 Networ. 阅读全文
posted @ 2013-08-31 10:12 虫虫飞520 阅读(724) 评论(0) 推荐(0) 编辑
摘要: The package does not support the device architecture (x86). You can change the supported architectures in the Android Build section of the Project Options.包不支持设备架构(x86)。你可以改变支持架构在Android构建部分的项目选项。解决方法: 属性里面勾上X86 阅读全文
posted @ 2013-08-23 10:26 虫虫飞520 阅读(1202) 评论(1) 推荐(1) 编辑
摘要: List imgList = (from a in ZQSDWEBEntities.Attachment join m in (from t in ZQSDWEBEntities.MessageDetail where (id).Contains(t.ParentID) orderby t.MessageDate descending, t.MessageStart descending select t) on a.MessageId equals m.MessageId select a ).ToList();中间这部分没生效 改成这样就可以了 //最新10条数据(按MessageSt.. 阅读全文
posted @ 2013-08-03 16:14 虫虫飞520 阅读(414) 评论(0) 推荐(0) 编辑
摘要: @{ if (item.Attachment.Count > 0) { } else { } } 阅读全文
posted @ 2013-08-01 09:42 虫虫飞520 阅读(2271) 评论(0) 推荐(0) 编辑
摘要: 1 17 18 19 20 21 编号22 23 菜单名称24 25 数据类型26 27 32 33 34 35 上级编号36 37 创建人38 39 创建时间40 41 42 43 44 45 46 内容 47 48 ... 阅读全文
posted @ 2013-07-30 10:12 虫虫飞520 阅读(11710) 评论(0) 推荐(1) 编辑
摘要: 一 Html.ActionLink("linkText","actionName")该重载的第一个参数是该链接要显示的文字,第二个参数是对应的控制器的方法,默认控制器为当前页面的控制器,如果当前页面的控制器为Products,则 Html.ActionLink("detail","Detail")则会生成 二 Html.ActionLink("linkText","actionName","controlName")该重载比第一个重载多了一个参数,他指定了 阅读全文
posted @ 2013-07-26 09:57 虫虫飞520 阅读(356) 评论(0) 推荐(0) 编辑
摘要: @Html.ActionLink(item.MessageTitle, "Detail", "News",new { MessageId = item.MessageId }, new { @class = "badge badge-warning" })//html 阅读全文
posted @ 2013-07-26 09:35 虫虫飞520 阅读(6304) 评论(0) 推荐(1) 编辑
摘要: 跳转到链接 //Controller public ActionResult Detail(int MessageId) { BLL.ZQSDWEDBLL bll = new BLL.ZQSDWEDBLL(); List MessageDetailList = bll.getMessaggeMenu(MessageId); //获得主页下面所有消息 return PartialView(MessageDetailList); }//view @Html.ActionLink(item.MessageTitle, "Detail", "Product", 阅读全文
posted @ 2013-07-26 09:17 虫虫飞520 阅读(7272) 评论(0) 推荐(0) 编辑
摘要: Linq 中查询一个表中指定的字段Linq中查询一个表中指定的几个字段:var ts = t.FindAllItems().Where(P => P.CompanyID == CurSiteUser.CompanyId).Select(s => new { BillPeriod = s.BillPeriod,FieldB=s.FieldB }).Distinct().ToList().OrderByDescending(s => s.BillPeriod).Take(24);// FindAllItems()为查询对应表的所有数据的方法;// Where 里面为查询条件// 阅读全文
posted @ 2013-07-25 16:10 虫虫飞520 阅读(648) 评论(0) 推荐(0) 编辑
摘要: 问题描述:在用vs生成MVC时若使用Internet应用程序为模版,项目建好后重新编译下无法通过,弹出错误:解决方案:问题出来后,询问了身边很多人都是一头雾水,于是乎各种谷歌和百度,还好功夫不负有心人!终于找到一个解决方法,我把前辈写的方案整理一下,供大家参考!如果你在创建项目的时候出现上述错误,别急!step1:首先关闭你应用程序方案,在你保存项目的文件夹下找到ProjectName.csproj ProjectName是你实际的应用程序名称。step2:用文字编辑器打开你找到它找到 然后将上述两个代码替换为: 然后保存!然后用vs打开应用程序重新编译OK通过! 阅读全文
posted @ 2013-07-23 21:21 虫虫飞520 阅读(220) 评论(0) 推荐(0) 编辑