2012年7月9日
摘要: http://www.cnblogs.com/knowledgesea/archive/2012/06/20/2536603.html 阅读全文
posted @ 2012-07-09 09:39 小东北 阅读(208) 评论(0) 推荐(0) 编辑
  2012年7月6日
摘要: winform程序,我想进行安装。1、在解决方案中 ——点击右键——添加2、然后选择 安装和部署 ——安装向导 可以更改名称3、点击 下一步4、然后选择上那3个5、点击完成之后 会出现如下界面6、点击应用程序文件夹 选择主输出 ——右键 创建快捷方式 7、创建完快捷方式后——右键 剪切 在选择 用户桌面 —— 右键粘贴 这里就是程序安装完 桌面显示的 名字 可以自己更改8、同样在 在 应用程序文件夹中 创建个 主输出 的 快捷方式 ,这回 选中 用户的程序菜单 —— 右键 添加文件夹 (这个文件夹 就是在 开始 ;应用程序中 显示的 名字可以自己改) 然后把 那个应用程序 粘贴到 这个 ... 阅读全文
posted @ 2012-07-06 16:03 小东北 阅读(22222) 评论(1) 推荐(7) 编辑
摘要: <tr> <td> <embed src="images/index.swf" width="712" height="429"></embed> </td></trffff.swf就是flash<tr> <td> <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.c 阅读全文
posted @ 2012-07-06 08:31 小东北 阅读(725) 评论(0) 推荐(0) 编辑
  2012年7月4日
