vinod yadav1919, I'll have to disagree with you.
QueryStrings can be used!
Arnabghosh,
perhaps this will help:
Code:
Dim strSorter
If Not IsEmpty(Request.QueryString("sort")) Then
strSorter = Request.QueryString("sort")
Else
strSorter = "FieldA"
End If
Dim Rs
Set Rs = Server.CreateObject("ADODB.RecordSet")
With Rs
.Fields.Append "FieldA", 200, 20
.Fields.Append "FieldB", 200, 20
.Open
.AddNew
.Fields("FieldA") = "FirstName1"
.Fields("FieldB") = "LastName1"
.Update
.AddNew
.Fields("FieldA") = "FirstName2"
.Fields("FieldB") = "LastName2"
.Update
' ...and so on - you could use a possibly loop for this getting the details out of your array such as
For i=0 to UBound(YourArray, 2)
.AddNew
.Fields("FieldA") = YourArray(i,0)
.Fields("FieldB") = YourArray(i,1)
.Update
Next
' or something like that
.Sort = strSorter
End With
'Then you can actually present your data
Rs.MoveFirst
Do While Not Rs.EOF
Response.Write Rs(0) & " - " & Rs(1)
Rs.MoveNext
Loop
Hope this gives you some ideas
I am a loud man with a very large hat. This means I am in charge