上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 16 下一页
摘要: web.config <connectionStrings>     <add name=”AA”connectionString=”XXX” </connectionStrings>   读取web.config文件中数据库连接配置信息 string connectionString=ConfigurationMa... 阅读全文
posted @ 2009-08-28 16:05 斑点海豚---寂静的港湾 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 第n页显示数据记录的语句应该是: select top 5 * from UserInfo where UserID not in (select top (n-1)*5 UserId from UserInfo order by UserID asc) order by UserID asc 阅读全文
posted @ 2009-08-28 15:05 斑点海豚---寂静的港湾 阅读(160) 评论(0) 推荐(0) 编辑
摘要: exec sp_attach_db 'Asset5', 'd:\program files\microsoft sql server\mssql.1\mssql\data\Asset5.mdf', 'd:\program files\microsoft sql server\mssql.1\mssql\data\Asset5_log.ldf'   当然也可在企业管理器中进行操作。 阅读全文
posted @ 2009-08-28 09:56 斑点海豚---寂静的港湾 阅读(400) 评论(0) 推荐(0) 编辑
摘要: protected void GridView1_OnRowDataBound(object sender, GridViewRowEventArgs e)         {             int i; &#... 阅读全文
posted @ 2009-08-27 14:30 斑点海豚---寂静的港湾 阅读(489) 评论(0) 推荐(0) 编辑
摘要: 在页面中添加导出按钮,按钮中的代码如下: protected void Button2_Click(object sender, EventArgs e)        {            Export("applicat... 阅读全文
posted @ 2009-08-27 13:52 斑点海豚---寂静的港湾 阅读(350) 评论(0) 推荐(0) 编辑
摘要: Sharepoint 2007上 1.在Ste Action—>Site Settings—>Site Collection Feature需要启动一下两个服务 a.Office Sharepoint Server Enterprise Site collection features. b.Office Sharepoint Server Publishing... 阅读全文
posted @ 2009-08-26 13:27 斑点海豚---寂静的港湾 阅读(223) 评论(0) 推荐(0) 编辑
摘要: 原因是:把类库项目作为起始项目了,起始项目只能是可执行程序或者web程序 解决方法:在你要启动的项目上单击右键,选择Set as startup project 选择,这时会发现项目的字体已经变黑,表示现以该项目做为启动项目。 还要设置起始页,就是网站的首页。 阅读全文
posted @ 2009-08-25 14:19 斑点海豚---寂静的港湾 阅读(326) 评论(0) 推荐(0) 编辑
摘要: 需添加System.configuration引用 阅读全文
posted @ 2009-08-14 14:47 斑点海豚---寂静的港湾 阅读(101) 评论(0) 推荐(0) 编辑
摘要: 启动 TCP/IP NetBIOS Helper服务 阅读全文
posted @ 2009-08-13 08:54 斑点海豚---寂静的港湾 阅读(153) 评论(0) 推荐(0) 编辑
摘要: select * into b from a where 1<>1 阅读全文
posted @ 2009-08-11 16:26 斑点海豚---寂静的港湾 阅读(72) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 16 下一页