随笔分类 - ASP.NET
摘要:1. 打开新的窗口并传送参数: 传送参数:response.write("<script>window.open(''''*.aspx?id="+this.DropDownList1.SelectIndex+"&id1="+...+"'''')</script>")接收参数:string a = Request.QueryString("id");string b ...
阅读全文
摘要:以下从‘读’‘写’‘删除’‘判断’四个事例实现对注册表的简单操作 1.读取指定名称的注册表的值 private string GetRegistData(string name) { string registData; RegistryKey hkml = Registry.LocalMachine; RegistryKey software = hkml.OpenSubKey...
阅读全文
摘要: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 =...
阅读全文

浙公网安备 33010602011771号