摘要: Sqlce4.0 不支持 Truncate table ,只能用原始的方法删除数据,再重建标识了1 DELETE from [TableName] 2 ALTER TABLE [TableName] ALTER COLUMN ID IDENTITY (1,1) 阅读全文
posted @ 2012-05-04 00:37 jason-lee 阅读(553) 评论(0) 推荐(0) 编辑
摘要: @RenderPage("~/Views/Shared/_Test.cshtml")@using (Html.BeginForm()){}调试查看源码时没有 form 标记改成@Html.Partial("~/Views/Shared/_Test.cshtml") @using (Html.BeginForm()){}就解决了。 阅读全文
posted @ 2012-02-11 17:17 jason-lee 阅读(479) 评论(0) 推荐(0) 编辑
摘要: intent调用网页就容易了,怎样通过网页标签调用Intent呢?1先定义一个接口publicabstractinterfaceJSInterface{publicabstractvoidonLinkClick(StringparamString);publicabstractvoidplayVideo(StringparamString);}2webkit的Activity应用这接口如:publicclassShowWebActivityextendsActivityimplementsJSInterface{publicvoidonLinkClick(StringstrUrl){//to. 阅读全文
posted @ 2011-06-28 22:48 jason-lee 阅读(1666) 评论(0) 推荐(0) 编辑
摘要: pstm = conn.prepareStatement("select * From Cl_ArticleClass Where ParentID=? order by OrderID"); pstm.setInt(1,parentid); rs = pstm.executeQuery(); if(rs.next()){ coll= new ArrayList<ArticleClassIn... 阅读全文
posted @ 2009-07-01 17:02 jason-lee 阅读(7620) 评论(0) 推荐(0) 编辑
摘要: [ArticleID] AUTOINC NOT NULL PRIMARY KEY 添加时出错 网上找了很多资料原来主键只能是 INTEGER, 改成[ArticleID] INTEGER NOT NULL PRIMARY KEY, 完整代码如下:private final static String INSERT_ARTICLE = "insert into [Cl_Article] ([ArticleID],[ClassID],[Title],[Author],[CopyFrom],[Content],[DefaultPicUrl]) values (NULL,?,?,?,?,?, 阅读全文
posted @ 2008-10-22 15:10 jason-lee 阅读(2066) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示