随笔分类 -  .net / asp.net 2.0

上一页 1 2 3 4 5 6 ··· 8 下一页
摘要:Web.config文件中的Session配置信息 打开某个应用程序的配置文件Web.config后,我们会发现以下这段: 这一段就是配置应用程序是如何存储Session信息的了。我们以下的各种操作主要是针对这一段配置展开。让我们先看看这一段配置中所包含的内容的意思。sessionState节点的语法是这样的: 必须有的属性是 属性 选项 描述 ... 阅读全文
posted @ 2008-12-08 16:17 Nina 阅读(353) 评论(0) 推荐(1)
摘要:很大可能是因为你删除了目录后导致了应用程序的重启最简单的办法就是不要使用默认的方式也即InProc(默认,进程内的会话状态):Session存储在IIS进程中(Web服务器内存)。如果使用的是Windows 2000 Server或Windows XP,IIS使用aspnet_wp.exe进程,如果使用的是Windows 2003 Server,IIS使用w3wp.exe。InProc拥有最好的... 阅读全文
posted @ 2008-12-08 16:13 Nina 阅读(399) 评论(0) 推荐(0)
摘要://dataset 釋放 public void DataSet_Dispose(DataSet ds) { if (ds != null) { ds.Dispose(); ds = null; } ... 阅读全文
posted @ 2008-11-13 14:37 Nina 阅读(2016) 评论(0) 推荐(0)
摘要:1,Response.Redirect("~/login.aspx?URL=" + url) 2,Server.Transfer("~/login.aspx?URL=" + url, false); 阅读全文
posted @ 2008-11-13 14:35 Nina 阅读(263) 评论(0) 推荐(0)
摘要:create table randomtable (CustomerItem varchar(100) ) insert randomtable exec(@sql)--proc nameselect * from randomtabledrop table randomtable 阅读全文
posted @ 2008-10-21 09:44 Nina 阅读(206) 评论(0) 推荐(0)
摘要:VS.NET 2005中实用的默认键 Shift+Alt+Enter: 切换全屏编辑 Ctrl+B,T / Ctrl+K,K: 切换书签开关 Ctrl+B,N / Ctrl+K,N: 移动到下一书签 Ctrl+B,P: 移动到上一书签 Ctrl+B,C: 清除全部标签 Ctrl+I: 渐进式搜索 Ctrl+Shift+I: 反向渐进... 阅读全文
posted @ 2008-10-14 15:11 Nina 阅读(399) 评论(0) 推荐(0)
摘要:/**//// /// 得到文件目錄的所有子文件 /// string files = ""; public string GetFiles(string dir) { DirectoryInfo dif = new DirectoryInfo(dir); int n = dif... 阅读全文
posted @ 2008-10-07 17:00 Nina 阅读(593) 评论(0) 推荐(0)
摘要:網址:http://localhost:1897/News/Press/Content.aspx/123?id=1#toc Request.ApplicationPath / Request.PhysicalPath D:\Projects\Solution\web\News\Press\Content.aspx System.IO.Path.GetDirectoryName(Requ... 阅读全文
posted @ 2008-09-26 08:44 Nina 阅读(747) 评论(0) 推荐(0)
摘要:http://www.cnblogs.com/xuanfeng/archive/2008/06/30/1232543.html1.相关DLL相关命名空间包含在Microsoft.SqlServer.ManagedDTS 中,此DLL包含在SQL SERVER安装分驱的\Program Files\Microsoft SQL Server\90\SDK\Assemblies目录中2.下面以代码的方式... 阅读全文
posted @ 2008-09-25 16:11 Nina 阅读(317) 评论(0) 推荐(0)
摘要:http://www.codeproject.com/KB/database/CallSSISFromCSharp.aspx Example SSIS Package For the purposes of demonstration, I created a simple package that takes some data out of a Sql Server AdvantureWork... 阅读全文
posted @ 2008-09-23 12:31 Nina 阅读(538) 评论(0) 推荐(0)
摘要:vb.net1,引用Microsoft.SqlServer.ManagedDTS組件2,調用Imports Microsoft.SqlServer.Dts.Runtime命名空間3,代碼: CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> ... 阅读全文
posted @ 2008-09-23 12:21 Nina 阅读(382) 评论(0) 推荐(0)
摘要:Request.UrlReferrer可以获取客户端上次请求的url的有关信息。 这样我们就可以通过这个属性返回到“上一页”,示例如下 1. 首先在Page_load中获得并储存该信息 Page_load(object obj,EventArgs e) { if(!IsPostBack) ... 阅读全文
posted @ 2008-09-16 15:35 Nina 阅读(366) 评论(0) 推荐(0)
摘要:本文转自http://blog.csdn.net/JOHNCOOLS/archive/2006/04/08/655553.aspx感谢作者们的付出---------------版本: FreeTextBox 3.1.1 ASP.NET1.11.下载 FreeTextBox 3.1.1 (released 2005/11/08)http://www.freetextbox.com/downl... 阅读全文
posted @ 2008-09-03 11:47 Nina 阅读(1661) 评论(1) 推荐(0)
摘要:原文:http://www1.biochems.cn/63.htm昨天抛弃了FreeTextBox1.6中文版,改用FCKeditor 2.1.1。FCKeditor不仅加上了FLASH插入功能,而且它的兼容性超强:支持多种浏览器包括IE 5.5+、Firefox 1.0+、Mozilla 1.3、Netscape 7+;无平台限制,在Windows、Mac、Linux下都能运行;可以和多种WEB... 阅读全文
posted @ 2008-07-25 11:19 Nina 阅读(289) 评论(0) 推荐(0)
摘要:通过第三方控件收邮件(LumiSoft.Net.POP3.Client) 最近我们部门头,让我研究一下收邮件的功能。因为工作忙的原因一直没时间查找。先前也查到这个控件并且把源码和帮助都下载到本地了。就是没时间看。周末终于有时间研究一下了。下面是下载源码的地址:下载LumiSoft.Net类库,并下载LumiSoft.Net文档。下载完后用VS2005把源码打开生成release的。然后引入你需要接... 阅读全文
posted @ 2008-07-07 15:48 Nina 阅读(4182) 评论(6) 推荐(0)
摘要:使用 LumiSoft.Net.POP3.Client 接收邮件 .Net FCL 里自带了SMTP的实现System.Net.Mail,但是没有POP3的实现,要想使用.Net通过代码接收邮件,就只能通过第三方的组件了。这里我给大家介绍一下我常用的LumiSoft.Net.POP3.Client。LumiSoft.Net是由Ivar Lumi开发的免费,开放源码的.Net网络协议库,包含了DNS... 阅读全文
posted @ 2008-07-07 14:30 Nina 阅读(1906) 评论(4) 推荐(0)
摘要:using System;using System.Data;using System.Configuration;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using ... 阅读全文
posted @ 2008-06-25 12:30 Nina 阅读(1195) 评论(0) 推荐(0)
摘要:protected void Button1_Click(object sender, EventArgs e) ...{ System.Net.Mail.MailMessage message = new System.Net.Mail.MailMessage(); //收件人 message.To.Add(txtMailAddress.Te... 阅读全文
posted @ 2008-05-27 18:21 Nina 阅读(753) 评论(1) 推荐(0)
摘要:功能: 1。把图片文件(JPG GIF PNG)上传, 2。保存到指定的路径(在web.config中设置路径,以文件的原有格式保存), 3。并自动生成指定宽度的(在web.config中设置宽度) 4。和指定格式的(在web.config中指定缩略图的格式) 5。和原图比例相同的缩略图(根据宽度和原图的宽和高计算所略图的高度) 6。可以判断... 阅读全文
posted @ 2008-05-19 17:10 Nina 阅读(1597) 评论(1) 推荐(0)
摘要:[code:c#] using System;using System.Collections.Generic;using System.Text;using System.Net.Mail; namespace SystemNetMailTest{ class Program { static void Main(string[] args) { ... 阅读全文
posted @ 2008-05-14 10:11 Nina 阅读(1200) 评论(2) 推荐(0)

上一页 1 2 3 4 5 6 ··· 8 下一页