- 博客(19)
- 收藏
- 关注
原创 html手机3列自适应
#left { width:100px; background-color:blue; height:100px; float:left; } #right { width:50px; background-color:yellow; height:100px;
2016-04-22 09:46:06
531
转载 开机启动虚拟机
实现其开机自动启动步骤其实很简单。这里用到的是微软的两个小工具。instsrv.exe和srvany.exe微软对instsrv.exe的官方说明如下:Installs and uninstalls executable services and assigns names to them. 也就是个加载services的小东东。其用法如下:instsrv (这里的sr
2015-09-18 17:47:43
626
转载 Win server 2012 +IIS8.0下安装SSL证书
Win server 2012 +IIS8.0下安装SSL证书一、安装SSL证书的环境(温馨提示:安装证书前请先备份您需要修改的服务器配置文件)1.1 SSl证书安装环境简介安装windows server 2012 IIS8.0操作系统服务器一台,web站点一个SSL证书一张(备注:本指南使用s.wos
2015-09-16 11:17:53
1782
转载 MSSQLServer2008R2装好后连接不上
服务器名是用机器名或者ip后接数据库实例名连接的形式大概是Your-pc\MSSqlserver或者192.168.1.100\MSSqlserver因为mssqlserver是默认实例名,默认端口1433,所以实例名可以省略即直接用你的机器名或者ip地址即可,英文点号,(local)以及127.0.0.1都代表本机如果你是命名实例,实例名比如是SQL1,那么需要后接实例名才可连接,即Y
2015-09-14 15:35:16
838
转载 登录的大屏背景
body {background: url(/static/teacher/images/cover3.jpg) no-repeat left top; ////1920*1279background-attachment: fixed;background-size: cover;}text-hide {
2015-09-11 12:00:14
613
转载 mysql获取某个范围内的随机数,写了个存储过程自动生成随机6为密码
若要在i ≤ R ≤ j 这个范围得到一个随机整数R ,需要用到表达式 FLOOR(i + RAND() * (j – i + 1))。例如, 若要在7 到 12 的范围(包括7和12)内得到一个随机整数, 可使用以下语句:SELECT FLOOR(7 + (RAND() * 6));
2015-09-08 13:31:26
1745
原创 组件没有注册
Scripting.Dictionary组件没有注册regsvr32 scrrun.dlladodb.stream组件没有注册regsvr32 "C:/Program Files/Common Files/System/ado/msado15.dll"
2008-01-18 14:10:00
1000
原创 解除IIS上传文件大小的限制
第一步:修改IIS设置,允许直接编辑配置数据库。第二步:先在服务里关闭iis admin service服务,找到windows/system32/inetsrv/下的metabase.xml, 打开,找到ASPMaxRequestEntityAllowed 把他修改为需要的值,默认为204800,即200K,如把它修改为102400000(100M)。然后重启iis admin service服
2008-01-18 14:06:00
1214
原创 item.FindControl
foreach(DataGridItem item in VoteList.Items) { CheckBox check=(CheckBox)item.FindControl("VoteCheck"); if(check!=null) { if (check.Checked==true) { vote.UpdateVote(Int32.Parse(
2006-10-17 23:52:00
734
原创 datakeyfield
asp:datagrid id="VoteList" runat="server" showheader="False" autogeneratecolumns="False" datakeyfield="VoteID"Int32.Parse(VoteList.DataKeys[item.ItemIndex].ToString())
2006-10-17 23:51:00
628
原创 UnicodeEncoding HashAlgorithm CryptoConfig BitConverter
using System.Text;using System.Security.Cryptography;public static string Encrypt(string password) { Byte[] clearBytes=new UnicodeEncoding().GetBytes(password); Byte[] hashedBytes=((HashAlgorit
2006-10-09 17:34:00
862
1
原创 ListBox.DataBind
ListBox.DataSource=dr;ListBox.DataTextField="UserName";ListBox.DataValueField="UserID";ListBox.DataBind();dr.Close();
2006-10-09 17:25:00
709
原创 Attributes.Add
deleteBtn.Attributes.Add("onclick","return confirm(are you sure?);");
2006-10-09 17:22:00
753
原创 try...catch...throw
catch(Exception ex){throw new Exception(ex.Message,ex);}
2006-10-09 17:18:00
636
原创 SqlParameter
SqlParameter parameterBody=new SqlParameter("@Body",SqlDbType.VarChar,2000);parameterBody.Value=sBody;myCommand.Parameters.Add(parameterBody);SqlParameter parameterLeavewordID=new SqlParameter("@Leave
2006-10-09 17:13:00
943
原创 替换换行符/n为
public string FormatBody(string sBody) { return(sBody.Replace("/n","")); }
2006-10-09 17:10:00
690
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人