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

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 Calling Self
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

kolucoms6
Average Member

845 Posts

Posted - 25 January 2008 :  17:16:13  Show Profile
In Default.asp,

response.redirect "Default.asp"

Why it gets into loop ?

Or its the way it works.

phy1729
Average Member

USA
589 Posts

Posted - 25 January 2008 :  17:25:47  Show Profile
What line is that? About 164?
if Cat_ID <> "" then response.redirect("default.asp")
Go to Top of Page

muzishun
Senior Member

United States
1079 Posts

Posted - 25 January 2008 :  17:53:16  Show Profile  Visit muzishun's Homepage
It's in the section of code that is for viewing a specific category. The URL is default.asp?CAT_ID=#. The redirect is there in case of an invalid CAT_ID.

Bill Parrott
Senior Web Programmer, University of Kansas
Co-Owner and Code Monkey, Eternal Second Designs (www.eternalsecond.com)
Personal Website (www.chimericdream.com)

Edited by - muzishun on 25 January 2008 17:54:15
Go to Top of Page

Podge
Support Moderator

Ireland
3775 Posts

Posted - 25 January 2008 :  17:54:13  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message
Theres a few of them. For example if you land at an invalid topic you get redirected to the main page of the forums. Try it - http://forum.snitz.com/forum/topic.asp?ARCHIVE=true&TOPIC_ID=0

Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.
Go to Top of Page

muzishun
Senior Member

United States
1079 Posts

Posted - 25 January 2008 :  17:55:05  Show Profile  Visit muzishun's Homepage
I think he was specifically referring to the redirect in default.asp that send the user to default.asp.

Bill Parrott
Senior Web Programmer, University of Kansas
Co-Owner and Code Monkey, Eternal Second Designs (www.eternalsecond.com)
Personal Website (www.chimericdream.com)
Go to Top of Page

bobby131313
Senior Member

USA
1163 Posts

Posted - 25 January 2008 :  17:59:41  Show Profile  Visit bobby131313's Homepage
Changed all mine to

if Cat_ID <> "" then response.redirect StrForumUrl

to try to consolidate my pagerank. Default.asp (PR2) and the directory (PR3) ended up with separate Google PR's because of all the redirects to default.asp. Not the best SEO setup.

Somehow that problem here has been solved, but it seems to be a secret how it was done.

Switch the order of your title tags

Edited by - bobby131313 on 25 January 2008 18:03:14
Go to Top of Page

kolucoms6
Average Member

845 Posts

Posted - 25 January 2008 :  18:55:10  Show Profile
Its NOT related with this Forum

Its a generic ASP based question.
Go to Top of Page

phy1729
Average Member

USA
589 Posts

Posted - 25 January 2008 :  19:00:01  Show Profile
Well when you go to default.asp it sends you to default.asp which sends you to default.asp which ...
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 25 January 2008 :  19:03:47  Show Profile
quote:
Originally posted by phy1729

Well when you go to default.asp it sends you to default.asp which sends you to default.asp which ...

ROFL!!! Exactly so!! LOL!

Support Snitz Forums
Go to Top of Page

muzishun
Senior Member

United States
1079 Posts

Posted - 25 January 2008 :  19:18:50  Show Profile  Visit muzishun's Homepage
Davio... are you feeling ok? That seemed uncharacteristic of you.

Bill Parrott
Senior Web Programmer, University of Kansas
Co-Owner and Code Monkey, Eternal Second Designs (www.eternalsecond.com)
Personal Website (www.chimericdream.com)
Go to Top of Page

kolucoms6
Average Member

845 Posts

Posted - 25 January 2008 :  20:02:22  Show Profile

In left.asp(Common file for left side frame) I have below codes :

if session("Password") = "" or session("EmailID") ="" then
response.redirect "Default.asp"
end if

And In default.asp, left.asp included as an Include file.

Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 25 January 2008 :  21:31:45  Show Profile
quote:
Originally posted by muzishun

Davio... are you feeling ok? That seemed uncharacteristic of you.

Well, based on his first post, he asking why the default.asp page looks back to itself. After we tried sharing with him the conditions where the forum would do that, he said this is not forum related. Sooo any other reason would be how phy1729 described it, which was self explanatory. Found it highly amusing, hence my post. Sorry if you didn't see the humour.

Support Snitz Forums
Go to Top of Page

bobby131313
Senior Member

USA
1163 Posts

Posted - 25 January 2008 :  21:36:36  Show Profile  Visit bobby131313's Homepage
See, I thought maybe you finally got your computer fixed the way you want it.

Switch the order of your title tags
Go to Top of Page

kolucoms6
Average Member

845 Posts

Posted - 25 January 2008 :  22:05:59  Show Profile
I posted this topic under :
quote:
Code Support: ASP (Non-Forum Related)

Edited by - kolucoms6 on 25 January 2008 22:06:46
Go to Top of Page

phy1729
Average Member

USA
589 Posts

Posted - 25 January 2008 :  22:56:03  Show Profile
After you told us that this wasn't Snitz related I realized that but by that time Davio posted anyway sorry about that.
Also back on topic the code you posted will loop if session("Password") or session("EmailID") is null because you don't set both when it redirects. If I'm being condescending sorry I don't mean to be it just seems that's what the question is.
Go to Top of Page

kolucoms6
Average Member

845 Posts

Posted - 26 January 2008 :  08:01:47  Show Profile

"you don't set both when it redirects"

Sorry but I didnt understand the above statement.
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Next Page
 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.3 seconds. Powered By: Snitz Forums 2000 Version 3.4.07