自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

  • 博客(51)
  • 收藏
  • 关注

原创 java将"\"转成"/"

String test=test.replace("\\", "/")

2012-09-11 15:50:32 2372 4

原创 java js 根据下拉菜单选择的值 控制另一控件的显藏情况

onchange="p_del()"                                    headerKey="0" headerValue="--All--" listKey="disctype"                                    listValue="disctype">

2012-08-24 17:36:15 1402

转载 以 rsync 進行同步鏡像備份

http://linux.vbird.org/linux_server/0310telnetssh.php#rsync

2012-08-23 13:02:37 868

转载 jTree打造硬盘文件目录树

http://canyue-2007.iteye.com/blog/691669

2012-06-11 17:01:06 994

转载 jTree 添加、编辑、删除节点

http://developer.51cto.com/art/201201/313014.htmhttp://blog.sina.com.cn/s/blog_40b22f640100kf3a.htmlhttp://blog.csdn.net/cnjzy0106/article/details/5388715//删除:private void jButton8MouseC

2012-06-06 10:49:49 949

原创 添加、查看、删除外键

http://hi.baidu.com/shanghaocool/blog/item/1d014b0bf4afdc89d1581bbc.html添加外键alter table sitecodes drop foreign key FK_sitecodes设置外键 alter table 需要建立外键的表 add constraint 外键名字 foreign key

2012-05-31 18:20:35 387

原创 sql查询时实现类型转换(将字符串转换为日期)

Select sb_orders_product_name,sb_orders_product_description,sb_orders_qty,sb_orders_unit_price,sb_orders_subtotal,sb_orders_service_dateFROM sb_orders WHERE sb_orders_number ='40976801' AND sb_c

2012-05-30 13:58:35 2849

原创 .net JS获取控件ID

