博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2009年1月22日

摘要: 1.Global.asax中Session_Start()中添加 Session["VoiceFiles"] = new List(); 2.用到时 List files = Session["VoiceFiles"] as List; string fileName = Path.GetRandomFileName() + ".wav"; files.Add(fileName); 3.退... 阅读全文

posted @ 2009-01-22 16:42 Zhiyett 阅读(218) 评论(0) 推荐(0) 编辑

摘要: 查看参数,快捷键CTRL+D,I 在Immediate Window中输入 ? Request.ServerVariables["APPL_PHYSICAL_PATH"] 阅读全文

posted @ 2009-01-22 16:35 Zhiyett 阅读(140) 评论(0) 推荐(0) 编辑

摘要: 可以让网站刚运行时就加载。 1.添加Global.asax,在Application_Start函数中增加代码即可: MyClass sp=new MyClass(); HttpContext.Current.Application["MyService"] = sp; 2.用到时使用MyClass m_sp = (MyClass)Application["MyService"]; 阅读全文

posted @ 2009-01-22 16:34 Zhiyett 阅读(347) 评论(1) 推荐(0) 编辑

摘要: string currentDir = HttpContext.Current.Request.ServerVariables["APPL_PHYSICAL_PATH"]; 路径为currentDir+@"\data\..."context.Server.MapPath(@"~\w3c\")); 阅读全文

posted @ 2009-01-22 16:26 Zhiyett 阅读(1420) 评论(0) 推荐(0) 编辑

摘要: A list of supported CSS selectors when invoking g(..) At it's most basic, Gimme is a utility for retrieving lots of elements quickly and then acting upon all of them at once. This is done through a ... 阅读全文

posted @ 2009-01-22 14:08 Zhiyett 阅读(155) 评论(0) 推荐(0) 编辑

摘要: 1.新建一个WebUserControl.ascx文件 2.其内容修改为 注:正式应该是把 这段代码中写入WebUserControl.ascx.cs中 Code Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> 3.在D... 阅读全文

posted @ 2009-01-22 13:48 Zhiyett 阅读(385) 评论(0) 推荐(0) 编辑