摘要:以 下 是 此frame的 写 法: Frames 首 先 您 必 须 告 诉 浏 览 器 您 要 开 几 个frame?这 是 由 这 个 标 签(tag)来 宣 告。rows这 项 叁 数 是 告 诉 浏 览 器 您 想 将 视 窗 分 割 成 几 列?而 cols这 项 叁 数 是 告 诉 浏 览 器 您 想 将 视 窗 分 割 ...
阅读全文
随笔分类 - ASP.NET(C#)
摘要:转载:http://www.aspcool.com/lanmu/browse1.asp?ID=1245&bbsuser=csharpusing System;using System.Collections;using System.ComponentModel;using System.Data;using System.Drawing;using System.Web;using System...
阅读全文
摘要:string strPath = @"C:/aaa/aaa/"; if (!Directory.Exists(strPath)) { Directory.CreateDirectory(strPath); }
阅读全文
摘要:转载:http://soft.yesky.com/SoftChannel/72342380468109312/20041117/1876614.shtml获取文件的版本信息: FileVersionInfo myFileVersionInfo1 = FileVersionInfo.GetVersionInfo("D:\\TEST.DLL");textBox1.Text="版本号: " + m...
阅读全文
摘要:-。 跨页面实现多选 ' NAME="chkSelect"/> ' runat="server" ID="TitleShow"/> ' runat="server" ID="Literal1"...
阅读全文
摘要:using(Microsoft.Win32.RegistryKey regKey = Registry.LocalMachine.OpenSubKey(@"SOFTWARE",true)) { RegistryKey configMgmt = regKey.OpenSubKey( "ConfigurationManagement", true ); if( configMg...
阅读全文
摘要:using System; using System.Collections; using System.ComponentModel; using System.Data; using System.Drawing; using System.Web; using System.Web.SessionState; using System.Web.UI; using System.Web.UI....
阅读全文
摘要:Request.ServerVariables["APPL_PHYSICAL_PATH"] [0]: "ALL_HTTP" [1]: "ALL_RAW" [2]: "APPL_MD_PATH" [3]: "APPL_PHYSICAL_PATH" [4]: "AUTH_TYPE" [5]: "AUTH_USER" [6]: "AUTH_PAS...
阅读全文
摘要://系统标识符和版本号 string strSystem = Environment.OSVersion.ToString(); //获取映射到进程上下文的物理内存量 string strRem=Environment.WorkingSet.ToString(); //获取系统启动后经过的毫秒数 int iTC=Environment.TickCoun...
阅读全文
摘要:StreamReader ReadFile=File.OpenText(strPath); //读取文件的第一行 string strOldPassWord=ReadFile.ReadLine().Trim(); //关闭文件 ReadFile.Close();
阅读全文
摘要:数据库在文件中名为jsp 可编辑的 DataGrid ...
阅读全文
摘要:格式错误-只能输入不超过100个字符
阅读全文
摘要:尝试创建项目或打开位于URL"http://Localhost:/文件名"的Web项目时,Web服务器报告以下错误“http://1.1 400 bad Request"。 请问怎样解决? .你的Web服务器使用了固定IP:确定你的“Internet信息服务”中使用的是“默认web站点”并且其属性中的IP地址为“(全部未分配)”,而不是你己指定的ip地址。然后在回到VS.NET中重试,或许可...
阅读全文
摘要:当我们在网站上建立数据库时,保护用户的信息安全是非常必要的。多数用户不愿意让别人知道自己的信息,同时网管也不想因为安全问题而丢失网站的信誉。无论对于谁,安全问题都是非常重要的。 为了解决这个问题,我给大家提供一个简单实用,但是老套的方法,就是口令加密。在此我们使用ASP.NET技术对口令加密。简单的讲,就是将用户提供的口令加密之后,然后让它和存放于系统中的数据比较,如果相同,则通过验证。 ...
阅读全文
摘要:this.GetType().BaseType.Namespace.ToString()
阅读全文
摘要:ManagementObjectSearcher query =new ManagementObjectSearcher("SELECT * FROM Win32_NetworkAdapterConfiguration") ; ManagementObjectCollection queryCollection = query.Get(); foreach( Management...
阅读全文
摘要:ClientIP: this.Label1.Text = Request.ServerVariables["remote_addr"].ToString(); LocalIP: this.Label1.Text = Request.ServerVariables["LOCAL_ADDR"].ToString(); --------------------------------------...
阅读全文
摘要:在ItemCreate 事件中加入以下代码: private void DataGrid1_ItemCreated(object sender, System.Web.UI.WebControls.DataGridItemEventArgs e) { if ( e.Item.ItemType == ListItemType.Header ) { Tabl...
阅读全文
摘要:TextBox txt = new TextBox(); txt.ID="Text1"; txt.Width=250; txt.Text="這是動態使用程式新增的TextBox!"; ((HtmlForm )Page.FindControl("Form1")).Controls.Add(txt); txt.ForeColor=Color.FromName("Gr...
阅读全文
摘要:步驟: 1. 引用System.Security.Principal命名空间 using System.Security.Principal; 2.代码 WindowsPrincipal wp = new WindowsPrincipal(WindowsIdentity.GetCurrent()); wp.Identity....
阅读全文

浙公网安备 33010602011771号