前台:         runat="server" id="txtTags" type="text" style="width: 200px"   />JS:  var txtLastName = document.getElementById("lastname"); var txtTags = document.getElementById("ctl00_Content

2012-05-28 13:19:39 1479

转载 Apache AXIS 开发 Web Services Step By Step

http://tech.ddvip.com/2009-02/1233733762107191.html

2012-05-23 12:07:58 283

转载 synchronized

http://www.learndiary.com/2006/12/%E6%90%9E%E6%87%82java%E4%B8%AD%E7%9A%84synchronized%E5%85%B3%E9%94%AE%E5%AD%97/1、synchronized关键字的作用域有二种:1)是某个对象实例内,synchronized aMethod(){}可以防止多个线程同时访问这个对象的s

2012-05-21 14:41:06 236

原创 java打包压缩文件

http://blog.csdn.net/wslovess/article/details/5092898获取根路径:电脑中磁盘位置1.private  static String getPath(){//获得项目所在根路径        String myPath="";        if   ("\\".equals(File.separator))        {

2012-05-17 18:05:31 292

原创 .net 验证输入不为空

Re-Type New Password                                    ID="txtNewPassword2" runat="server" TextMode="Password">                                                                            Con

2012-05-15 12:33:49 1798

原创 java背景颜色交替显示数据

官方文档:http://struts.apache.org/2.0.11/docs/iterator.html                                                        status="rowstatus">

2012-05-11 17:08:46 620

原创 java 数组迭代器(或者集合里存放字符串,而不是bean)

http://www.mkyong.com/struts2/struts-2-iterator-tag-example/public class T{private ArrayList urlArrList = new ArrayList(); public ArrayList getUrlArrList() {  return urlArrList; } public v

2012-05-09 13:32:10 2856

转载 js 实现删除确认提示框

http://www.jb51.net/article/21543.htm  第一种: 删除 第二种: function p_del() { var msg = "您真的确定要删除吗?\n\n请确认!"; if (confirm(msg)==true){ return true; }else{ return false; } }

2012-04-19 17:02:02 8060

原创 JDBC 建立MySQL连接

import java.sql.*;public class DataBase {  private static String url = "jdbc:mysql://localhost:3306/mysql";  private static String driver = "com.mysql.jdbc.Driver";  private static String user

2012-04-11 21:51:27 406

转载 struts2 标签 value 运算

http://topic.csdn.net/u/20090910/11/9c11feec-c0b6-4656-8af7-65bd64175650.htmlvalue="%{invoiceamount+manualTransaction-receivedPay}" />

2012-04-05 13:59:21 533

原创 图片链接至指定类的指定方法

odometerReportSearchActionexportToCsv"  > odometerReportSearchAction* " class="com.hruisoft.www.action.OdometerReport"   method="{1}">    。。。

2012-03-20 15:34:20 292

转载 .net4.0(VS2010平台) url重写

1. http://www.cnblogs.com/yukaizhao/archive/2010/05/20/urlrouting_asp_net_40.html2. http://www.cnblogs.com/oec2003/archive/2010/07/27/1785862.html1. Url Routing 的通常用法UrlRouting在Asp.Net Mvc项目中被

2012-03-07 11:13:46 2478

转载 如何全选 s:iterator 中嵌套的 所有 s:checkbox

http://www.iteye.com/problems/38595                                              ..............................                    onclick="return selectAll()" /> Javascr

2012-02-29 10:01:49 1238

转载 Java中double类型计算不精确的解决办法(BigDecimal)

2008-10-06 10:33http://hi.baidu.com/jjcc2001/blog/item/ec32bbca48fac740f21fe79e.html解决方法:写一个Arith类:http://www.linuxidc.com/Linux/2011-06/37232.htm首先我们先用一般的情况进行下double类型的计算。System.o

2012-02-17 17:53:27 5655

原创 struts 文件下载——导出Excle/导出PDF

######导出Excle########public InputStream getTableTransaction() throws FileNotFoundException {  Date datenow=new Date();  SimpleDateFormat  dateFormatNow=new SimpleDateFormat ("yyyy-M-d-HH-mm-ss")

2012-02-08 17:50:00 1200

原创 iterator 里使用checkbox 后台判断哪些被选中

fieldValue="%{invoiceid}" />                -->                       。。。。。。。。。。。。。。             后台数组payAll(private String[] payAll;)接收到选中行的invoiceid

2012-02-03 14:20:59 443

原创 struts 使用通配符一个form表单里实现2个action

addPaymentAction*" method="post" name="form"      onsubmit=" return validate();">............. method="addPayment">          method="Search">          addPaymentAction*" class="com.h

2012-01-31 17:48:19 656

原创 DateList 容器前后台交互

OnItemCommand="DataList1_ItemCommand">

2012-01-13 15:30:31 345

原创 .net 前台验证输入是否一致

><asp:CompareValidator ID="CompareValidator8" runat="server"                                        ErrorMessage="Please input the same Email!" ControlToCompare="txtIndividualEmail"

2012-01-10 14:48:23 288

转载 .net MessageBox后台提示

方法一:MessageBox("1", "This Talkic was successfully followed."); public void MessageBox(string strKey, string strInfo)     {         if (!ClientScript.IsClientScriptBlockRegistered(strKey))

2011-12-22 16:58:38 403

原创 google广告插入

google_ad_client = "pub-2731477260799296";                        /* 728x90, created 11/12/09 */                        google_ad_slot = "6932397851";                        google_ad_width = 72

2011-12-22 14:36:29 485

原创 .net session存取+页面跳转

Session["Tag"] = TextBox_Search.Text;  //session 存String Tag = Session["Tag"].ToString(); //session 取 Response.Redirect("~/JackDonkeyMyPersonalFeedSearch.aspx"); //页面跳转

2011-12-16 17:45:59 283

转载 C#正则让文本中的所有网址自动变成连接

public static string ShowUrls(string text)    {            Regex linkRegex = new Regex(" href\\s*=\\s*(?:(?:\\\"(?[^\\\"]*)\\\")|(?[^\\s]* ))",            RegexOptions.IgnoreCase | RegexOptions.

2011-12-15 17:46:18 429

原创 .net 后台方法调用

protected void Button1_Click(object sender, EventArgs e)    {........................................................}  protected void DropDownList_options_changed(object sender, EventArgs e

2011-12-06 16:46:51 255

原创 数据库更新

#region----将信息存入数据库store the information to the SQL-------        int userId = Convert.ToInt32(Session["UserId"]);        string strcn = System.Configuration.ConfigurationManager.AppSettings["Main

2011-12-06 13:28:30 236

原创 ajaxToolkit:AutoCompleteExtender

http://moosdau.blog.163.com/blog/static/43711282008824113942459/                                                                             public string[] GetData(string prefixText, i

2011-12-05 16:03:09 333

原创 数据库连接、读取(查询)以及赋值给变量过程

1.数据库连接、读取以及赋值给变量             int userId = Convert.ToInt32(Session["UserId"]);                string strconn = System.Configuration.ConfigurationManager.AppSettings["Main.ConnectionString"].Trim()

2011-12-02 15:15:54 5097

原创 DropDownList 数据绑定

string strconn = System.Configuration.ConfigurationManager.AppSettings["Main.ConnectionString"].Trim() + " ; Provider=SQLOLEDB;";        OleDbConnection cnn = new OleDbConnection(strconn);

2011-12-01 16:42:53 645

转载 sql 多表连接(图解)

http://blog.csdn.net/book_luodaijun/article/details/2620466

2011-11-30 12:10:04 916

原创 sql语句

1.select top 12 * from JackDonkey_Album where AlbumId in(select AlbumId from JackDonkey_TagImgThou whereCONVERT(varchar(50), TagId) ='489') and RowStatus='active' order by YesCount DESC2.((select *

2011-11-26 14:23:10 224

转载 如何装XP系统

如何装XP系统 http://wenda.tianya.cn/wenda/thread?tid=50cf09a35dd4ccc1&hl=zh-CN%3Ftid%3Flid%3Flid%3Flid第一步,设置光启: 所谓光启,意思就是计算机在启动的时候首先读光驱,这样的话如果光驱中有具有光启功能的光盘就可以赶在硬盘启动之前读取出来(比如从光盘安装系统的时候)。 设置方法

2011-11-23 15:51:13 349

原创 读取xml根节点值

xml version="1.0" encoding="gb2312" ?>-Root>-Head>- 报文头内容数据项参见商业银行财政业务接口技术规范  -->   src>CZ-350000src>  des>CCB-350000des>  dataType>1603dataType>

2011-11-22 13:21:05 995

原创 二次绑定(重新绑定)控件的DataSource

TableName="Loan_base" EnableUpdate="true" EnableInsert="true">     GoldenSeaDataDataContext context = new GoldenSeaDataDataContext();        rgdLoanbase.DataSourceID = String.Empty;

2011-11-19 15:30:23 1800

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除