易截截图软件、单文件、免安装、纯绿色、仅160KB

asp.net分页问题

select top 12 * from Product where [id] not in (select top 12 [id] from Product)
这样可以分页,但是我在后面想加个条件
select top 12 * from Product where [id] not in (select top 12 [id] from Product) where productid=34
分页就失效了
数据全是前12条
是用什么控件分页显示数据,有些控件不是自带分页功能么.

改成
SQL code:
select top 12 * from Product where [id] not in (select top 12 [id] from Product where productid=34) and productid=34


引用
改成
SQL codeselecttop12*from Productwhere[id]notin (selecttop12[id]from Productwhere productid=34)and productid=34

顶这个
楼主的SQL语句里面少了个条件

谢了 解决了 呵呵 确实是少了个条件

select top 12 * from Product where [id] not in (select top 12 [id] from Product) where productid=34,应该考虑执行顺序。
SQL code:
select top 12 * from Product where [id] not in (select top 12 [id] from Product) and productid=34

或者SQL code:
select top 12 * from Product where [id] not in (select top 12 [id] from Product where productid=34)



相关问答:

asp.net连mysql数据库的问题?

C# code:
string sql = "select * from userinfo where uname = '" + uname + "' and upassword = '" + upassword + "'";
//和
string sql = "select * from userinfo where ......

问个问题,做好的asp.net网站要假设在ftp服务器上?

问个问题,做好的asp.net网站要假设在ftp服务器上?

我已经生成好网站,直接拷贝到ftp服务器上是么?
建议扔到iis上

一般架设到服务器的iis中。

怎么假设到IIS中呢?

沉了?

第一步:重新编译程 ......

(救命呀救命呀救命呀)ASP.NET突然不能连接SQL2000

如题:前几天服务器还是好好的  今天网页打不开突然出现错误,一查是链接不上数据库了?
(查询分析器和企业管理器都可以正常显示)


[SqlException (0x80131904): 用户 'sa' 登录失败。] ......

asp.net 中图片拼接

我在asp.net中我要将四张或四张以下的图片拼在一起,如何实现?图片是我从数据库中读出来的二进制。单张读出来的代码如下:C# code:
DataHelper dh=new DataHelper();
System.Drawing.Image image = dh.g ......

在asp.net中 怎样取得FileUpload文件的完整路径

如题!
FileUpload1.PostedFile.FileName

我这样写了  但是还是获得的是一个文件的名称,FileUpload1.FileName 这个也是一样!

FileUpload1.PostedFile.FileName

IE 问题

工具-internet选项-安全- ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号