06 2012 档案
摘要:一般处理程序using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Script.Serialization;namespace WebApplication1{ /// <summary> /// JsonTest 的摘要说明 /// </summary> public class JsonTest : IHttpHandler { public void ProcessRequest(HttpContext ...
阅读全文
摘要:自己在用的分页方法,感觉性能还可以,如果大家有更好的方法可以交流一下。 #region 生成分页的SQL语句 top方法 /// <summary> /// 生成分页的SQL语句 top方法 /// </summary> /// <param name="tableName">表名</param> /// <param name="whereString">条件语句</param> /// <param name="orderByString">排序列
阅读全文
摘要:自动输入内容并提交 this.tb_url.Text = "http://www.baidu.com"; this.webBrowser1.Url = new Uri(this.tb_url.Text.Trim()); HtmlElement kw = webBrowser1.Document.All["kw"]; HtmlElement su = webBrowser1.Document.All["su"]; string str = DateTime.Now.ToString();...
阅读全文
摘要:上传EXCEL文件到服务器 if (FileUpload_excel.HasFile) { string excelFileName = FileUpload_excel.FileName; string fileExt = System.IO.Path.GetExtension(FileUpload_excel.FileName).ToLower(); if (fileExt==".xls" || fileExt==".xlsx") { try ...
阅读全文
摘要:在网站项目中新建一个目录ueditor1,把editor_all.js、editor_all_min.js、editor_config.js文件和net、dialogs、themes、third-party、_src目录放到ueditor1目录中。注:最开始用的目录名是ueditor,在上传图片时出现问题,所以目录命名时要注意。修改editor_config.js文件,URL = "/ueditor1/"; //就是自己建的目录名称;<textarea id="myEditor" cols="20" rows="2&q
阅读全文

浙公网安备 33010602011771号