上一页 1 ··· 5 6 7 8 9 10 下一页
摘要: <%@ WebHandler Language="C#" Class="ImageWater" %>using System;using System.Web;using System.Drawing;using System.IO;using System.Drawing.Imaging;public class ImageWater : IHttpHandler{ private string imagepath = "~/ImageFiles/"; //图片所在的文件夹 private const string wa 阅读全文
posted @ 2012-11-13 17:24 一千零一夜 阅读(218) 评论(0) 推荐(0) 编辑
摘要: /// /// 将原始字串转换为unicode,格式为\u....\u.... /// /// /// private string StringToUnicode(string srcText) { string dst = ""; char[] src = srcText.ToCharArray(); for (int i = 0; i /// 将Unicode字串\u....\u....格式字串转换为原始字符串 ... 阅读全文
posted @ 2012-11-13 17:22 一千零一夜 阅读(1149) 评论(0) 推荐(0) 编辑
摘要: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %><%@ Register Assembly="PublicControls" Namespace="PublicControls" TagPrefix="mycols" %><!DOCTYPE html PUBLIC "-//W3 阅读全文
posted @ 2012-11-13 17:21 一千零一夜 阅读(169) 评论(0) 推荐(0) 编辑
摘要: lazyload.js(function($) {$.fn.lazyload = function(options) {var settings = {threshold : 0,failurelimit : 0,event : "scroll",effect : "show",container : window};if(options) {$.extend(settings, options);}var elements = this;if ("scroll" == settings.event) {$(settings.cont 阅读全文
posted @ 2012-11-13 17:19 一千零一夜 阅读(164) 评论(0) 推荐(0) 编辑
摘要: jQuery.cookie = function(name, value, options) { if (typeof value != 'undefined') { // name and value given, set cookie options = options || {}; if (value === null) { value = ''; options.expires = -1; } var expires = ''; if (options.expires... 阅读全文
posted @ 2012-11-13 17:19 一千零一夜 阅读(156) 评论(0) 推荐(0) 编辑
摘要: private DataTable GetPagedTable(DataTable dt, int PageIndex, int PageSize) { if (PageIndex == 0) return dt; DataTable newdt = dt.Copy(); newdt.Clear(); int rowbegin = (PageIndex - 1) * PageSize; int rowend = PageIndex * PageSize; if (rowbegin >... 阅读全文
posted @ 2012-11-13 17:15 一千零一夜 阅读(1284) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> <title>动态加载</title> <style type="text/css">ul{ list-s 阅读全文
posted @ 2012-11-13 17:13 一千零一夜 阅读(303) 评论(0) 推荐(0) 编辑
摘要: ajaxLD.aspx.cspublic partial class userCenter_ajaxLD : CenterPage{ protected void Page_Load(object sender, EventArgs e) { Response.Clear(); System.Text.StringBuilder sb = new System.Text.StringBuilder(); int ee3 = DNTRequest.GetFormInt("ee3", 0); if (ee3 > 0) ... 阅读全文
posted @ 2012-11-13 17:11 一千零一夜 阅读(170) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections;using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.HtmlControls;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Xml.Linq;using Sy 阅读全文
posted @ 2012-11-13 17:07 一千零一夜 阅读(166) 评论(0) 推荐(0) 编辑
摘要: if (fu.PostedFile.InputStream.Length < 1) { Comm.MessageBox.Show("请选择文件"); } string FileName = fu.FileName;//上传文件文件名 string FilePath = fu.PostedFile.FileName;//上传文件完整路径+文件名 if (FileName.ToLower().IndexOf(".txt") == -1) { Comm.Me... 阅读全文
posted @ 2012-11-13 17:07 一千零一夜 阅读(164) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 下一页