- 浏览: 812227 次
-
最新评论
-
coosummer:
推荐使用http://buttoncssgenerator.c ...
几个漂亮的Button的CSS -
leonardleonard:
现在网站 放到 windows 2008 貌似 攻击少了
网站常被攻击 -
leonardleonard:
复制的
在C#里实现DATAGRID的打印预览和打印 -
spp_1987:
看着 头疼 本来就是头难受
在C#里实现DATAGRID的打印预览和打印 -
spp_1987:
大哥 代码太乱啊 ???
在C#里实现DATAGRID的打印预览和打印
文章列表
Response.Write("<script>window.opener=null;window.close();</script>") ;
- 2004-10-26 19:22
- 浏览 730
- 评论(0)
public static long DirSize(DirectoryInfo d) { long Size = 0; // Add file sizes. FileInfo[] fis = d.GetFiles(); foreach (FileInfo fi in fis) { Size += fi.Length; } // Add subdirectory sizes. DirectoryInfo[] dis = ...
- 2004-10-26 19:21
- 浏览 706
- 评论(0)
如何得到数据库中所有表字段及字段中文描述以下资料,通过csdn的一位师兄从SQL版主那得到:sql中SELECT (case when a.colorder=1 then d.name else '' end) N'表名', a.colorder N'字段序号', a.name N'字段名', (case when COLUMNPROPERTY( a.id,a.name,'IsIdentity')=1 then '√'else '' end) N'标识', (case when (SELECT count(*) FROM sysobjects WHERE (name in ...
- 2004-10-26 19:20
- 浏览 638
- 评论(0)
作者:网际浪子专栏(曾用名littlehb) http://blog.csdn.net/littlehb/
CREATE PROCEDURE LoginUser @loginUN char(50) OUTPUT, @loginPW char(40)ASif @loginPW = (select [password] from users where username=@loginUN) return 0;else return -1;
GO
要loginUN返回值,把它定义成OUTPUT的,相应的SqlCommand的参数定义里也定义也ParameterDirect.InputOutp ...
- 2004-10-26 19:18
- 浏览 695
- 评论(0)
<asp:RegularExpressionValidator id="revTextBox1" runat="server" ForeColor="Red" Display="Dynamic" ControlToValidate="textBox1" ValidationExpression="(\w|\W){1,100}">格式错误-只能输入不超过100个字符</asp:RegularExpressionValidator>
- 2004-10-26 19:18
- 浏览 583
- 评论(0)
作者:网际浪子专栏(曾用名littlehb) http://blog.csdn.net/littlehb/在域控制器或备份域控制器上安装 Microsoft Visual Studio .NET 或 Microsoft .NET 框架后,如果您尝试运行 ASP.NET 应用程序,则浏览器会显示下面的错误信息: Server Application Unavailable The web application you are attempting to access on this web server is currently un ...
- 2004-10-26 19:15
- 浏览 732
- 评论(0)
微软的解决办法
using System; using System.Data; using System.Data.SqlClient; using System.Drawing; using System.Windows.Forms; public class PagingSample: Form { // Form controls. Button prevBtn = new Button(); Button nextBtn = new Button(); static DataGrid myGrid = new DataGrid(); static Label pageLbl = new ...
- 2004-10-26 19:12
- 浏览 563
- 评论(0)
作者:未知 由于本文网上多处见到 对于谁是作者 无法肯定
1、下载owc11 COM组件
http://www.microsoft.com/downloads/details.aspx?FamilyID=7287252c-402e-4f72-97a5-e0fd290d4b76&displaylang=en
2、注册owc11
在工程中添加 C:\Program Files\Common Files\Microsoft Shared\Web Components\11 文件下的owc11.dll引用 或者按如下图所以添加com
3、在工程中添加
usin ...
- 2004-10-26 19:10
- 浏览 729
- 评论(0)
<body onkeydown="KeyDown()">
function KeyDown(){ //屏蔽退格删除键,屏蔽 F5 刷新键,Ctrl + R if ((event.keyCode==116)||(event.ctrlKey && event.keyCode==82)) { event.keyCode=0; event.returnValue=false; } }
- 2004-10-26 19:10
- 浏览 706
- 评论(0)
程序中图片是动态显示的
原先把打算把图片保存在服务器端然后显示
可是由于ie的缓存问题导致图片无法实时更新显示
所以改为把图片存在session中然后再显示
需要保存的时候再保存到本地
//--------------chart. ...
- 2004-10-26 19:03
- 浏览 902
- 评论(0)
作者:木子 http://blog.csdn.net/derny/首先要创建一个表包含自段image 和 type 类型各自为image 和 vnanchar
WebForm1.aspx
<%@ Page language="c#" Codebehind="WebForm1.aspx.cs" AutoEventWireup="false" Inherits="ReadAndWritePicFromDB.WebForm1" %> <!DOCTYPE HTML PUBLIC "-//W3C/ ...
- 2004-10-26 19:01
- 浏览 1105
- 评论(0)
作者:木子 http://blog.csdn.net/derny/下面利用ashx文件可以方便实现从数据库中读取图片并显示在datagrid当中
//---------------------------------------BindImage.aspx ----------------------------------------
<%@ Page language="c#" Codebehind="BindImage.aspx.cs" AutoEventWireup="false" Inherits="Sh ...
- 2004-10-26 19:00
- 浏览 713
- 评论(0)
作者:未知彩色图像转换为黑白图像时需要计算图像中每像素有效的亮度值,通过匹配像素
亮度值可以轻松转换为黑白图像。
计算像素有效的亮度值可以使用下面的公式:
Y=0.3RED+0.59GREEN+0.11Blue
然后使用 Color.FromArgb(Y,Y,Y) 来把计算后的值转换
转换代码可以使用下面的方法来实现:
[C#]public Bitmap ConvertToGrayscale(Bitmap source){ Bitmap bm =
- 2004-10-26 18:51
- 浏览 882
- 评论(0)
作者:未知文本的DES加密为了对称加密的安全,将密码进行封装,先新建一个用于保存密码的类库cl:using System;using System.Text ;namespace cl{ /// <summary> /// Class1 的摘要说明。 /// </summary> public class Class1 { public Class1() {
} public string getiv() { string iv="********";//八位 return iv; } public string getk ...
- 2004-10-26 18:48
- 浏览 818
- 评论(0)
作者:http://blog.csdn.net/china2001ok/创建和写文本文件新建.aspx(主要是StreamWriter 和StreamReader )using System.IO ;//不可以少了private void Button1_Click(object sender, System.EventArgs e) { StreamWriter sw;//调用File类的CreateText方法返回一个StreamWriter 在创建StreamWriter 之后,可以调用它的Write方法将文本写到文件中 sw=File.CreateText (MapPath(& ...
- 2004-10-26 18:46
- 浏览 601
- 评论(0)