上一页 1 ··· 40 41 42 43 44 45 46 47 48 ··· 54 下一页
摘要: 父窗口弹出子窗口的 button处理事件: private void butDeta_Click(object sender, System.EventArgs e) { Response.Write("<script>window.open('CangkuDetaList.aspx?strMateNo="+ txtMateNo.Text +"&strWaretype="+ ddlWareType.SelectedValue +"','new1','width=750,height=4 阅读全文
posted @ 2011-01-26 14:40 小锋神 阅读(2865) 评论(0) 推荐(0)
摘要: CREATE PROCEDURE change_product@result varchar(50) output,@product_no varchar(50),@color varchar(50),@product_size varchar(50),@oldcolor varchar(50),@oldproduct_size varchar(50),@stockid int,@oldstockid int,@number int,@users varchar(50),@orderno varchar(50),@memo_product_inout_record text AS declar 阅读全文
posted @ 2011-01-26 13:11 小锋神 阅读(3332) 评论(0) 推荐(0)
摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /& 阅读全文
posted @ 2011-01-25 16:04 小锋神 阅读(6877) 评论(0) 推荐(1)
摘要: 1、admins目录访问时转到admins/login.aspx2、other.aspx访问时转到login.aspx配置文件设置拒绝other.aspx和admins目录,默认登录页面为login.aspx,并设置允许匿名访问admins/login.aspx】<configuration><system.web> <authentication mode="Forms"> <forms loginUrl="login.aspx"> </forms> </authentication&g 阅读全文
posted @ 2011-01-23 23:49 小锋神 阅读(2588) 评论(0) 推荐(1)
摘要: 这两天做一个小项目,需要把用户在注册的时候填入的个人信息保存到Profile中,自然而然的想到要自定义CreateUserWizard控件的创建用户步骤(CreateUserWizardStep),现在把我的实现过程写下来,跟大家探讨一下。 一 . 在web.config中定义Profile字段,设置各字段的allowAnonymous="true"。 <profile enabled="true"> <properties> <group name="address"> <add name= 阅读全文
posted @ 2011-01-22 10:44 小锋神 阅读(1738) 评论(0) 推荐(0)
摘要: @ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns= 阅读全文
posted @ 2011-01-19 11:28 小锋神 阅读(2986) 评论(0) 推荐(0)
摘要: 鼠标经过表格变色样式:<style> table { background-color:#000000; cursor:hand; width:100%; } td { /*设置onmouseover事件*/ onmouseover: expression(onmouseover=function (){this.style.borderColor ='blue';this.style.color='red';this.style.backgroundColor ='yellow'}); /*设置onmouseout事件*/ onmo 阅读全文
posted @ 2011-01-18 16:36 小锋神 阅读(7109) 评论(0) 推荐(0)
摘要: GridView/DataGrid行单击和双击事件实现代码(转) protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { LoadGridViewProductData(); LoadDataGridProductData(); } } protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { /* 当然可以在这里进行客户端脚本绑定, 但是,我选择在重载页的 Render 方法中处理,因为 1. RowD 阅读全文
posted @ 2011-01-16 23:29 小锋神 阅读(4385) 评论(0) 推荐(0)
摘要: 如果你想让鼠标移到按钮上更改背景颜色,移出后恢复,一般用以下代码,那能不能把他写成自定义控件呢?<asp:ButtonID="Button1"runat="server"onmouseover="this.style.backgroundColor='DodgerBlue';this.style.color='black';"onmouseout="this.style.backgroundColor='Silver';this.style.color='blac 阅读全文
posted @ 2011-01-16 22:23 小锋神 阅读(1979) 评论(0) 推荐(0)
摘要: 使用MSDNSqlPager这么久以来,对SqlPager已经有了比较深入的了解了,总的说来,SqlPager是一个不错的分页控件。对于一般的需求已经能够很好的满足,而且性能比较好;但是美中不足的地方是:它只能对不重复的列进行排序,一旦你用于排序的列的数据有重复现象那么就将出现漏掉数据的情况;对于这个情况我目前也没有好的解决方法,唯一的办法就是先在查询中进行排序,然后再生成该查询结果的自动编号列,不过这个功能在SqlServer2000下不好做,在SQL2005中到自带该功能!闲话就到此,下面转入正题!以前也对SqlPager进行过一些小的修改,不过还是感觉功能上欠缺了一些!由于一个小项目的需 阅读全文
posted @ 2011-01-16 17:56 小锋神 阅读(921) 评论(0) 推荐(0)
上一页 1 ··· 40 41 42 43 44 45 46 47 48 ··· 54 下一页