Alan Cai's Blogs
只埋头苦干是不行的,有时候还得抬头看看外面的世界。
posts - 6,comments - 4,trackbacks - 3
09 2008 档案
ASP.NET 配置文件 configSource 的用法
摘要: 在站点的默认 Web.Config 文件中使用:<appSettings configSource="My.config"/>然后新建 My.Config 文件:<?xml version="1.0" encoding="utf-8"?><appSettings> <add key="test" value="Hello world."/><...阅读全文
posted @ 2008-09-12 10:14 Alan Cai 阅读(686) | 评论 (1) 编辑
查找当前页面或窗口中某类型控件并赋值
摘要: WinFormforeach (Control control in this.Controls) { if (control is TextBox) { (control as TextBox).Text = "Hello World."; }}ASP.NETforeach (Control control in this.FindControl("form1").Controls) { if ...阅读全文
posted @ 2008-09-11 10:24 Alan Cai 阅读(99) | 评论 (0) 编辑
ASP.NET 访问 Web Service 服务器 Session
摘要: 1、在 Web Service 里添加 Session[WebMethod(EnableSession = true)]public void CreateSession() { Session["Ikesy"] = "Hello world.";}ASP.NET 页面使用SessionService.SessionService sessionService = new SessionServi...阅读全文
posted @ 2008-09-10 18:24 Alan Cai 阅读(362) | 评论 (1) 编辑