以前自己的论坛因为程序源码跟WIN2000的注册表有冲突,帖子发出后会出现无效页面,以致于论坛里有很多无恶意的重复帖子,后来想出了一个办法,用JS避免重复提交,下面是部分源码: <script Language='JavaScript' function formsubmit() { Today = new Date(); var NowHour = Today.getHours(); var NowMinute = Today.getMinutes(); var NowSecond = Today.getSeconds(); var mysec = (Now...[ 查看全文 ]
New features added to the Membership and MembershipUser class in the latest CTP drop of Visual Studio 2005. Membership class Generate password public string GeneratePassword(string length) This method will randomly generate a password with the given length. string password = Membership.GenereatePassword(10);Membership.CreateUser("Fredrik", password); The password could for ex...[ 查看全文 ]