Advertisement

03.12.2008 at 03:37AM PDT, ID: 23234542
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.5

Sorting Table results .asp Dreamweaver

Asked by raymondmantle in Active Server Pages (ASP)

Tags: ,

Hi, i am new to dreamweaver.
I need to sort the column's asc/desc, with out having to reload the page by running another store proceedure.

I dont know where to even start, I can display my results in the table using a dynamic table in dreamweaver, but thats it.

How do i add the function of being able to sort each of the column's?

I have attached my page. As much help would be great.Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
161:
162:
163:
164:
165:
166:
167:
168:
169:
170:
171:
172:
173:
174:
175:
176:
177:
178:
179:
180:
181:
182:
183:
184:
185:
186:
187:
188:
189:
190:
191:
192:
193:
194:
195:
196:
197:
198:
199:
200:
201:
202:
203:
204:
205:
206:
207:
208:
209:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<!--#include file="../Connections/Reporting.asp" -->
<%
 
Dim Command1__Value
Command1__Value = "10"
if(Request("Value") <> "") then Command1__Value = Request("Value")
 
%>
<%
 
set Command1 = Server.CreateObject("ADODB.Command")
Command1.ActiveConnection = MM_Reporting_STRING
Command1.CommandText = "dbo.SP_Rep_V3_Loyalty_StaffCardUsageBC"
Command1.Parameters.Append Command1.CreateParameter("@RETURN_VALUE", 3, 4)
Command1.Parameters.Append Command1.CreateParameter("@Value", 3, 1,3,Command1__Value)
Command1.CommandType = 4
Command1.CommandTimeout = 0
Command1.Prepared = true
set scu = Command1.Execute
scu_numRows = 0
 
%>
<%
Dim Repeat1__numRows
Dim Repeat1__index
 
Repeat1__numRows = -1
Repeat1__index = 0
scu_numRows = scu_numRows + Repeat1__numRows
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Staff Card Usage Reporting Level 5</title>
<style type="text/css">
<!--
body {
	background-color: #FFFFFF;
	background-image: url(../images/logoingenico.JPG);
	background-repeat: no-repeat;
}
.style7 {font-family: Verdana, Arial, Helvetica, sans-serif}
.style8 {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-weight: bold;
	font-style: italic;
}
-->
</style>
<style type="text/css" media="print">
<!--
@import url("../css/print.css");
-->
</style>
<style type="text/css">
<!--
.style9 {font-size: 12px}
-->
</style>
</head>
 
<body>
<p><span class="style7">
      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="105" height="21" title="Logout">
        <param name="BGCOLOR" value="" />
        <param name="movie" value="button4.swf" />
        <param name="quality" value="high" />
        <embed src="button4.swf" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="105" height="21" ></embed>
      </object>
    </span>&nbsp;&nbsp;&nbsp;
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="105" height="21">
      <param name="movie" value="button28.swf" />
      <param name="quality" value="high" />
      <embed src="button28.swf" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="105" height="21" ></embed>
    </object>
