- 博客(36)
- 收藏
- 关注
转载 利用MS提供的重写URL类来实现伪静态
一、准备工作 1、到MS站下载URLRewriter文件,本贴提供了下载,请点击最下面的附件(URLRewriter); 2、将URLRewriter添加到你的项目中,或者编译成Dll文件引入到项目中都可以二、配置工作 1、打开Web.Config文件 2、找到节点,再节点中添加此代码 结果显示为: ....//这里是系统自动添加的一些代码,这里不进行贴出
2009-08-25 10:03:00 218
转载 传奇三game 表详解
二。数据库game1中的TBL_ABILITY表 (角色主要属性表)FLD_CHARACTER 角色名FLD_LEVEL 角色等级FLD_RESERVED1 是否包月???FLD_AC 防御FLD_MAC 魔法防御FLD_DC 破坏(攻击)FLD_MC 自然系魔法FLD_SC 灵魂系魔法FLD_HP 当前HPFLD_MP
2009-01-08 10:11:00 3707
转载 怪物Appr值与Data里Mon-x.wil里图像的对应关系
大家一定想知道怪物的Appr值是怎么算出来的吧?其实有更简单的办法! 首先大家要准备好两个主角:SQL数据库与看wix软件(为什么要用看wix软件,因为这个软件查看图像快,打开快,还可以直接输入数字查看,全名是"传奇III图片资源解析器",蚂蚁写的,旭日汉化的,没有的话只好用wil-106软件了,麻烦一点).准备好后下面开工:1.已知Appr值的情况下怎么用看wix软件快速准确查看Mon-x(1~
2009-01-08 10:07:00 1136
原创 GridView按钮传值非模板
DataKeyNames="team_autoid,route_autoid" onrowcommand="GridView3_RowCommand" onrowdatabound="GridView3_RowDataBound" CellPadding="4"
2008-05-16 09:44:00 527
原创 在gridview的模版列里添加绑定的linkbutton实现动态跳转的事件
在gridview的模版列里添加绑定的linkbutton实现动态跳转的事件在gridview里,会用到模版列,在模版列里可以实现很多功能,我是最近才刚刚接触到vs2005,很多功能也刚会用首先我们要先拖一个gridview里放到页面或是用户自定义控件里新建一个模版列,从工具栏里拖动一个linkbutton放到itemtemplate里,并且在linkbutton的属性里找到command
2008-05-16 09:41:00 1223 1
转载 C# 事务
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using System.Data.SqlClient;namespace 事务范例
2008-04-21 10:33:00 206
原创 在dataTable里遍历,循环dt
foreach (DataRow row in dt.Rows) { i = i + 1; string aa= row["card"].ToString(); Response.Write(aa); Response.Write(i); //Respons
2007-11-27 15:42:00 599
原创 显示当前日期和时间不带秒字符型的
row[3] = date.ToShortDateString() +" "+ date1.ToShortTimeString(); string zz = DateTime.Now.Year.ToString() + "-" + DateTime.Now.Month.ToString() + "-" + DateTime.Now.Day.ToString();显示年月日时间priva
2007-11-27 15:41:00 281
原创 循环取得DataGrid里的值
foreach (DataGridItem gridrow in DataGrid2.Items) { string autoid = this.bill_no.Text; SqlConnection conairno = Operate.createCon(); //建立DataSet中testTab
2007-11-27 15:41:00 333
原创 图片超连接去边框上的线
http://www.sohoto.com/TDPWeb/htl/images/button_yd.gif" border=0 />
2007-11-27 15:38:00 474
原创 全局赋值,可以用来页面传值
浪子 10:21:07string people = string.Empty;foreach (DataRow row in dt.Rows) { string name = row["card"].ToString(); string name1 = row["card1"].ToString(); people
2007-11-27 15:36:00 297
原创 从库里读到值,默认单选扭
string client_sex = dt.Rows[0]["client_sex"].ToString(); if (client_sex == "女") { rbtclient
2007-11-27 15:34:00 167
原创 就是把文字减少一点,剩下的只是...点点点
Convert.tostring(Eval("Title")).substring(0,10) 上面是html 在CS文件中加入下面方法: /// /// 处理字符串,形成指定长度+…… /// /// 字符串 /// 指定长度
2007-11-27 15:33:00 203
原创 获取剪切版内容
var content = clipboardData.getData("Text");//获取剪切版内容然后把content用split函数分割成一个数组把数组[0]的aaaa赋值给第一个文本框 把数组[1]赋值给第2个文本框 function getClip(){var content = window.clipboardData.getData("Text");var arr =
2007-11-27 15:32:00 254
原创 当前时间加减
DateTime dt0 = DateTime.Now;DateTime dt1 = dt0.AddDays(-1 / 24.0);DateTime dt6 = dt0.AddDays(-6 / 24.0);______________________________________________________________________________________________
2007-11-27 15:28:00 161
原创 sql做统计,case when
sql:select gwlb, count(case when (year(getdate())-year(rybirthday)) between 20 and 30 then rygh end) as 20-30,count(case when (year(getdate())-year(rybirthday)) between 30 and 40 then rygh end) as
2007-11-27 15:26:00 351
原创 net中script的应用.txt
.net中script的应用/*----关闭当前窗口并出现提示对话框----*/Response.Write("window.close();"); /*----关闭当前窗口不出现提示对话框----*/Response.Write("window.opener=null;");Response.Write("window.close();");/*----延时三秒关闭窗口----*/Res
2007-11-27 15:24:00 232
原创 datagrid里删除数据
public void People_Delete(Object sender, DataGridCommandEventArgs e) { SqlConnection connDel = Operate.createCon(); connDel.Open(); String sql_Del = "DELETE FROM dkh WHERE
2007-11-27 15:21:00 240
原创 Asp.net的安全认证及Web.config的配置,如有的如可以匿名
(1)在Web.config的配置 在中修改选项 验证模式设为Form,并且验证页为 不允许匿名用户 在后加入不要验证就能使用数据库的页面,用于在该页访问数据库,察看是否存在该用户。
2007-11-27 15:19:00 260
原创 gridview随鼠标滑动
gridview随鼠标滑动 //ASP.NET2.0下为GridView添加鼠标滑过的行颜色高亮效果! //protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) //{ // //将满足特定条件的行标为高亮 // if (e.Row.RowType ==
2007-11-27 15:01:00 325
原创 js提交成功后弹出成功.在后退
Response.Write("alert(数据提交成功);");Response.Write("history.go(-1);");Response.End();
2007-11-27 14:59:00 485
原创 switch case 循环
switch (this.star.Text) { case "1": imgstar.ImageUrl = "http://pics.paipai.com/common/icon/seller01.gif"; break; case "1A":
2007-11-27 14:57:00 1203
原创 循环gridview,并把里面的多选的ID读出来
//循环gridview 01foreach (GridViewRow gvr in grid_ET_filght.Rows){ CheckBox cbsel = (CheckBox)gvr.FindControl("CheckBox1"); if (cbsel.Checked ==true) { }}//循环gridview 02for (int i = 0; i {
2007-11-27 14:56:00 372
原创 写入新数据并获取ID号
//写入新数据并获取ID号 SqlCommand cmd = new SqlCommand("insert into tr_planRoute (routeID) values (" + routeID + ") SELECT @@IDENTITY AS Identity", con); route_autoid = Convert.ToInt32(cmd.ExecuteScalar())
2007-11-27 14:52:00 231
原创 当前标识(NT AUTHORITY/NETWORK SERVICE)没有对“C:/WINDOWS/Microsoft.NET
当前标识(NT AUTHORITY/NETWORK SERVICE)没有对“C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files”的写访问权限。说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 异常详细信息: System.
2007-07-09 11:10:00 1071
原创 gridview添加删除提示
方法1:protected void gv_RowDataBound(object sender, GridViewRowEventArgs e) { e.Row.Cells[2].Attributes.Add("onclick", "return confirm(确定删除吗?);"); } 方法2:Private Sub DataGrid1_I
2007-02-12 14:59:00 384
原创 asp.net常用代码
1. 打开新的窗口并传送参数: 传送参数: response.write("<script>window.open(’*.aspx?id="+this.DropDownList1.SelectIndex+"&id1="+
2007-02-12 14:53:00 419
原创 ASP.NET程序中常用的三十三种代码
28.自定义分页代码: 先定义变量 : public static int pageCount; //总页面数 public static int curPageIndex=1; //当前页面 下一页: if(DataGrid1.CurrentPageIndex < (DataGrid1.PageCount - 1)) { DataGrid1.CurrentP
2007-01-16 17:50:00 367
原创 用正则表达式验证输入是否数字
用正则表达式验证输入是否数字 有时要求在文本框中输入的内容必须为数据,我们怎样判断用户输入的内容合法了,这里我用正则表达式来达到这个效果,两行代码(C#)搞定!呵呵… static bool IsNumeric(string str) { System.Text.RegularExpressions.Regex reg1 = new
2007-01-16 17:47:00 974
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人