Content Preview: rss
201 days ago
在code-behind throw exception 如果是 ASP.NET 2.0 用 throw 是可自动弹出 js 的 MsgBox ,但到了 ASP.NET3.5 ,用 throw 是会在 IE 内报 js 错误的 . 搜索到了这个错误: UpdatePanel alert not showing when server exception thrown http://forums.asp.net/t/1382061.aspx 解决方案: 说明了 ajax for .net 3.5 和 ajax 1.0 的区别。 In ASP.NET Ajax 1.0, the server-side exception object is serialized into JSON. The JSON is sent to the client, which displays the exception’s message property in an alert box. In ASP.NET Ajax for .NET 3.5, the server-side exception is still serialized into JSON and the JSON is still sent to the client. However, instead of displaying the exception’s message property in an alert box – a presumptuous design decision, if you want my opinion – the client throws the exception, which gives you the opportunity to handle it on the client side as you please. ...
400 days ago
PHP 可以想到的是 http://www.ibm.com/developerworks/cn/opensource/os-php-v525/ 提到的利用php的apc扩展来做。尝试 Upload hook demo。 在asp.net 里面也可以用 HttpModule 来处理上传。 http://darrenjohnstone.net/2008/07/15/aspnet-file-upload-module-version-2-beta-1/ 参考 http://weblogs.asp.net/jgalloway/archive/2008/01/08/large-file-uploads-in-asp-net.aspx 和http://remy.supertext.ch/2008/01/file-upload-with-aspnet/
754 days ago
一:首先确认3306远程端口开启。 二:mysql默认不支持远连.必须设置。 如下: root权限进入 mysql -u root -p 密码 use mysql; update db set host = '%' where user = '用户名'; FLUSH PRIVILEGES; 退出.然后重启mysql. 上面的那个用户即可远连你的mysql了. 记得为了安全一定要有个where条件。 三:host:%表示你的数据库接受任何一个IP的访问,而如果明确访问方机器的IP,可以设置host:访问方IP,所以在网络物理连接的前提下,限制是否能连接到你的数据库跟你自身的IP地址无关。
756 days ago
/**default css style**/ html , address , blockquote , body , dd , div , dl , dt , fieldset , form , frame , frameset , h1 , h2 , h3 , h4 , h5 , h6 , noframes , ol , p , ul , center , dir , hr , menu , pre { display : block } li { display : list - item } head { display : none } table { display : table } tr { display : table - row } thead { display : table - header - group } tbody { display : table - row - group } tfoot { display : table - footer - group } col { display : table - column } colgroup { display : table - column - group } td , th { display : table - cell ; } caption { display : table - caption } th { font - weight : bolder ; text - align : center } caption { text - align : ...



