小莲莲
学如初出之苗,不见其增日有所长;惰如磨刀之石,不见其损日有所亏!
摘要: 转载的哦~~~~ 嘿嘿。。。 str为要去除空格的字符串:去除所有空格:str = str.replace(/\s+/g,"");去除两头空格:str = str.replace(/^\s+|\s+$/g,"");去除左空格:str=str.replace( /^\s*/, '');去除右空格:str=str.replace(/(\s*$)/g, "");SCRIPT LANGUAGE="JavaScript"> <!-- //出处:网上搜集// Trim() , Ltrim() , R 阅读全文
posted @ 2012-07-12 17:54 江南荷韵 阅读(191) 评论(0) 推荐(0) 编辑
摘要: 被房产网的地图搜索快给搞疯了,从网上搜的,留着以后学习用注:经纬度的查询,找了半天,终于找着活神仙了,(*^__^*) 嘻嘻……1.经纬度查询工具:http://www.playgoogle.com/googlemap/tool1.html 2.http://www.playgoogle.com/catalog.asp?cate=1 3.利用 Google Maps 查詢地址經緯度 - Geocoding via HTTP 簡易範例http://www.dotblogs.com.tw/chhuang/archive/2008/04/03/2593.aspx一、加载Google maps API 阅读全文
posted @ 2011-02-22 15:34 江南荷韵 阅读(11000) 评论(2) 推荐(2) 编辑
摘要: 曾经学过NHibernate的,但是自从工作到现在快一年了却从未用到过,近来要巩固一下却发现忘记了许多,一个“in expected: <end-of-text> (possibly an invalid or unmapped class name was used in the query).”错误查了好半天终于查到了。这篇文章是我转载的NHibernate的常见错误。。。hbm.xmlNHibernate文件中版本号可能引起的问题.<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"> 此处 阅读全文
posted @ 2010-08-30 16:26 江南荷韵 阅读(3045) 评论(1) 推荐(0) 编辑
摘要: 此贴为转载他人的。。。1、进入该网址:http://new.myfonts.com/WhatTheFont/,上传所需认识的图片。2、这时,会进入一个字体校对步骤,你要做的就是在每个高亮的字符的下面,填入正确的字符。3、按Contuine进入下一步,这时会出现一个字体列表,现在你可以从中找一个最匹配的字体名称了。 阅读全文
posted @ 2010-07-28 17:34 江南荷韵 阅读(872) 评论(0) 推荐(0) 编辑
摘要: 针对不同的浏览器写不同的CSS code的过程,叫CSS hack,也叫写CSS hack。 比如 IE6能识别下划线"_"和星号" * ",IE7能识别星号" * ",但不能识别下划线"_",而firefox两个都不能认识。书写顺序,一般是将识别能力强的浏览器的CSS写在后面。 比如要分辨IE6和firefox两种浏览器,可以这样写: <style> div{ background:green; /* for firefox */ *background:red; /* for IE6 */ } &l 阅读全文
posted @ 2010-06-30 16:23 江南荷韵 阅读(1549) 评论(0) 推荐(0) 编辑
摘要: <add key="SqlConnString" value="server=.;database=OA;uid=sa;pwd=123456" />using System;using System.Data;using System.Configuration;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.HtmlControls;using System.Web.UI.WebContr 阅读全文
posted @ 2010-06-01 13:35 江南荷韵 阅读(424) 评论(0) 推荐(0) 编辑
摘要: 在商品展示页点击购买跳到购物车页面,用一个DataTable将购买的商品存放起来,并可以删除或更改购买数量、合计出最终购物车的小计及总计。显示商品页面Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->1<%@PageLanguage="C#"AutoEventWireup="true"CodeFile="shopCart.aspx.cs"Inherits="shopCa 阅读全文
posted @ 2010-04-13 12:05 江南荷韵 阅读(1684) 评论(0) 推荐(0) 编辑
摘要: 绑定无限级的树形菜单,在前台需要的地方拖放一个TreeView控件,后台绑定代码如下:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->usingSystem;usingSystem.Collections;usingSystem.Configuration;usingSystem.Data;usingSystem.Linq;usingSystem.Web;usingSystem.Web.Security;usingSystem.Web.UI; 阅读全文
posted @ 2010-04-06 11:56 江南荷韵 阅读(602) 评论(0) 推荐(1) 编辑
摘要: 我将发布的项目挂到IIS上后,出现第一个错误“名称以无效字符开头。处理资源 'http://localhost/' 时出错。第 1 行,位置: 2”,经百度后查询的解决方法“重新注册一下iis:从 开始->程序->Microsoft Visual Studio 2008->Visual Studio Tools中打开Visual Studio 2008 命令提示,输入命令:aspnet_regiis -i,这样就重新注册.net”。 接着我又运行了项目,出现的第二个错误“在应用程序级别之外使用注册为 allowDefinition='MachineTo 阅读全文
posted @ 2010-03-01 16:46 江南荷韵 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 我们项目后台操作中不可避免的会有同时删除多项的操作,本文实现的就是当点击全选时,选定当前页中所有项,当取消了某一项的选定,则“全选”CheckBox的checked也为false;然后在后台中取到所选定的项的ID,实现同时删除多项的功能。 前台代码 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->1<%@PageLanguage="C#"AutoEventWireup="true"CodeFile 阅读全文
posted @ 2010-02-06 10:08 江南荷韵 阅读(2498) 评论(10) 推荐(1) 编辑