Old 03-04-2008, 07:14   #1 (permalink)
mx
fucksocks™
 
mx's Avatar
 
Join Date: Jun 2005
Location: in the boosh
Posts: 1,507
PHP to ASP. Super simple query

I'm converting some php into asp. It's very simple stuff but I don't have a test server.
Would someone please confirm that I'm not missing anything obvious.

PHP Code:
<?php $page "Page Name"?>
<?php 
if($page) { echo " | $page";} ?>

to

Code:
<% Dim pageName pageName = "Page Name"; %> <% If pageName Then Response.Write(" | pageName") End If %>

Thanks
__________________

Last edited by mx : 03-04-2008 at 07:47.
  Reply With Quote
Old 05-04-2008, 15:17   #2 (permalink)
d3mcfadden
Senior Member
 
d3mcfadden's Avatar
 
Join Date: Apr 2005
Location: -
Posts: 686
Send a message via AIM to d3mcfadden
no.. thats wrong. Change to:

Code:
<% Dim pageName pageName = "" pageName = "Page Name"; %> <% If (pageName <> "") Then Response.Write(" | " + pageName) End If %>


how do you not have a test server? If you have access to a windows machine you have a test server
  Reply With Quote
Old 06-04-2008, 16:50   #3 (permalink)
mx
fucksocks™
 
mx's Avatar
 
Join Date: Jun 2005
Location: in the boosh
Posts: 1,507
Thanx. And no I don't have access to a windows machine or server!
__________________
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8