11 2013 档案
摘要:【转载】http://blog.163.com/rihui_7/blog/static/21228514320136193392749/1、设置字段为主键就是一种唯一性约束的方法,如 int primary key2、使用unique ,unique(唯一)约束,指的是让字段的数据具有唯一性,该字段内的数据不可以发生重复,但是可以为空,而主键不可以为空,实际上,主键也就是一个唯一性约束。alter table 【表名】add constraint 【约束名】unique(字段)SQL UNIQUE 约束 这个约束对int或者是nvarchar都是有效的UNIQUE 约束唯一标识数据库表中的..
阅读全文
摘要:http://mjxy.cn/a-Email-regular-expression.aspx
阅读全文
摘要:在使用AfterLogic WebMail做客户端的时候发现无论是在FF下还是在IE下发送邮件时附件怎么也无法上传,后来查看代码发现它使用的FLASH上传调用的上传代码是upload.php,问题就出在这里,.net版本不可能调用到uplpad.php的上传代码。然后我翻遍所有文件终于在webmail_net\WEBMAIL\js\mail\new-message-screen.js里找到了定义的地方,然后将upload.php改成upload.aspx即解决了问题。后来我上官网重新下载了.net的zip包,发现这个问题已经修正,里面的文件除了new-message-screen.js文件的修
阅读全文
摘要:--insert fj_studentinfo--select *--from-- openrowset('SQLOLEDB','localhost';'sa';'password',dbname.tablename) as s,-- priv_user as p--where stuprivuserid is null and p.name=s.stuname
阅读全文
摘要:【转载】http://www.cnblogs.com/andy2005/archive/2007/12/04/981864.htmlselect语句中只能使用sql函数对字段进行操作(链接sql server),select 字段1 from 表1 where 字段1.IndexOf("云")=1;这条语句不对的原因是indexof()函数不是sql函数,改成sql对应的函数就可以了。left()是sql函数。select 字段1 from 表1 where charindex('云',字段1)=1;字符串函数对二进制数据、字符串和表达式执行不同的运算。此类
阅读全文
摘要:hmailserver发邮件http://www.hmailserver.com/forum/viewtopic.php?f=9&t=14937
阅读全文
摘要:将serv-u设置成数据库管理用户的前提是先要建立数据源如何用Serv-U连接ODBC|1、可以在 FTP所在服务器安装一个 SQL Server 数据库,也可以使用论坛自带的数据库。建议在 FTP所在服务器安装一个全新的 SQL Server。2、配置DSN。到Windows的管理工具,数据源(ODBC)。在用户 DSN,点击“添加”,选择"SQL Server",然后点击完成。在接下来出现的对话框中,Data Source Name(名称) 填写任意一个DSN名字,比如Serv-U。下面填写储存FTP信息的SQL Server 数据库信息,包括主机名,用户名密码等。OK
阅读全文
摘要:【ddSlick】http://designwithpc.com/Plugins/ddSlickHow to use with JSON dataInclude the plugin javascript file along with jquery: Create an empty placeholder for the custom drop down: eg:Get the drop down options (JSON Data) to be binded to plugin://Dropdown plugin datavar ddData = [ { tex...
阅读全文
摘要:http://site518.net/ddslick-drop-down-list-with-image/
阅读全文
摘要:可以用过object routeValues参数来传递
阅读全文
摘要:【原文】http://blog.csdn.net/risingsun001/article/details/9068187修改MVC3中的路由规则在Global.asax.cs中,修改路由规则原路由规则 routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.MapRoute( "Default", // 路由名称 "{controller}/{action}/{id}", // 带有参数的 URL new { control...
阅读全文

浙公网安备 33010602011771号