</p>
<p><span class="style7">
<input name="button" type="button" onclick="history.go(-1)" value="Back" class="hide" />
    </span></p>
    <p class="style8">&nbsp;</p>
 
    
    
    
    <table border="1" bordercolor="#999999" bordercolorlight="#CCCCCC" bordercolordark="#000000" bgcolor="#FFFFFF" frame="box" rules="all">
      <tr>
        <td><div align="center" class="style7 style9"><strong>MemberNo</strong></div></td>
        <td><div align="center" class="style7 style9"><strong>Week1</strong></div></td>
        <td><div align="center" class="style7 style9"><strong>Week2</strong></div></td>
        <td><div align="center" class="style7 style9"><strong>Week3</strong></div></td>
        <td><div align="center" class="style7 style9"><strong>Week4</strong></div></td>
        <td><div align="center" class="style7 style9"><strong>Week5</strong></div></td>
        <td><div align="center" class="style7 style9"><strong>Week6</strong></div></td>
        <td><div align="center" class="style7 style9"><strong>Week7</strong></div></td>
        <td><div align="center" class="style7 style9"><strong>Week8</strong></div></td>
        <td><div align="center" class="style7 style9"><strong>Week9</strong></div></td>
        <td><div align="center" class="style7 style9"><strong>Week10</strong></div></td>
        <td><div align="center" class="style7 style9"><strong>Week11</strong></div></td>
        <td><div align="center" class="style7 style9"><strong>Week12</strong></div></td>
        <td><div align="center" class="style7 style9"><strong>Week13</strong></div></td>
        <td><div align="center" class="style7 style9"><strong>Week14</strong></div></td>
        <td><div align="center" class="style7 style9"><strong>Week15</strong></div></td>
        <td><div align="center" class="style7 style9"><strong>Week16</strong></div></td>
        <td><div align="center" class="style7 style9"><strong>Week17</strong></div></td>
        <td><div align="center" class="style7 style9"><strong>Week18</strong></div></td>
        <td><div align="center" class="style7 style9"><strong>Week19</strong></div></td>
        <td><div align="center" class="style7 style9"><strong>Week20</strong></div></td>
        <td><div align="center" class="style7 style9"><strong>Week21</strong></div></td>
        <td><div align="center" class="style7 style9"><strong>Week22</strong></div></td>
        <td><div align="center" class="style7 style9"><strong>Week23</strong></div></td>
        <td><div align="center" class="style7 style9"><strong>Week24</strong></div></td>
        <td><div align="center" class="style7 style9"><strong>Week25</strong></div></td>
        <td><div align="center" class="style7 style9"><strong>Week26</strong></div></td>
        <td><div align="center" class="style7 style9"><strong>Week27</strong></div></td>
        <td><div align="center" class="style7 style9"><strong>Week28</strong></div></td>
        <td><div align="center" class="style7 style9"><strong>Week29</strong></div></td>
        <td><div align="center" class="style7 style9"><strong>Week30</strong></div></td>
        <td><div align="center" class="style7 style9"><strong>Week31</strong></div></td>
        <td><div align="center" class="style7 style9"><strong>Week32</strong></div></td>
        <td><div align="center" class="style7 style9"><strong>Week33</strong></div></td>
        <td><div align="center" class="style7 style9"><strong>Week34</strong></div></td>
        <td><div align="center" class="style7 style9"><strong>Week35</strong></div></td>
        <td><div align="center" class="style7 style9"><strong>Week36</strong></div></td>
        <td><div align="center" class="style7 style9"><strong>Week37</strong></div></td>
        <td><div align="center" class="style7 style9"><strong>Week38</strong></div></td>
        <td><div align="center" class="style7 style9"><strong>Week39</strong></div></td>
        <td><div align="center" class="style7 style9"><strong>Week40</strong></div></td>
        <td><div align="center" class="style7 style9"><strong>Week41</strong></div></td>
        <td><div align="center" class="style7 style9"><strong>Week42</strong></div></td>
        <td><div align="center" class="style7 style9"><strong>Week43</strong></div></td>
        <td><div align="center" class="style7 style9"><strong>Week44</strong></div></td>
        <td><div align="center" class="style7 style9"><strong>Week45</strong></div></td>
        <td><div align="center" class="style7 style9"><strong>Week46</strong></div></td>
        <td><div align="center" class="style7 style9"><strong>Week47</strong></div></td>
        <td><div align="center" class="style7 style9"><strong>Week48</strong></div></td>
        <td><div align="center" class="style7 style9"><strong>Week49</strong></div></td>
        <td><div align="center" class="style7 style9"><strong>Week50</strong></div></td>
        <td><div align="center" class="style7 style9"><strong>Week51</strong></div></td>
        <td><div align="center" class="style7 style9"><strong>Week52</strong></div></td>
        <td><div align="center" class="style7 style9"><strong>Week53</strong></div></td>
      </tr>
      <% While ((Repeat1__numRows <> 0) AND (NOT scu.EOF)) %>
        <tr>
          <td><div align="center" class="style7 style9"><a href="carddetails3.asp?varcardno=<%= scu.Fields.Item("MemberNo").Value %>"><%=(scu.Fields.Item("MemberNo").Value)%></a></div></td>
          <td><div align="center" class="style7 style9"><%=(scu.Fields.Item("Week1").Value)%></div></td>
          <td><div align="center" class="style7 style9"><%=(scu.Fields.Item("Week2").Value)%></div></td>
          <td><div align="center" class="style7 style9"><%=(scu.Fields.Item("Week3").Value)%></div></td>
          <td><div align="center" class="style7 style9"><%=(scu.Fields.Item("Week4").Value)%></div></td>
          <td><div align="center" class="style7 style9"><%=(scu.Fields.Item("Week5").Value)%></div></td>
          <td><div align="center" class="style7 style9"><%=(scu.Fields.Item("Week6").Value)%></div></td>
          <td><div align="center" class="style7 style9"><%=(scu.Fields.Item("Week7").Value)%></div></td>
          <td><div align="center" class="style7 style9"><%=(scu.Fields.Item("Week8").Value)%></div></td>
          <td><div align="center" class="style7 style9"><%=(scu.Fields.Item("Week9").Value)%></div></td>
          <td><div align="center" class="style7 style9"><%=(scu.Fields.Item("Week10").Value)%></div></td>
          <td><div align="center" class="style7 style9"><%=(scu.Fields.Item("Week11").Value)%></div></td>
          <td><div align="center" class="style7 style9"><%=(scu.Fields.Item("Week12").Value)%></div></td>
          <td><div align="center" class="style7 style9"><%=(scu.Fields.Item("Week13").Value)%></div></td>
          <td><div align="center" class="style7 style9"><%=(scu.Fields.Item("Week14").Value)%></div></td>
          <td><div align="center" class="style7 style9"><%=(scu.Fields.Item("Week15").Value)%></div></td>
          <td><div align="center" class="style7 style9"><%=(scu.Fields.Item("Week16").Value)%></div></td>
          <td><div align="center" class="style7 style9"><%=(scu.Fields.Item("Week17").Value)%></div></td>
          <td><div align="center" class="style7 style9"><%=(scu.Fields.Item("Week18").Value)%></div></td>
          <td><div align="center" class="style7 style9"><%=(scu.Fields.Item("Week19").Value)%></div></td>
          <td><div align="center" class="style7 style9"><%=(scu.Fields.Item("Week20").Value)%></div></td>
          <td><div align="center" class="style7 style9"><%=(scu.Fields.Item("Week21").Value)%></div></td>
          <td><div align="center" class="style7 style9"><%=(scu.Fields.Item("Week22").Value)%></div></td>
          <td><div align="center" class="style7 style9"><%=(scu.Fields.Item("Week23").Value)%></div></td>
          <td><div align="center" class="style7 style9"><%=(scu.Fields.Item("Week24").Value)%></div></td>
          <td><div align="center" class="style7 style9"><%=(scu.Fields.Item("Week25").Value)%></div></td>
          <td><div align="center" class="style7 style9"><%=(scu.Fields.Item("Week26").Value)%></div></td>
          <td><div align="center" class="style7 style9"><%=(scu.Fields.Item("Week27").Value)%></div></td>
          <td><div align="center" class="style7 style9"><%=(scu.Fields.Item("Week28").Value)%></div></td>
          <td><div align="center" class="style7 style9"><%=(scu.Fields.Item("Week29").Value)%></div></td>
          <td><div align="center" class="style7 style9"><%=(scu.Fields.Item("Week30").Value)%></div></td>
          <td><div align="center" class="style7 style9"><%=(scu.Fields.Item("Week31").Value)%></div></td>
          <td><div align="center" class="style7 style9"><%=(scu.Fields.Item("Week32").Value)%></div></td>
          <td><div align="center" class="style7 style9"><%=(scu.Fields.Item("Week33").Value)%></div></td>
          <td><div align="center" class="style7 style9"><%=(scu.Fields.Item("Week34").Value)%></div></td>
          <td><div align="center" class="style7 style9"><%=(scu.Fields.Item("Week35").Value)%></div></td>
          <td><div align="center" class="style7 style9"><%=(scu.Fields.Item("Week36").Value)%></div></td>
          <td><div align="center" class="style7 style9"><%=(scu.Fields.Item("Week37").Value)%></div></td>
          <td><div align="center" class="style7 style9"><%=(scu.Fields.Item("Week38").Value)%></div></td>
          <td><div align="center" class="style7 style9"><%=(scu.Fields.Item("Week39").Value)%></div></td>
          <td><div align="center" class="style7 style9"><%=(scu.Fields.Item("Week40").Value)%></div></td>
          <td><div align="center" class="style7 style9"><%=(scu.Fields.Item("Week41").Value)%></div></td>
          <td><div align="center" class="style7 style9"><%=(scu.Fields.Item("Week42").Value)%></div></td>
          <td><div align="center" class="style7 style9"><%=(scu.Fields.Item("Week43").Value)%></div></td>
          <td><div align="center" class="style7 style9"><%=(scu.Fields.Item("Week44").Value)%></div></td>
          <td><div align="center" class="style7 style9"><%=(scu.Fields.Item("Week45").Value)%></div></td>
          <td><div align="center" class="style7 style9"><%=(scu.Fields.Item("Week46").Value)%></div></td>
          <td><div align="center" class="style7 style9"><%=(scu.Fields.Item("Week47").Value)%></div></td>
          <td><div align="center" class="style7 style9"><%=(scu.Fields.Item("Week48").Value)%></div></td>
          <td><div align="center" class="style7 style9"><%=(scu.Fields.Item("Week49").Value)%></div></td>
          <td><div align="center" class="style7 style9"><%=(scu.Fields.Item("Week50").Value)%></div></td>
          <td><div align="center" class="style7 style9"><%=(scu.Fields.Item("Week51").Value)%></div></td>
          <td><div align="center" class="style7 style9"><%=(scu.Fields.Item("Week52").Value)%></div></td>
          <td><div align="center" class="style7 style9"><%=(scu.Fields.Item("Week53").Value)%></div></td>
        </tr>
        <% 
  Repeat1__index=Repeat1__index+1
  Repeat1__numRows=Repeat1__numRows-1
  scu.MoveNext()
Wend
%>
</table>
</body>
</html>
[+][-]03.12.2008 at 05:27AM PDT, ID: 21105137

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.12.2008 at 07:54AM PDT, ID: 21106583

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.12.2008 at 08:43AM PDT, ID: 21107208

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Active Server Pages (ASP)
Tags: .asp, FireFox
Sign Up Now!
Solution Provided By: _Stilgar_
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628