随笔分类 -  ASP.NET

摘要:1. 打开新的窗口并传送参数: 传送参数:response.write("<script>window.open(''''*.aspx?id="+this.DropDownList1.SelectIndex+"&id1="+...+"'''')</script>")接收参数:string a = Request.QueryString("id");string b ... 阅读全文
posted @ 2009-09-10 15:26 kaka9 阅读(311) 评论(0) 推荐(3)
摘要:以下从‘读’‘写’‘删除’‘判断’四个事例实现对注册表的简单操作 1.读取指定名称的注册表的值 private string GetRegistData(string name) { string registData; RegistryKey hkml = Registry.LocalMachine; RegistryKey software = hkml.OpenSubKey... 阅读全文
posted @ 2009-02-28 17:23 kaka9 阅读(216) 评论(0) 推荐(0)
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1DateTime dt = DateTime.Now; 2Label1.Text = dt.ToString();//2005-11-5 13:21:25 3Label2.Text =... 阅读全文
posted @ 2009-01-05 15:54 kaka9 阅读(328) 评论(0) 推荐(0)