摘要:Visio 2003 Software Development Kit (SDK)的地址 http://www.microsoft.com/downloads/details.aspx?FamilyID=557120bd-b0bb-46e7-936a-b8539898d44d&displaylang=en
阅读全文
05 2004 档案
摘要:Calendar如何只显示“一、二、三...日”,不显示“星期” qiushuiwuhen(原作) 秋水无恨 asp.net Calendar DayNameFormat Globalization DayNames http://www.csdn.net/develop/Read_Article.asp?id=15715 Calendar的DayNameFormat,如FirstLe...
阅读全文
摘要:在很多应用中你都需要得到SQL Server的详细信息,过去,我们必须使用API和效率低下的ADO的调用才能得到,现在,我们有了一个新的方法,就是SQLDMO(SQL Distributed Management Objects,SQL分布式管理对象),尽管它目前还不被人所知和使用,但是SQLDMO提供了许多强有力的、和利用代码从SQL Server获得信息相类似的许多功能,为举例方便,这里...
阅读全文
摘要:Inherits System.Windows.Forms.Form Dim DS1 As New System.Data.DataSet Dim DS2 As New System.Data.DataSet Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventA...
阅读全文
摘要:怎样把 DataGrid 存放在 ViewState 中的无用数据(有时候确实如此)卡掉,大家知道,一般而言DataGrid在ViewState中会存放表格中的所有数据,这样会导致ViewState非常大;好比就这个论坛而言,光是ViewState就占了65k之多,多浪费啊。 如果只是简单的将DataGrid的EnableViewState设置为false,那么许多事件,如排序、换页等都不会触...
阅读全文
摘要:Excel.Application myExcel=new Excel.Application(); myExcel.Application.Workbooks.Add(true); myExcel.Visible=true; Excel.Worksheet worksheet=(Excel.Worksheet)myExcel.ActiveSheet; Excel.Range rH =...
阅读全文
摘要:http://smilparse.real.com/showcase/resources/samples/embed/plugin2.htm Embedded RealOne Player Controls Using and Note: Only one Note: This full control panel drops some controls when you reduc...
阅读全文
摘要:1.this.TextBox1.Attributes.Add("OnKeyPress","");2.
阅读全文
摘要:【1、最基本的弹出窗口代码】 其实代码非常简单: 因为着是一段javascripts代码,所以它们应该放在之间。是对一些版本低的浏览器起作用,在这些老浏览器中不会将标签中的代码作为文本显示出来。要养成这个好习惯啊。 window.open ('page.html') 用于控制弹出新的窗口page.html,如果page.html不与主窗口在同一路径下,前面应写明路径,绝对路径(htt...
阅读全文
摘要:VB.NET中实现"关机/休眠/重启/注销"的类Imports SystemImports System.TextImports System.DiagnosticsImports System.Runtime.InteropServices Public Class WindowsController Public Enum RestartOptions ...
阅读全文
摘要:我们在开发的时候一定遇到,使用DataGrid的时候由于不想分页(数据没有那么多)但是又显示不在一页里面,此时我们希望在DataGrid里面出现一个滚动条,可以上下滚动DataGrid里面的数据而不用上下滚动页面,由于写本文的目的是为了说明如何实现,所以对于细节性的问题读者可以自己思考完成(比如:既要分页又要滚动等等)。为了可以滚动DataGrid我们需要一个可以让客户端的Table滚动js脚本(...
阅读全文
摘要:public class Test{ public static void Main() { ProcessStartInfo startinfo = new ProcessStartInfo(); startinfo.UseShellExecute = false; startinfo.RedirectStandardOutput = true; startinfo.Creat...
阅读全文
摘要:using System.Runtime.InteropServices; [DllImport("User32.dll")]public static extern int GetSystemMenu(int hWnd, int bRevert); [DllImport("User32.dll")]public static extern int RemoveMenu(int hMenu, in...
阅读全文
摘要:今天写了个验证可以输入任意中文,空格,字母和数字组合的正则表达式,目的主要是想屏蔽掉非法字符,也请大家帮忙测试一下。我是将其写在.net的RegularExpressionValidator控件里的,基本上满足了我的要求。^(?:[\u4e00-\u9fa5]*\w*\s*)+$
阅读全文
摘要:1. 2.Server.Execute("Yourfile.inc")
阅读全文
摘要:DataList分页1 共有条记录 当前为/页 姓名: 用viewstate传递分页的信息,最重要的就是这一句 MyAdapter.Fill(ds,StartIndex,PageSize,"Score");===================...
阅读全文
摘要:1. 在web.config中设置2. 在IIS-默认的Web站点-虚拟目录-属性-目录安全性-编辑中选择 "集成Windows验证",注意"匿名访问"一定不要选3. 在asp.net中使用 User.Identity.Name 就可以得到域名和用户名.ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.2052/vsintro7/html/vxwlkUsingTe...
阅读全文
摘要:Create three .aspx files TreeViewDataSet.aspx TreeViewDataSet.aspx Categories.aspx Products.aspx
阅读全文
摘要:表结构:ID(int),ParentID(int), ConText(varchar(50)), depth(varchar(100)),image(varchar(100)), eimage(varcahr(100)),/////////////// // 递归添加树的节点 public void AddTree(int ParentID,TreeNode pNode) { Data...
阅读全文
摘要:Stream fileDataStream = MyFile.PostedFile.InputStream;int fileLength = MyFile.PostedFile.ContentLength;byte[] fileData = new byte[fileLength];fileDataStream.Read(fileData,0,fileLength); myCommand.Para...
阅读全文
摘要:这段时间,手头的项目接近收尾,以前不太注意的工程打包问题却慢慢凸现出来,这里指的不单单是制作一个可以安装的工程安装包,还有关于缺少运行环境时的数据库实例的安装和数据库数据的安装恢复。这里先把关于MSDE打包进安装程序的心得于大家分享,那么咱们废话少说。 当你的项目基本完成测试,准备发布的时候,制作一个用户使用简便的自动安装包就成为编码完成后的又一个需要解决的问题,工程开发的是否完满,从安装中,用户...
阅读全文
摘要:经过了漫长的开发,终于把它完成了。新版本的工作量其实不多,但是因为许多别的事情,所以直到现在才把它做完。对于给我发Email提出建议或支持的朋友我已经在早于网上发布的第一时间发给你们了,希望你们可以继续支持我!在这里,我要感谢那些帮助我完成测试和给我提出好的建议的朋友,谢谢你们了,在这里,对CSDN的Pagefan和程序太平洋的宋恩福朋友表示感谢,感谢他们帮我完成了.Net2003以下版本部分功能...
阅读全文
摘要:1. 插入一个width,height为0得播放器。并设置自动播放和循环播放为 true2. using System.Runtime.InteropServices;[DllImport("winmm.dll")] public static extern long PlaySound(String fileName,long a,long b);在事件中添加:PlaySound("aa.wav...
阅读全文
摘要:可以在应用程序的Config文件里指定.NET Framework的版本
阅读全文
摘要:C:\WINNT\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis.exe -i .NET Framework 开发员指南 针对某一 ASP.NET 版本配置 ASP.NET 应用程序 请参见 ASP.NET 中的并行 (side-by-side) 支持 | ASP.NET 并行 (side-by-side) 概述 默认情况下,...
阅读全文
摘要:using System;using System.Drawing;using System.Collections;using System.ComponentModel;using System.Windows.Forms;using System.Data;using System.Drawing.Imaging; namespace WindowsApplication1{ /// //...
阅读全文
摘要:1."document.all."+TextBox1.ClientID+".Text"2.如何部署包含水晶报表的程序(VS.NET 2002)------------------------------------------------1、原理:发布使用水晶报表的项目需要包含三种组件:报表(*.rpt)、模块(*.msm)、运行库(*.msm),这些模块文件是在 C:\Program Files...
阅读全文
摘要:您可以通过查询WMI对象来获取驱动器类型。下面是一段例子代码: SelectQuery query=new SelectQuery("Select * From Win32_LogicalDisk"); ManagementObjectSearcher searcher=new ManagementObjectSearcher(query); foreach(ManagementBaseObj...
阅读全文
摘要:http://www.id3.org/index.html这个是ID3的官方站点 static void Main(string[] args) { byte[] b = new byte[128]; string sTitle; string sSinger; string sAlbum; string sYear; string sComm; FileStrea...
阅读全文
摘要:1. http://chs.gotdotnet.com/quickstart/winforms/doc/WinFormsLocalization.aspx2. asp.net开发国际化的程序十个例子 http://www.csdn.net/Develop/Read_Article.asp?Id=13658
阅读全文
摘要:下载地址:中文:http://www.microsoft.com/downloads/details.aspx?FamilyID=627921a0-d9e7-43d6-a293-72f9c370bd19&DisplayLang=zh-cn英文:http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=627921...
阅读全文
摘要:Exporting DataGrids to Excel... Ken Walker's article on exporting DataSets to Excel has proved very popular. This article by Mike Dolan presents a different technique for getting a DataGrid rather th...
阅读全文
摘要:Export DataSets to Excel... Often we need to load the data from a dataset into an excel spreadsheet to be manipulated and/or saved off to a local file. There are several ways to accomplish this using...
阅读全文
摘要:添加sqldmo COM组件SQLDMO.SQLServer2 sqlserver=new SQLDMO.SQLServer2Class();sqlserver.Connect("localhost","sa","");SQLDMO.Databases mydbs=sqlserver.Databases;SQLDMO.Database mydb =new SQLDMO.DatabaseClass...
阅读全文
摘要:using System.Diagnostics; public class Test{ public static void Main() { ProcessStartInfo startinfo = new ProcessStartInfo(); startinfo.UseShellExecute = false; startinfo.RedirectStandardOutpu...
阅读全文
摘要:把项目制作安装程序:1.打开你的.net,用鼠标右击你的工程(解决方案),选择add new project(添加新建项目)。 2.选择 安装和部署项目web安装项目(也可以是Windows安装项目) 3.vs的窗口会显示文件系统,用鼠标点击左栏下的"web application folder" 的加号,右键选中"web application folder",选择"添加项目输出",同时选...
阅读全文
摘要:A{ color: #CC0000; text-decoration: none;}
阅读全文
摘要:1.设定刷新时间,定时刷新 content="1000 //刷新时间 JavaScript的SetTimeOut函数2.去掉客户端缓存机制,直接刷新页面or和中加一个这样做 去掉客户端缓存机制
阅读全文
摘要:这是yyyy-mm-dd hh:mm:ss 的 /^(\d{4})\-(\d{2})\-(\d{2}) (\d{2}):(\d{2}):(\d{2})$/ ; 这是 yyyy-mm-ddde 的/^(\d{4})\-(\d{2})\-(\d{2})$/ function validateCNDate( strValue ) { var objRegExp = /^\d{4}(\-|\/|\.)...
阅读全文