posted @ 2010-06-11 08:41 gzlxm 阅读(3214) 评论(3) 推荐(1)
摘要:
在开发Web项目的时候,会有一个配置文件Web.config,用来存放一些全局的变量,如连接数据库用的字符串。相应的,在开发winform程序时,也有一个配置文件,它就是App.config,这个文件的作用与Web.config大致相同,也可以用来存放程序所用的全局变量及Value值。 来看一个app.config文件的例子:[代码] 可以看出,app.config和web.config一样,... 阅读全文
摘要:
一、通用分页存储过程 首先创建一个通用的存储过程代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--ALTERPROCEDURE[dbo].[ProcDataPaging](@tblNamenvarchar(200),----要显示的表或多个表的连接@... 阅读全文
posted @ 2010-06-09 17:10 gzlxm 阅读(801) 评论(0) 推荐(1)
摘要:
using System;using System.Data;using System.Configuration;using System.Web;using System.Collections;using System.Data.SqlClient;/// <summary>/// 数据库的通用访问代码/// 此类为抽象类,不允许实例化,在应用时直接调用即可/// </su... 阅读全文
posted @ 2010-06-08 13:10 gzlxm 阅读(1146) 评论(0) 推荐(0)
摘要:
上班第一份工作就是做程序数据的导入导出,听起来似乎挺Easy的,开始我也这样认为,但是在实际操作中却不同了... 以往的导出数据是用HTML标签拼接成Table,然后在一行一列的显示成Excel,其实不然,这种Excel是HTML版本的Excel,并不是标准的Excel,所以如果我们把刚导出的数据进行修改保存然后接着导入来更新数据库中的数据就no、no、no了,程序不识别这种格式,那怎么办呢,所... 阅读全文
posted @ 2010-06-08 13:08 gzlxm 阅读(3066) 评论(1) 推荐(0)
摘要:
今天遇到一个需求,把原先表单上需要输入的一个项隐藏起来,考虑有2种方法:首先说一下页面布局,这个输入项是一个TextBox,放在一个Table里的一个TR下的TD里,所以可以对TR进行隐藏一种:把TR的display改为none另外一种:把TR的visible改为false经过测试,2种方法都可以隐藏里面的控件,但是稍有区别:像大多数网上其他文章说的那样,第一种仅仅是隐藏了控件,但是html代码依... 阅读全文
posted @ 2010-06-08 12:54 gzlxm 阅读(596) 评论(0) 推荐(0)
摘要:
一.添加父窗体JavaScript代码,“showInfo()”方法用于打 开子窗体,并获取子窗体返回结果填充到TextBox1和TextBox2<script language="javascript" type="text/javascript"> function showInfo() { var retValue=window.showModalDial... 阅读全文
posted @ 2010-06-08 12:37 gzlxm 阅读(194) 评论(0) 推荐(0)
摘要:
引用 http://www.pin5i.com/showtopic-8418.html代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--usingSystem.Runtime.InteropServices;usingSystem.Text;name... 阅读全文
posted @ 2010-06-08 10:53 gzlxm 阅读(244) 评论(0) 推荐(0)
摘要:
http://paranimage.com/more-than-50-sets-of-css-navigation-menu-free-resources/ 阅读全文
posted @ 2010-06-08 09:25 gzlxm 阅读(201) 评论(0) 推荐(0)
摘要:
1.public class Person {public int ID{ get; set; } public string Name { get; set; } public string Age { get; set; } }MainPage.xaml.cs MainPage.xaml.csMainPage.xamlMainPage.xaml 阅读全文
posted @ 2010-06-08 08:19 gzlxm 阅读(377) 评论(0) 推荐(0)