随笔分类 - .net 中应用
.net 中应用
摘要:1、提示错误信息: zipSystem.TypeLoadException: Could not load type 'System.IO.Compression.CompressionLevel' from assembly 'System, Version=4.0.0.0, Culture=ne
阅读全文
摘要:应用情景一:根据ID显示名称例如:0代表启动,1:代表关闭例子如下应用情景二:根据所得的ID显示两个不同的连接或者..." : "" + Eval("ID") + ""%>应用场景三:在页面中显示下拉列表在后台做判断.前台做显示.
阅读全文
摘要:用文本编辑器打开 工程名称 .csproj找到1. 2. 然后以上两个代码替换为: 然后保存!然后用vs2010打开应用程序重新编译OK通过!
阅读全文
摘要:public string RunProcedure(OleDbParameter[] paramInput, OleDbParameter[] paramOutput, string procName) { int cnt = 0; string returnString = "-2"; try { String ConnStr = OleDbHelper.GetOleDBConnection(); using (OleDbConnection connection = new OleDbConnection(ConnStr)) { OleDbCommand cmd =
阅读全文
摘要:1.获取Return返回值SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["LocalSqlServer"].ToString());conn.Open();SqlCommand MyCommand = new SqlCommand("SQL", conn);MyCommand.CommandType = CommandType.StoredProcedure;MyCommand.Parameters.Add(new SqlParameter(&q
阅读全文