counter
counter

随笔分类 -  动手

摘要:1.指定的命名连接在配置中找不到、非计划用于 EntityClient 提供程序或者无效把模型的web.config配置文件下<addname="SecutityEntities"connectionString="metadata=res://*/Security.Security.csdl|res://*/Security.Security.ssdl|res://*/Security.Security.msl;provider=MySql.Data.MySqlClient;providerconnectionstring=&quot;server 阅读全文
posted @ 2012-08-18 05:17 bfy 阅读(1749) 评论(0) 推荐(0)
摘要:1.安装的工具。 VS2010和SP1。2.用linq to entity 中lamada表达式,最重要的引用System.linq。要不提醒不是委托类型。 阅读全文
posted @ 2012-08-18 03:40 bfy 阅读(148) 评论(0) 推荐(0)
摘要:1.privateDictionary<long,List<long>>mergeIdDict=newDictionary<long,List<long>>();RepeaterrptTemp=(Repeater)e.Item.FindControl("rptClass");foreach(vardictinmergeIdDict){if(dict.Key==info.Id){ classIdList.Add(info.Id); classIdList.AddRange(dict.Value); break;}}List< 阅读全文
posted @ 2012-07-04 17:44 bfy 阅读(137) 评论(0) 推荐(0)
摘要:1.前台页面,根据后台函数取值<asp:TemplateField> <HeaderTemplate> 所属学校</HeaderTemplate> <ItemTemplate> <%#GetSchoolName(Convert.ToInt32(Eval("SchoolId").ToString()))%... 阅读全文
posted @ 2012-05-30 17:52 bfy 阅读(168) 评论(0) 推荐(0)
摘要:1.CheckBoxList<asp:CheckBoxList ID="CheckBoxList1" runat="server"> <asp:ListItem Text="1" Value="1" Selected="True" Enabled="false"></asp:ListItem> <asp:ListItem Text="2" Value="2" ></asp:ListI 阅读全文
posted @ 2012-04-24 13:51 bfy 阅读(209) 评论(0) 推荐(0)
摘要:1.对该虚拟路径的根目录进行设置一下权限,图如下2.点击“编辑”,然后在弹出的框中点击"添加",然后在弹出的框中点击“位置”,选择自己的计算机。3.在输入对象名称来选择下面分别输入:ISUR和IIS_ISURS,添加这两个用户。4.下面的权限,勾上“修改”这一项。5.测试一下。 阅读全文
posted @ 2012-04-23 17:33 bfy 阅读(1247) 评论(0) 推荐(0)
摘要:1.WebConfig配置public static string connectionstring = ConfigurationSettings.AppSettings["MAIN"].ToString();//连接数据库2.得到SqlDataReader public static SqlDataReader GetReader(string sq ,params SqlParameter[] cmdParms) { SqlCommand command = new SqlCommand(sq, Article.SqlHelper.sqlexc.c... 阅读全文
posted @ 2012-04-23 11:33 bfy 阅读(186) 评论(0) 推荐(0)