Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sortable table for IE?

Status
Not open for further replies.

jemminger

Programmer
Jun 25, 2001
3,453
US
hi all,

what's the best way to make a data bound table with sortable column headings for IE?

thanks, =========================================================
if (!succeed) try();
-jeff
 
well i've done that with a round trip if that's what u mean.

the column header just posts the sort information to the server page which modifies the SQL query to contain the correct "ORDER BY" clause then the rest of the server side code is the same causing the page to be built with the new ordered rows.

does that help?

don't know how XML is involved in your situation.

-pete
 
jeff, shouldn't your sig be


while(!succeed) try();

? :)
 
btw you can use XML to do the same thing.

instead of hitting the db all the time, you can actually use your transform script to insert the column/node you want to sort by as a parameter into the xslt script.

usign some xslt wizardy (actually, xsl:sort) you can then sort on this node. It works for numbers too, u just have to specify this.

I dont have any examples, but trust me it works cause i've done it before.

I'll be happy to try give some examples if you're interested in doing it this way. :)


matt
 
thanks matt...

i guess you're right, while(!succeed) try(); would make more sense.

i'll start researching xsl:sort too - thanks for the direction =========================================================
if (!succeed) try();
-jeff
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top