摘要: 1、样式及HTML代码如下:<style type="text/css">#toTop{background-image:url(Images/qqbg.png);}#toTop{width:54px;height:54px;display:block;position:fixed;right:25px;bottom:45px;background-position:-700px -110px;opacity:0.3;filter:alpha(opacity=30);z-index:100000001px;}#toTop:hover{opacity:1;filt 阅读全文
posted @ 2012-11-01 14:19 loklook123 阅读(239) 评论(0) 推荐(0) 编辑
摘要: 1、CSS/************顶部工具栏样式***********************/#ToolBar { opacity:0.8; position:fixed; top:0px; right:0px; width:100%; height:45px; text-align:center; background:url(Images/head.jpg); z-index:2; overflow:hidden;}2、JS部分<script type="text/javascript">$(document).ready(f... 阅读全文
posted @ 2012-10-31 16:19 loklook123 阅读(713) 评论(0) 推荐(0) 编辑
摘要: 1、首先(为解决IE浏览器差异)html头部必须加入代码:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-CN" lang="zh-CN">2、html代码:<di 阅读全文
posted @ 2012-10-30 17:00 loklook123 阅读(277) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Data;using System.Configuration;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Web.UI.HtmlControls;using System.Data.SqlClient;namespace DAL{ /// <summary> /// 自定义访问通 阅读全文
posted @ 2012-10-25 14:27 loklook123 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 生成GIF后再到前台绑定到图片或图片按钮上。就可以。步骤:1先新建一个【一般处理程序】,找一下,后缀名为 ashx (我生成的是:Handler.ashx)2.把下面源码贴上去(替换整个页面)。3A 】 生成图片方式: <asp:Image ID="Image1" runat="server" ImageUrl="~/Handler.ashx" />b】 生成图片按钮方式(此方式可以通过点击图片刷新验证码): <asp:ImageButton ID="ImageButton1" runat=&qu 阅读全文
posted @ 2012-10-25 14:23 loklook123 阅读(146) 评论(0) 推荐(0) 编辑
摘要: public class MessageBox { public static void showBox(System.Web.UI.Page page, string script) { page.ClientScript.RegisterStartupScript(page.GetType(), "message", "<script type='text/javascript'>" + script + "</script>"); } } 阅读全文
posted @ 2012-10-09 11:06 loklook123 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 一、基本用法window.open(pageURL,name,parameters)其中:pageURL为子窗口路径name为子窗口句柄parameters为窗口参数(各参数用逗号分隔)实例:window.open('page.html','newwindow','height=100,width=400,top=0,left=0,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no')二、关闭窗口,并刷新父窗口function CloseWindow(){ 阅读全文
posted @ 2012-10-09 10:57 loklook123 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 一、用法:window.showModalDialog(url,args,'dialogWidth=650px;scroll=no;dialogHeight=250px;status=no; ');二、关闭子窗口,并刷新父窗口想在showModalDialog打开的窗口中提交表单且不打开新窗口只需在打开的页面的<head>中加入<base target="_self">在<form>中不写target属性或target属性为空如果想刷新父窗口,还要在body标签中加入以下属性: onbeforeunload="d 阅读全文
posted @ 2012-10-09 10:39 loklook123 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 第一部份:工厂模式一、项目名称及描述:(实现步骤为:4-3-6-5-2-1)1、WEB=表示层2、BLL=业务逻辑层3、IDAL=数据访问层接口定义4、Model=业务实体5、DALFactory=数据层的抽象工厂(创建反射)6、SQLServerDAL=SQLServer数据访问层 / OracleDAL=Oracle数据访问层DBUtility 数据库访问组件基础类(SqlDbHelper,OracleDbHelper,等)二、项目引用关系1、Web引用BLL。2、BLL引用IDAL,Model,使用DALFactory创建实例。3、IDAL引用Model。4、Model无引用。5、DAL 阅读全文
posted @ 2012-09-10 17:47 loklook123 阅读(246) 评论(0) 推荐(0) 编辑