会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
学习学习再学习
Powered by
博客园
博客园
|
首页
|
新随笔
|
联系
|
订阅
|
管理
2006年7月12日
asp.net(c#) datelist DataGrid 中截取字符串加"..." 和 鼠标放上去字符全部显示
摘要: 前台<asp:TemplateColumn HeaderText="绑定网址"><HeaderStyle HorizontalAlign="Center" Width="100px"></HeaderStyle><ItemStyle HorizontalAlign="Center"></ItemStyle><ItemTemplate...
阅读全文
posted @ 2006-07-12 19:15 夜飞
阅读(1636)
评论(2)
推荐(0)
编辑
vs.2005 比较时间大小 可精确到秒
摘要: DateTime tmpDate; DateTime tmpDate2; if ((!DateTime.TryParse(this.txtBoxStartTime.Text.Trim(), out tmpDate)) || (!DateTime.TryParse(this.txtBoxEndTime.Text.Trim(), out tmpDate2))) { JS.Alert("时间格式不正确(...
阅读全文
posted @ 2006-07-12 17:38 夜飞
阅读(733)
评论(0)
推荐(0)
编辑
VS.2005 子窗体提交数据刷新父窗体 GRIDVIEW 子窗体(2)
摘要: 刷新夫窗体用的JS/// </summary>public class JS{ public JS() { } /// <summary> /// 刷新父窗口 /// </summary> public static void refreshParent(string strIndex) { HttpContext.Current.Response.Write(...
阅读全文
posted @ 2006-07-12 15:46 夜飞
阅读(1375)
评论(0)
推荐(0)
编辑
VS.2005 子窗体提交数据刷新父窗体 GRIDVIEW 父窗体(1)
摘要: 父窗题ASPX<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AddChance.aspx.cs" Inherits="BaseOperation_AddChance"%><%@ Register Assembly="Microsoft.Web.UI.WebControls" Namespace="Microsoft...
阅读全文
posted @ 2006-07-12 15:36 夜飞
阅读(1751)
评论(1)
推荐(0)
编辑
gridview中加弹出窗口用例
摘要: 。CSusing System;using System.Data;using System.Configuration;using System.Collections;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI...
阅读全文
posted @ 2006-07-12 15:11 夜飞
阅读(4893)
评论(0)
推荐(0)
编辑
创建数据库连接对象
摘要: using System;using System.Collections;using System.Collections.Specialized;using System.Data;using System.Data.SqlClient;using System.Configuration;using System.Text.RegularExpressions;/// <summary...
阅读全文
posted @ 2006-07-12 15:05 夜飞
阅读(954)
评论(2)
推荐(0)
编辑
ASP.NET程序员笔试最常见问题
摘要: public-----成员可以有任何代码访问private--- 成员只能有可类中的代码访问internal---成员只能有定义他的工程内部代码访问protected --成员只能有类或派生类的代码访问virtual---方法可以重写abstract--- 方法必须重写(只用于一抽象类)override---方法重写一个基类方法(如果方法被重写,就必须使用该关键字)extern---方法定义放在其...
阅读全文
posted @ 2006-07-12 09:11 夜飞
阅读(597)
评论(0)
推荐(0)
编辑
海量数据库的查询优化及分页算法方案
摘要: 海量数据库的查询优化及分页算法方案(转自 http://www.pconline.com.cn)--------------------------------------------------------------------------------实现小数据量和海量数据的通用分页显示存储过程 建立一个web 应用,分页浏览功能必不可少。这个问题是数据库处理中十分常见的问题。经典的数据分页方...
阅读全文
posted @ 2006-07-12 09:01 夜飞
阅读(471)
评论(1)
推荐(0)
编辑
表格列头加菜单(datagrid)
摘要: Introduction This article shows how to add a JavaScript tree menu to the DataGrid head text, as well as dynamically change the header text, which my clients require to change the date formats and dy...
阅读全文
posted @ 2006-07-12 09:00 夜飞
阅读(334)
评论(0)
推荐(0)
编辑
实现无刷新DropdownList联动效果
摘要: 在做一个文章添加功能时,想在选择大类后,自动将其所属二级小类显示出来,使用DropDownList的SelectedIndexChanged事件可以很容易实现,但每次选择后页面总要刷新一次,让人感觉很不爽。为实现DropDownList无刷新二级联动,这几天在网上找了些资料,但都无法达到我想要的效果,经过反复调试,现已基本实现了此功能,现将代码附下。 一、数据库设计: 字段名 数据类型 说明 C...
阅读全文
posted @ 2006-07-12 08:56 夜飞
阅读(819)
评论(0)
推荐(0)
编辑
实现的不让同一个用户登陆
摘要: string test = "username";private void Page_Load(object sender, System.EventArgs e){ if(Application["User_" + test] == null || Application["User_" + test].ToString() != Request.UserHostAddress) ...
阅读全文
posted @ 2006-07-12 08:46 夜飞
阅读(215)
评论(1)
推荐(0)
编辑
GridView控件修改、删除示例(修改含有DropDownList控件)
摘要: GridView控件修改、删除示例(修改含有DropDownList控件) Posted on 2006-05-16 10:54 星期零 阅读(160) 评论(0) 编辑 收藏 收藏至365Key 所属分类: Asp.Net2.0 GridView控件修改、删除例子,修改时含有DropDownList控件。示例运行效果图: GridViewUp.aspx文件代码: 无标题页 ...
阅读全文
posted @ 2006-07-12 08:38 夜飞
阅读(3096)
评论(7)
推荐(0)
编辑
asp.net打印
摘要: using System;using System.Collections;using System.ComponentModel;using System.Data;using System.Drawing;using System.Web;using System.Web.SessionState;using System.Web.UI;using System.Web.UI.WebContr...
阅读全文
posted @ 2006-07-12 08:31 夜飞
阅读(384)
评论(0)
推荐(0)
编辑
Web打印控制技术的几种方案:
摘要: 做Web开发的人员一定都会面临一个共同的难题,那就是打印。的确,相对于Windows桌面应用程序来讲,Web应用程序的打印有种种限制,技术人员在项目开发过程中经常会遇到用户这样或那样的需求. 做过桌面应用开发的人都会非常熟悉水晶报表、Active Report之类的报表控件,它们不仅有简单灵活的设计界面,更具有非常强大的报表功能,能满足各种报表的打印需求。而Web应用则因为其特殊的呈现方式,只能...
阅读全文
posted @ 2006-07-12 08:29 夜飞
阅读(444)
评论(0)
推荐(0)
编辑
ASP.NET中弹出窗口技术
摘要: ASP.NET中弹出窗口技术作为Microsoft的最新建立动态Web网站的工具,ASP.NET相对于ASP和JSP在改变原始的Web编程方式方面有了长足的长进。它的代码与页面分离技术(CodeBehind)以及完善的Web服务器控件为程序员提供了一个更加符合传统编程的Web服务器端开发方式。但Web编程还是有着与传统编程不相同的特点,这些特点决定了ASP.NET编程中必须以一些特殊的技巧来完成程...
阅读全文
posted @ 2006-07-12 08:28 夜飞
阅读(592)
评论(0)
推荐(0)
编辑