摘要: saveFileDialog 用法#region saveFileDialog的实现 { //string localFilePath, fileNameExt, newFileName, FilePath; string localFilePath = String.Empty; SaveFileDialog saveFileDialog1 = new SaveFileDialog(); //设置文件类型 save... 阅读全文
posted @ 2012-07-04 09:11 小东北 阅读(21612) 评论(0) 推荐(1) 编辑
摘要: 首先我要读取这个excel文件然后生成Datable用winform编程的方式前台界面:后台的代码using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.Data.OleDb;namespace 读Excel文件{ public partial class Form1 :... 阅读全文
posted @ 2012-07-04 08:55 小东北 阅读(8279) 评论(0) 推荐(1) 编辑
  2012年6月21日
摘要: http://tianqi.xixik.com/code/daqing/ 阅读全文
posted @ 2012-06-21 13:49 小东北 阅读(199) 评论(0) 推荐(0) 编辑
摘要: intime 字段在数据库中存储的是date 类型 我要更新spr字段 按照intime 字段 更新 语句 如下:update cms_info_tbl set spr='aaaa' where intime = to_date('2012-6-21 10:49:09','yyyy-mm-dd hh24:mi:ss') 阅读全文
posted @ 2012-06-21 13:40 小东北 阅读(337) 评论(0) 推荐(0) 编辑
  2012年6月15日
摘要: 实际上我这里一次性只能上传10个附件,就是通过js控制。 (另一个asp.net的批量上传:http://www.cnblogs.com/52net/archive/2012/06/14/2549174.html)上传界面:点击添加附件,添加完一个附件后,点击后面的继续可以继续添加附件。HTML代码: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="附件上传.aspx.cs" Inherits="wsw_测试_附件上传与下载_附件上传" %> 阅读全文
posted @ 2012-06-15 13:50 小东北 阅读(3818) 评论(4) 推荐(0) 编辑
  2012年6月12日
摘要: <asp:TemplateField HeaderText="任务名称" HeaderStyle-Font-Bold="false"> <ItemTemplate> <asp:LinkButton ID="lbtn" runat="server" CommandName="Edit" Text='<%# Bind("RWMC") %>' ToolTip='<%# Bind(... 阅读全文
posted @ 2012-06-12 13:44 小东北 阅读(538) 评论(0) 推荐(0) 编辑
摘要: 源码:用.html的页打开 csdn 地址:http://download.csdn.net/detail/njxiaogui/4367847<html><head><meta name="GENERATOR" content="Microsoft FrontPage 5.0"><meta name="ProgId" content="FrontPage.Editor.Document"><meta http-equiv="Content-Type&q 阅读全文
posted @ 2012-06-12 11:13 小东北 阅读(3450) 评论(1) 推荐(0) 编辑
摘要: 最近的项目用到Menu菜单的使用,选中某一项后绑定gridview 并赋值 。CSS样式.mnuTopMenu{ background-color: #ecf6ff; border: solid 1px #d6e8ff; font-family: 宋体; font-size: 20px; color: #1E5494; }.DynamicMenuStyle /*动态菜单矩形区域样式*/{ background-color: #ecf6ff; border: solid 1px #d6e8ff; padding: 1px 1px 1px... 阅读全文
posted @ 2012-06-12 09:41 小东北 阅读(6804) 评论(0) 推荐(0) 编辑
摘要: 当我鼠标移到第一个textbox上时,它明显变大了 并且带有颜色。html+CSS//CSS样式<style type="text/css"> .input_on{padding:2px 8px 0pt 3px;height:18px;border:1px solid #C9E0FF;background-color:#FAFAFA;}.input_off{padding:2px 8px 0pt 3px;height:18px;border:1px solid #C9E0FF;background-color:#FFF;}.input_move{padding: 阅读全文
posted @ 2012-06-12 09:15 小东北 阅读(1597) 评论(0) 推荐(0) 编辑
  2012年5月21日
摘要: http://www.cnblogs.com/xhwy/archive/2012/05/20/2510178.html 阅读全文
posted @ 2012-05-21 11:21 小东北 阅读(127) 评论(0) 推荐(0) 编辑
  2012年5月18日
摘要: 比如说绑定gridview某个字段过长,用。。。显示,然后鼠标放上去显示全部内容。HTML代码:这时gridview用lable绑定。 ToolTip 是显示鼠标移上去的内容。<asp:GridView ID="grv" runat="server" DataKeyNames="zcbm" CssClass="dataTableStyle" ForeColor="#333333" CellPadding="3" CellSpacing="1" Gri 阅读全文
posted @ 2012-05-18 15:11 小东北 阅读(517) 评论(0) 推荐(0) 编辑
  2012年5月17日
摘要: 开机时出现“DHCP。。。。”提示这是因为BIOS开启了网卡的启动芯片,关闭BIOS网卡的启动芯片即可解决。关闭的方法有两种1. 进入bios后,NetWork SetUp-->LAN option rom 选项更改为 NONE.2、进入integrated Peripherals选项-->onboard lan boot rom选项更改为Disabled3. 进入integrated Peripherals选项-->onboard pci device选项-->onboard lan boot rom选项更改为Disabled你的网卡芯片带无盘启动功能,进CMOS关掉 阅读全文
posted @ 2012-05-17 15:30 小东北 阅读(4828) 评论(0) 推荐(0) 编辑
  2012年5月16日
摘要: c/s结构下定时器的实现在c/s结构下我就是想把时间实时更新出来。我用个lable显示出来。using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;namespace 计时器{ public partial class Form1 : Form { public Form1()... 阅读全文
posted @ 2012-05-16 16:34 小东北 阅读(15372) 评论(0) 推荐(0) 编辑
  2012年5月10日
摘要: http://designbeep.com/2010/09/29/huge-collection-of-mini-icon-sets5000-icons-in-30-sets/ 阅读全文
posted @ 2012-05-10 15:49 小东北 阅读(160) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/qianduanzu/archive/2012/05/10/2493903.html 阅读全文
posted @ 2012-05-10 13:32 小东北 阅读(165) 评论(0) 推荐(0) 编辑
  2012年5月9日
摘要: 连接SQLserver数据库: string albumName = TextBoxName.Text.Trim();//获取新建相册的名字 SqlConnection conn = new SqlConnection("Server=(local);database=电子相册;uid=sa;pwd=zouming");//连接数据库 conn.Open(); string sql = "insert into Table_Name (name)values('" + albumName + "')"; SqlComm 阅读全文
posted @ 2012-05-09 15:24 小东北 阅读(3302) 评论(0) 推荐(0) 编辑
摘要: 方法一:用onmouseover和onmouseout 实现<asp:Imgbutton runat="server" src="drop.gif" onmouseover="this.src='drop.gif'" onmouseout="this.src='tabs2_2.gif'" />方法二:用 css 自带的样式去实现。CSS样式/*大按钮*/.btn_big{ border-style: none; border-color: inherit; border- 阅读全文
posted @ 2012-05-09 15:15 小东北 阅读(4178) 评论(0) 推荐(0) 编辑
  2012年5月8日
摘要: 默认情况时这个样子的。当我勾选上两项后 点击已选择 就把我已经勾选的显示出来 没有勾选的不显示。点击全部 就把全部列出来。当我点击已选择 后点击已选择 <input id="Button2" type="button" value="已选择" onclick ="yxz();" /></td>JS控制:GridView_zc为帮点字段gridview的ID<script type="text/javascript"> function yxz() {//查看已 阅读全文
posted @ 2012-05-08 09:53 小东北 阅读(2967) 评论(0) 推荐(0) 编辑
摘要: <asp:BoundField DataField="yz" HeaderText="原值" DataFormatString="{0:f2}" > <ItemStyle HorizontalAlign="Right" /> </asp:BoundField>红色的部份为保留位数。参考:http://www.cnblogs.com/lushuicongsheng/archive/2010/11/29/1891477.html 阅读全文
posted @ 2012-05-08 09:38 小东北 阅读(979) 评论(0) 推荐(0) 编辑
  2012年5月7日
摘要: //ChineseStr为你自己想输入的汉子。。。。。 public static string ChineseCap(string ChineseStr) { string Capstr = ""; byte[] ZW = new byte[2]; ... 阅读全文
posted @ 2012-05-07 09:34 小东北 阅读(2533) 评论(0) 推荐(2) 编辑
  2012年4月28日
摘要: asp.net中弹框的方式有很多种:1、基本方式: Response.Write("<script>alert('弹框!')</script>");2、页面有ScriptManager控件的时候: Page.ClientScript.RegisterStartupScript(Page.GetType(), "<script>alert('弹框!');</script>");3、执行 增、删、改 后提示,提示,之后跳转: Page.ClientScript.RegisterS 阅读全文
posted @ 2012-04-28 16:19 小东北 阅读(306) 评论(0) 推荐(0) 编辑
  2012年4月27日
摘要: 我这里有个 CKR字段 。我想实现的就是 如果在CKR中有“梁雯钰”人名。则我在CKZT中显示 为“已阅”,否则 就显示“未阅”用sql语句是这样写的:select ckr ,(case when instr(ckr,'梁雯钰')>0 then '已阅' else '未阅' end) as CKZT from ZC_PDTZ 运行后截图: 阅读全文
posted @ 2012-04-27 19:22 小东北 阅读(4138) 评论(0) 推荐(0) 编辑
  2012年4月25日
摘要: select a.orgname,b.member, substring(orgname || '/' || member, 6,length(orgname || '//' || member) - 4) as sbt,instr(orgname,'/') from sys_org a join sys_orgmenber b on a.orgname = b.org SBT 字段就是 ORGNAME和MEMBER字段的连接 substring 为字符串的截取 阅读全文
posted @ 2012-04-25 18:20 小东北 阅读(172) 评论(0) 推荐(0) 编辑
摘要: FCKeditor的使用。首先可以去我的CSDN下载FCKeditor;地址:http://download.csdn.net/detail/njxiaogui/4255422我的是已经设置好的了。。要引用进来 FredCK.FCKeditorV2.dll 这个文件。要把下载下来的fckeditor文件夹放在你项目的根目录下。首先在页面的开头要引用:<%@ Register TagPrefix="fckeditorv2" Namespace="FredCK.FCKeditorV2" Assembly="FredCK.FCKeditorV2 阅读全文
posted @ 2012-04-25 16:13 小东北 阅读(1286) 评论(0) 推荐(1) 编辑
  2012年4月24日
摘要: <script language="javascript">window.opener.opener = null;window.opener.location.replace(window.opener.location.href);window.close();</script> 阅读全文
posted @ 2012-04-24 09:13 小东北 阅读(319) 评论(0) 推荐(0) 编辑
  2012年4月13日
摘要: 在开发的过程中我们常常会用到checkbox 有可能会连续点击两个进行提交,通常我们的做法是一条一条的提交,这样来回操作数据库,时间会很长,我们可以放到一起提交上去。// 红色字体部分就是如何提交的写法。。。。 protected void btnbc_Click(object sender, EventArgs e) { string dh = ddlpddh.SelectedValue.ToString(); string sql2 = string.Empty; System.Data.DataTable dt = dbgr.GetDat... 阅读全文
posted @ 2012-04-13 16:06 小东北 阅读(2086) 评论(0) 推荐(0) 编辑
  2012年4月9日
摘要: 类似的在dropdownlist中可以实现多选择多个项。主要是用JS 和div控制,实际上右边的那个是图片。HTML<%@ Page Language="C#" AutoEventWireup="true" CodeFile="下拉框多选效果.aspx.cs" Inherits="wsw_测试_下拉框多选效果" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3 阅读全文
posted @ 2012-04-09 14:51 小东北 阅读(5378) 评论(1) 推荐(0) 编辑
  2012年3月30日
摘要: 在gridview中放入个dropdownlist 然后我想实现 点击 dropdownlist 的selectindexchange 事件中获取 gridview的行索引如图HTML前台代码 <asp:GridView ID="GridView3" runat="server" AutoGenerateColumns="false" CellPadding="3" CellSpacing="1" CssClass="dataTableStyle" DataKeyNam 阅读全文
posted @ 2012-03-30 14:53 小东北 阅读(730) 评论(0) 推荐(0) 编辑
摘要: 首先取到值:并有Server.UrlEncode 进行转换。 string dw = ViewState["orgname"].ToString(); dw = Server.UrlEncode(dw);页面传值正常传。 Response.Write(" <script language=javascript> window.open ( 'jc.aspx?guid=" + guid + "&dw=" + dw + " ', '借出信息表', 'height=320 阅读全文
posted @ 2012-03-30 11:22 小东北 阅读(1588) 评论(0) 推荐(0) 编辑
摘要: 前台JS是这样的function HoverLi(n){ //如果有N个标签,就将i<=N; for(var i=1;i<=3;i++){g('tb_'+i).className='normaltab';g('tbc_0'+i).className='undis';}g('tbc_0'+n).className='dis';g('tb_'+n).className='hovertab'; } 后台调用 Page.RegisterStartupScript( 阅读全文
posted @ 2012-03-30 11:17 小东北 阅读(215) 评论(0) 推荐(0) 编辑
  2012年3月23日
摘要: 先看看 截图实现的就是类似的效果。下面把代码全部上上:(有几个图片,可以去我的csdn下载我这个项目。)<%@ Page Language="C#" AutoEventWireup="true" CodeFile="标签效果.aspx.cs" Inherits="wsw_测试_标签效果" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtm 阅读全文
posted @ 2012-03-23 13:37 小东北 阅读(3129) 评论(0) 推荐(0) 编辑
  2012年3月21日
摘要: http://topic.csdn.net/u/20091216/12/4ac7c1f3-d515-4465-8899-147de826f0c9.html 阅读全文
posted @ 2012-03-21 10:22 小东北 阅读(317) 评论(0) 推荐(0) 编辑
  2012年3月20日
摘要: 首先 我想 实现的就是,通过gridview中模板列增加个textbox,并且从数据库中查出来这列值,然后绑定到textbox上。下面是我实现的效果(毁损时间 就是我的那个列,下面就是我显示出来的时间)HTML代码:<asp:TemplateField> <ItemTemplate> <asp:TextBox runat="server" CssClass="td" ID ="tbyy" onfocus="set_Date(this)" Text='<%# Eval(&q 阅读全文
posted @ 2012-03-20 11:06 小东北 阅读(4738) 评论(0) 推荐(0) 编辑
  2012年3月12日
摘要: 首先:我的Excel表格中是这个样子的DWBMDM DWBMQC1050100140001 采油四厂/厂机关10501001400010002 采油四厂/厂机关/机关采油四厂/厂机关/机关 我的这里面需要按照/把里面的内容分出来,然后再插入到库中。下面开始上代码:前台HTML<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="index.aspx.cs" Inherits="AnyOffice.general.DRBM.index" %>& 阅读全文
posted @ 2012-03-12 16:14 小东北 阅读(2585) 评论(0) 推荐(0) 编辑
摘要: //页面无刷新弹框 Page.RegisterStartupScript("", "<script>alert('请输入申报原因!')</script>"); 阅读全文
posted @ 2012-03-12 08:27 小东北 阅读(246) 评论(0) 推荐(0) 编辑
  2012年2月21日
摘要: 如何通过无线网卡共享宽带有线连接先说在windows下的1,连接有线宽带的机器,控制面板>网络连接>本地连接>属性>高级>在“Internet 连接共享”下,选中“允许其他网络用户通过此计算机的 Internet 连接来连接”2,无线网络连接>属性>无线网络配置>用Windows配置我的无线网络设置>右下角的高级>仅计算机到计算机(特定)或者 任何可用的网络(首选访问点)不要勾选“自动连接到非首选的网络”复选框。3,在该“无线网络连接属性”窗口中,单击左下角的“添加”按钮,接着在“服务设置标识(SSID)”中随便输入一个网络的名称,比 阅读全文
posted @ 2012-02-21 09:05 小东北 阅读(5420) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/skykang/archive/2011/11/22/2258872.htmlhttp://www.cnblogs.com/Jack_G/archive/2012/01/10/2318361.htmlhttp://yrq205.blog.163.com/blog/static/476721402011469012967/ 阅读全文
posted @ 2012-02-21 08:53 小东北 阅读(196) 评论(0) 推荐(1) 编辑