Author |
Topic  |
Reinsnitz
Snitz Forums Admin
    
USA
3545 Posts |
Posted - 12 October 2000 : 16:44:40
|
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> |
 |
|
Da_Stimulator
DEV Team Forum Moderator
    
USA
3373 Posts |
Posted - 12 October 2000 : 16:53:19
|
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 -- |
 |
|
Reinsnitz
Snitz Forums Admin
    
USA
3545 Posts |
Posted - 12 October 2000 : 17:01:14
|
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> |
 |
|
Reinsnitz
Snitz Forums Admin
    
USA
3545 Posts |
Posted - 12 October 2000 : 17:02:09
|
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> |
 |
|
John
Junior Member
 
USA
427 Posts |
Posted - 17 October 2000 : 12:31:53
|
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> |
 |
|
Da_Stimulator
DEV Team Forum Moderator
    
USA
3373 Posts |
Posted - 17 October 2000 : 19:33:26
|
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> |
 |
|
Reinsnitz
Snitz Forums Admin
    
USA
3545 Posts |
Posted - 17 October 2000 : 20:40:48
|
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> |
 |
|
zodc
Starting Member
Japan
16 Posts |
Posted - 26 October 2000 : 05:01:55
|
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... |
 |
|
Topic  |
|