摘要:Calendar如何只显示“一、二、三...日”,不显示“星期” qiushuiwuhen(原作) 秋水无恨 asp.net Calendar DayNameFormat Globalization DayNames http://www.csdn.net/develop/Read_Article.asp?id=15715 Calendar的DayNameFormat,如FirstLe...
阅读全文
文章分类 - ASP.NET
摘要:怎样把 DataGrid 存放在 ViewState 中的无用数据(有时候确实如此)卡掉,大家知道,一般而言DataGrid在ViewState中会存放表格中的所有数据,这样会导致ViewState非常大;好比就这个论坛而言,光是ViewState就占了65k之多,多浪费啊。 如果只是简单的将DataGrid的EnableViewState设置为false,那么许多事件,如排序、换页等都不会触...
阅读全文
摘要: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...
阅读全文
摘要:我们在开发的时候一定遇到,使用DataGrid的时候由于不想分页(数据没有那么多)但是又显示不在一页里面,此时我们希望在DataGrid里面出现一个滚动条,可以上下滚动DataGrid里面的数据而不用上下滚动页面,由于写本文的目的是为了说明如何实现,所以对于细节性的问题读者可以自己思考完成(比如:既要分页又要滚动等等)。为了可以滚动DataGrid我们需要一个可以让客户端的Table滚动js脚本(...
阅读全文
摘要: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
阅读全文
摘要: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) 概述 默认情况下,...
阅读全文
摘要:1. http://chs.gotdotnet.com/quickstart/winforms/doc/WinFormsLocalization.aspx2. asp.net开发国际化的程序十个例子 http://www.csdn.net/Develop/Read_Article.asp?Id=13658
阅读全文
摘要: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...
阅读全文
摘要:把项目制作安装程序: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和中加一个这样做 去掉客户端缓存机制
阅读全文