易截截图软件、单文件、免安装、纯绿色、仅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代码是否可以保密

例如有两段代码
FirstPageCodeBehind.aspx
HTML code:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="FirstPageCodeBehind.aspx.cs" Inherits="FirstPag ......

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的网站就无法运行

新人一个,不懂,希望大家多多指点

我随意新建一个网站(2.0和3.5的都试过),只放上一个控件,然后就直接运行了,马上就跳出一个出错的页面,大概是说

“/WebSite1”应用程序中的服务器错误。
--- ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号