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)
 Link.asp
 New Topic  Topic Locked
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 2

Reinsnitz
Snitz Forums Admin

USA
3545 Posts

Posted - 12 October 2000 :  16:44:40  Show Profile  Visit Reinsnitz's Homepage  Send Reinsnitz an AOL message  Send Reinsnitz an ICQ Message  Send Reinsnitz a Yahoo! Message
Yup... it would be!

But this would be even more:
<pre id=code><font face=courier size=2 id=code>
<%
pageview = request("view")
title = "Site Title here"
sitelink = "Site link here"

if pageview = "link" then
pageidnum = request("goto")
Response.Write = "<FRAMESET ROWS=""7%,*"">" & vbcrlf & _
" <FRAME NAME=""glame"" SRC=""link.asp?view=top&link=" & pageidnum & """>" & vbcrlf & _
" <FRAME NAME=""link"" SRC=""" & pageidnum & """>" & vbcrlf & _
"</FRAMESET>" & vbcrlf
end if

if pageview = "top" then
pagelink = request("link")%>
Response.Write = "<html>" & vbcrlf & _
"<body bgcolor=""black"" text=""white"" link=""lime"" vlink=""yellow"">" & vbcrlf & _
"<strong>You have left " & title & ";</strong> " & vbcrlf & _
"<a href=""" & sitelink & """ target=""_top"">Back to " & title & "</a> " & vbcrlf & _
"| " & vbcrlf & _
"<a href=""" & pagelink & """ target=""_top"">Close Frame</a>" & vbcrlf & _
"</body>" & vbcrlf & _
"</html>" & vbcrlf

end if
if pageview = "" then
Response.Write = "You Reached this page by mistake, please click" & vbcrlf & _
"<a href=""" & sitelink & """ target=""_top"">here</a> to return to " & title & " " & vbcrlf
end if
%>
</font id=code></pre id=code>



<center>Reinsnitz (Mike)
<font color=red>><)))'></font id=red>

<font color=green>It's not a bug, it's a feature.</font id=green></center>
Go to Top of Page

Da_Stimulator
DEV Team Forum Moderator

USA
3373 Posts

Posted - 12 October 2000 :  16:53:19  Show Profile  Send Da_Stimulator an AOL message  Send Da_Stimulator a Yahoo! Message
ok I see what you mean. *opens up text editor and starts working on every page of his site*

What about this, instead of all those if then end if's, would it be better to replace the 'end if' and if's to elseif?
instead of <% end if %>
<% if variable="value" %>
would be
<%elseif variable="value" %>



-- http://aokingdom.com -- head webmaster/creator

-- He who has never made a mistake, has never made a discovery --
Go to Top of Page

Reinsnitz
Snitz Forums Admin

USA
3545 Posts

Posted - 12 October 2000 :  17:01:14  Show Profile  Visit Reinsnitz's Homepage  Send Reinsnitz an AOL message  Send Reinsnitz an ICQ Message  Send Reinsnitz a Yahoo! Message
I don't know... I usualy do:

<pre id=code><font face=courier size=2 id=code>
if this then
'stuff
else
if this then
'stuff
end if
end if
</font id=code></pre id=code>
<center>Reinsnitz (Mike)
<font color=red>><)))'></font id=red>

<font color=green>It's not a bug, it's a feature.</font id=green></center>
Go to Top of Page

Reinsnitz
Snitz Forums Admin

USA
3545 Posts

Posted - 12 October 2000 :  17:02:09  Show Profile  Visit Reinsnitz's Homepage  Send Reinsnitz an AOL message  Send Reinsnitz an ICQ Message  Send Reinsnitz a Yahoo! Message
but...

if then
elseif
elseif
end if

is probably what i'm going to be using from now on

<center>Reinsnitz (Mike)
<font color=red>><)))'></font id=red>

<font color=green>It's not a bug, it's a feature.</font id=green></center>
Go to Top of Page

John
Junior Member

USA
427 Posts

Posted - 17 October 2000 :  12:31:53  Show Profile
Instead of ElseIf's I usually do

Select Case sThis
Case "hi"
do_something
Case "bye"
do_something_else
End Select

<center><font size=1>Khoor#vqlw}#xvhuv/#wkdq{#iru#uhdglqj#=,
Decoder</font id=size1></center>
Go to Top of Page

Da_Stimulator
DEV Team Forum Moderator

USA
3373 Posts

Posted - 17 October 2000 :  19:33:26  Show Profile  Send Da_Stimulator an AOL message  Send Da_Stimulator a Yahoo! Message
BUG ALERT

click on the link in his signature above, you see what I mean :P

<font color=red>Da_Stimulator</font id=red>
<font color=red>http://aokingdom.com</font id=red>
<font color=blue>response.write("I know what you coded last summer!")</font id=blue>
Go to Top of Page

Reinsnitz
Snitz Forums Admin

USA
3545 Posts

Posted - 17 October 2000 :  20:40:48  Show Profile  Visit Reinsnitz's Homepage  Send Reinsnitz an AOL message  Send Reinsnitz an ICQ Message  Send Reinsnitz a Yahoo! Message
yea I know.. it sux... the bug that is...

but there are a lot of times where an:

if then
elseif
elseif
end if

is much more proper than a:

select case " "
case
case
end select

like when you want to set a variable before your case is utilized... etc etc... :)

<center>Reinsnitz (Mike)
<font color=red>><)))'></font id=red>

<font color=green>Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make your path straight.
-- Proverbs 3:5-6</font id=green></center>
Go to Top of Page

zodc
Starting Member

Japan
16 Posts

Posted - 26 October 2000 :  05:01:55  Show Profile
Very new <img src=icon_smile_blush.gif border=0 align=middle> to ASP, and am trying out Snitz Forum as a learning tool...<br>After reading this Thread, I couldn't hold silent any longer.<br><br><b>You Guys Are AWESOME<i>!</i> </b><img src=icon_smile_big.gif border=0 align=middle><br>Keep It Up!

ZO doujinclub - Coming Next Spring...
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Previous 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.1 seconds. Powered By: Snitz Forums 2000 Version 3.4.07