suona
Junior Member
Taiwan
121 Posts |
Posted - 07 June 2005 : 11:32:37
|
I have copied somewhere(I don't rember whre I get it) a little MOD, used in topic.asp, the sort the order of all replies when viewing some topic.
Here's one part of the MOD:
'#################################### sortorder = request("sortchoice") if sortorder <> "" then Application.Lock Application(strCookieURL & "strSortchoice") = sortorder Application.UnLock else sortorder = Application(strCookieURL & "strSortchoice") end if '####################################
normally, after setting the sortchoice (in another part), the program above should rember the setting, right ?
when I enter the topic next time, I can observe tha the program listed above, will get a null sortorder, since the sortchoice is empty when I first enter the topic.
and the program lised above will use the "else" condition, to retrive the value of sortorder.
this works, but not all the time, that's my problem.
some times, the forum can remember the sortorder settings for days, but someday , it can't remember, and reset to initial setting.
is the program listed above have something wrong ? |
I'm a amateur WWW site builder.
And Sorry for my poor english .....
|
Edited by - ruirib on 07 June 2005 13:03:09 |
|