Does anyone know how I can do this?
Assuming you've created your own custom 404 page...
dim badurl
badurl = request.servervariables("QUERY_STRING")
badurl = right(badurl, len(badurl)-4)
response.write "Bad URL: <a href=""" & badurl & """>" & badurl &
"</a><br><br>"
Your answer is in microsoft.public.scripting.vbscript
"John Roddy" <pri...@priviate.email> wrote in message
news:dKx2a.41845$7_.1...@news1.mts.net...
I get the error :
Microsoft VBScript runtime error '800a0005'
Invalid procedure call or argument: 'right'
/default.asp, line 57
"Mike" <so...@sorry.com> wrote in message
news:b2e9ru$8qr$1...@geraldo.cc.utexas.edu...
Aaaggghhh! He *did* multipost. What he *should* have done is to
cross-post.
Adam
--
"Bother!" said Pooh "Eyeore, ready two photon torpedoes and lock phasers
on the Heffalump, Piglet, meet me in transporter room three,
Christopher Robin, you have the bridge" (Found on the net, Author
Unknown)
Cross-post -- good; Multi-post -- bad.
BTW, know any any good articles on Newsgroup Etitquette?
"Adam D. Barratt" <usenet...@adam-barratt.org.uk> wrote in message
news:3e4a...@aubergine.my-net-space.net...
http://www.aspfaq.com/2081
http://www.aspfaq.com/2257
http://www.aspfaq.com/5001
http://www.aspfaq.com/5002
http://www.aspfaq.com/5003
http://www.aspfaq.com/5004
http://www.aspfaq.com/5005
Is your default language VBScript? This code works as I took it from my own
page.
Also, you can actually take out the "right" argument, it only strips off
some unwanted characters at the beginning of the param (which is passed as a
querystring to the custom 404 page).
HTH
--
Mike