排序问题 [英] Sorting Question

查看:82
本文介绍了排序问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我的代码。我试图看看我是否可以放一个


%@ LANGUAGE =" VBSCRIPT" %>


<%

FieldA = Request.QueryString(" A")

FieldB = Request.QueryString (B)

FieldC = Request.QueryString(" C")

response.write(" TABLE ALIGN = CENTER> ")

response.write("< TR bgcolor =#990033>")

response.write("< TD align = center width = 200>< b>< font color = white size = 2

face = Tahoma>")

response.write(" FieldA")

response.write("< /< / TD>< / b>")

response.write("< TD align = center width = 200>< b>< font color = white size = 2

face = Tahoma>")

response.write(" FieldB")

response.write("< /< />< / b>")

response.write("< / TR>")

response.write("< TR>")

response.write("< TD align = center bgcolor =#f6f0e3 width = 200&g t;< font size = 2

face = Tahoma>")

response.write(" FieldC")

回复。写("< / TD>")

response.write("< / TR>")

response.write("< / TABLE>")


然后我的数据显示在上面的QueryString信息中。

------

我想通过单击字段名称使标题行可排序。

我尝试使用A HREF并传递一个名为sort的变量,但它不是

似乎有效。非常感谢任何帮助。


Here is my code. I am trying to see if I can put a

%@ LANGUAGE="VBSCRIPT" %>

<%
FieldA = Request.QueryString("A")
FieldB = Request.QueryString("B")
FieldC = Request.QueryString("C")

response.write("<TABLE ALIGN=CENTER>")
response.write("<TR bgcolor=#990033>")
response.write("<TD align=center width=200><b><font color=white size=2
face=Tahoma>")
response.write("FieldA")
response.write("</TD></b>")
response.write("<TD align=center width=200><b><font color=white size=2
face=Tahoma>")
response.write("FieldB")
response.write("</TD></b>")
response.write("</TR>")
response.write("<TR>")
response.write("<TD align=center bgcolor=#f6f0e3 width=200><font size=2
face=Tahoma>")
response.write("FieldC")
response.write("</TD>")
response.write("</TR>")
response.write("</TABLE>")

Then my data is displayed from the QueryString info above.
------

I would like to make the header row sortable by clicking on the field name.
I have tried use A HREF and passing a variable called sort, but it doesn''t
seem to work. Any help is much appreciated.


推荐答案

你必须在标题中添加完整的HREF或onClick ,其中的信息


-

Curt Christianson

网站&脚本: http://www.Darkfalz.com

博客: http://blog.Darkfalz.com

" SASRS" < MC ****** @ srs.com>在消息中写道

news:u9 ************** @ TK2MSFTNGP11.phx.gbl ...
you''ll have to add a full HREF or onClick to the header, with the info in it

--
Curt Christianson
Site & Scripts: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"SASRS" <mc******@srs.com> wrote in message
news:u9**************@TK2MSFTNGP11.phx.gbl...
这是我的代码。我想看看我是否可以放一个

%@ LANGUAGE =" VBSCRIPT" %>

<%
FieldA = Request.QueryString(" A")
FieldB = Request.QueryString(" B")
FieldC = Request.QueryString(" C")

response.write("< TABLE ALIGN = CENTER>")
response.write("< TR bgcolor =#990033> ;")
response.write("< TD align = center width = 200>< b>< font color = white size = 2
face = Tahoma>")
response.write(" FieldA")
response.write("< / TD>< / b>")
response.write("< TD align = center width = 200>< b>< font color = white size = 2
face = Tahoma>")
response.write(" FieldB")
response.write(" ;< / TD>< / b>")
response.write("< / TR>")
response.write("< TR>")
response.write("< TD align = center bgcolor =#f6f0e3 width = 200>< font size = 2
face = Tahoma>")
response.write(" FieldC")
response.write("< / TD>")
response.write("< / TR>")
response.write("< / TABLE> ;然后我的数据显示在上面的QueryString信息中。
------

我想使标题行可排序通过单击字段
名称。
我尝试使用A HREF并传递一个名为sort的变量,但它似乎不起作用。非常感谢任何帮助。
Here is my code. I am trying to see if I can put a

%@ LANGUAGE="VBSCRIPT" %>

<%
FieldA = Request.QueryString("A")
FieldB = Request.QueryString("B")
FieldC = Request.QueryString("C")

response.write("<TABLE ALIGN=CENTER>")
response.write("<TR bgcolor=#990033>")
response.write("<TD align=center width=200><b><font color=white size=2
face=Tahoma>")
response.write("FieldA")
response.write("</TD></b>")
response.write("<TD align=center width=200><b><font color=white size=2
face=Tahoma>")
response.write("FieldB")
response.write("</TD></b>")
response.write("</TR>")
response.write("<TR>")
response.write("<TD align=center bgcolor=#f6f0e3 width=200><font size=2
face=Tahoma>")
response.write("FieldC")
response.write("</TD>")
response.write("</TR>")
response.write("</TABLE>")

Then my data is displayed from the QueryString info above.
------

I would like to make the header row sortable by clicking on the field
name.
I have tried use A HREF and passing a variable called sort, but it doesn''t
seem to work. Any help is much appreciated.



SASRS写道:
FieldA = Request.QueryString(" A" )
FieldB = Request.QueryString(" B")
FieldC = Request.QueryString(" C")
...
我想做标题行点击
字段名称可以排序。我尝试过使用A HREF并传递一个名为sort的变量,但它似乎无法工作。任何帮助都很受欢迎。
FieldA = Request.QueryString("A")
FieldB = Request.QueryString("B")
FieldC = Request.QueryString("C")
...
I would like to make the header row sortable by clicking on
the field name. I have tried use A HREF and passing a variable
called sort, but it doesn''t seem to work. Any help is much
appreciated.




您是否在询问如何(a)有条件地要求DB排序,(b)排序
一旦从数据库中获取数据,服务器上的
数据,或者(c)在客户端的b / b
上进行排序?每个都需要不同的方法。


-

戴夫安德森


未经请求的商业电子邮件将在每条消息的



Are you asking how to (a) conditionally ask the DB to sort, (b) sort the
data on the server once you get it back from the database, or (c) sort it on
the client side? Each requires a different approach.

--
Dave Anderson

Unsolicited commercial email will be read at a cost of


500的费用。使用

此电子邮件地址即表示同意这些条款。请不要直接联系

我或要求我直接与您联系以获取帮助。如果您的

问题值得询问,那就值得发帖。
500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it''s worth posting.


这篇关于排序问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