摘要:
1、在php.ini文件中改动error_reporting改为: error_reporting=E_ALL & ~E_NOTICE 2、如果你不能操作php.ini文件,你可以使用如下方法 在你想禁止notice错误提示的页面中加入如下代码: error_reporting(E_ALL^E_NO 阅读全文
摘要:
1.在php.ini中打开extension=php_oci8扩展,重启服务。 2.将php/ext目录下的php_oci8.dll文件拷贝到system32目录下 3.安装 Oracle9i客户端精简版 后重启电脑 配置: 查询: 插入: 阅读全文
摘要:
string strURL = "http://localhost/WinformSubmit.php"; //string param = string.Format("do=login&u={0}&p={1}", username, password); //参数的另一种写法 string st 阅读全文
摘要:
php 生成 Json 部分 <?php $arr_result = array(); //返回值 $arr_result['result'] = '0'; $arr_result['callerid'] = '139411288888'; echo json_encode($arr_result) 阅读全文
摘要:
引用 Newtonsoft.Json.dll //C# 读取JSON Newtonsoft.Json.Linq.JObject jsonStr = Newtonsoft.Json.Linq.JObject.Parse(strResult); this.txtResult.Text = jsonStr 阅读全文
摘要:
vertical-align:middle; 阅读全文
摘要:
案一:Try...Catch(执行效率不高) private bool IsNumberic(string oText) { try { int var1=Convert.ToInt32 (oText); return true; } catch ... 阅读全文
摘要:
using System.Runtime.InteropServices;//放wav public partial class frmMain : Form { 系统放 播放音乐 wav mp3 [DllImport("winmm.dll")] public static extern bool PlaySound(string pszSound, int hmo... 阅读全文
摘要:
using System; using System.Collections.Generic; using System.Text; using System.Data; using System.Windows.Forms; using System.Reflection; namespace DMS { /// /// C#操作Excel类 /// class ExcelOperate... 阅读全文
摘要:
//多表多行多列的情况 foreach (DataTable dt in YourDataset.Tables) //遍历所有的datatable { foreach (DataRow dr in dt.Rows) ///遍历所有的行 foreach (DataColumn dc in dt.Colu... 阅读全文