Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 Alphabetic Search
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

GauravBhabu
Advanced Member

4288 Posts

Posted - 21 August 2001 :  11:33:17  Show Profile
For Alphabetic Search in members.asp I Use the following code.

<a href="members.asp?mode=search&M_NAME=&initial=1&method=<%=SortMethod %> ">All</a>
<%Dim iAdd : iADD = 1
for iLetter = 64 to 89%>
<a href="members.asp?mode=search&M_NAME=<%=chr(iLetter+iADD)%>&initial=1&method=<%=SortMethod %> "><%=chr(iLetter+iADD)%></a>
<%next %>



Above replaces the following code in members.asp. Will there be any Compatability Issue.




<a href="members.asp?mode=search&M_NAME=&initial=1&method=<%=SortMethod %> ">All</a>
<a href="members.asp?mode=search&M_NAME=A&initial=1&method=<%=SortMethod %> ">A</a>
<a href="members.asp?mode=search&M_NAME=B&initial=1&method=<%=SortMethod %> ">B</a>
<a href="members.asp?mode=search&M_NAME=C&initial=1&method=<%=SortMethod %> ">C</a>
<a href="members.asp?mode=search&M_NAME=D&initial=1&method=<%=SortMethod %> ">D</a>
<a href="members.asp?mode=search&M_NAME=E&initial=1&method=<%=SortMethod %> ">E</a>
<a href="members.asp?mode=search&M_NAME=F&initial=1&method=<%=SortMethod %> ">F</a>
<a href="members.asp?mode=search&M_NAME=G&initial=1&method=<%=SortMethod %> ">G</a>
<a href="members.asp?mode=search&M_NAME=H&initial=1&method=<%=SortMethod %> ">H</a>
<a href="members.asp?mode=search&M_NAME=I&initial=1&method=<%=SortMethod %> ">I</a>
<a href="members.asp?mode=search&M_NAME=J&initial=1&method=<%=SortMethod %> ">J</a>
<a href="members.asp?mode=search&M_NAME=K&initial=1&method=<%=SortMethod %> ">K</a>
<a href="members.asp?mode=search&M_NAME=L&initial=1&method=<%=SortMethod %> ">L</a>
<a href="members.asp?mode=search&M_NAME=M&initial=1&method=<%=SortMethod %> ">M</a>
<a href="members.asp?mode=search&M_NAME=N&initial=1&method=<%=SortMethod %> ">N</a>
<a href="members.asp?mode=search&M_NAME=O&initial=1&method=<%=SortMethod %> ">O</a>
<a href="members.asp?mode=search&M_NAME=P&initial=1&method=<%=SortMethod %> ">P</a>
<a href="members.asp?mode=search&M_NAME=Q&initial=1&method=<%=SortMethod %> ">Q</a>
<a href="members.asp?mode=search&M_NAME=R&initial=1&method=<%=SortMethod %> ">R</a>
<a href="members.asp?mode=search&M_NAME=S&initial=1&method=<%=SortMethod %> ">S</a>
<a href="members.asp?mode=search&M_NAME=T&initial=1&method=<%=SortMethod %> ">T</a>
<a href="members.asp?mode=search&M_NAME=U&initial=1&method=<%=SortMethod %> ">U</a>
<a href="members.asp?mode=search&M_NAME=V&initial=1&method=<%=SortMethod %> ">V</a>
<a href="members.asp?mode=search&M_NAME=W&initial=1&method=<%=SortMethod %> ">W</a>
<a href="members.asp?mode=search&M_NAME=X&initial=1&method=<%=SortMethod %> ">X</a>
<a href="members.asp?mode=search&M_NAME=Y&initial=1&method=<%=SortMethod %> ">Y</a>
<a href="members.asp?mode=search&M_NAME=Z&initial=1&method=<%=SortMethod %> ">Z</a><br>


Share A Square at forumSquare


GauravBhabu

There is only one miracle...That is LIFE!


Edited by - GauravBhabu on 21 August 2001 11:54:20

Rob Poretti
Junior Member

Canada
435 Posts

Posted - 23 August 2001 :  11:15:13  Show Profile  Visit Rob Poretti's Homepage
Hi GauravBhabu,

It should work fine. Your code is much more compact (ie: smaller), but IIS will still render essentially the same asp -- so I don't think the the client page will not be be any smaller. Hard to say if it will run faster or not...

I wanted to check the theory out in practise by going to your members.asp page, but it required for me to register first. When I attempted to do this, I got the following error message:

Error Type:
ADODB.Recordset (0x800A0CC1)
Item cannot be found in the collection corresponding to the requested name or ordinal.


If I recall, I had attempted to register for your forum before, and it failed then -- although I can't remember what the problem was that time.)

By the way, I like forumSquare's new look... very attractive! Good job...

Cheers!



Rob Poretti
Sascom Marketing Group ~ Toronto
vox.905.825.5373 fax.905.825.5960

Edited by - Rob Poretti on 23 August 2001 21:08:41
Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 23 August 2001 :  11:49:53  Show Profile
I was testing on smething. You can login.

Share A Square at forumSquare


GauravBhabu

There is only one miracle...That is LIFE!

Edited by - GauravBhabu on 23 August 2001 12:02:06

Edited by - GauravBhabu on 24 August 2001 09:24:35
Go to Top of Page

Rob Poretti
Junior Member

Canada
435 Posts

Posted - 23 August 2001 :  21:10:51  Show Profile  Visit Rob Poretti's Homepage
Yes! Sorry, I wasn't thinking...

Anyway... I've registered and everything is fine...

BTW, as I mentioned above, the code is much more elegant and compact but the client side isn't smaller and it's probably no different in speed...

Cheers!



Rob Poretti
Sascom Marketing Group ~ Toronto
vox.905.825.5373 fax.905.825.5960
Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 24 August 2001 :  03:14:18  Show Profile
As you pointed, I looked at the code and the statements were repeating except for the alphabet letter, so I thought, why not make it copmpact?

Share A Square at forumSquare


GauravBhabu

There is only one miracle...That is LIFE!
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.21 seconds. Powered By: Snitz Forums 2000 Version 3.4.07