943,879 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Unsolved
  • Views: 396
  • ASP.NET RSS
Aug 27th, 2009
0

Query string issue

Expand Post »
I am making my website about a radio station, and it's currently PHP-based, but I am testing an ASP-based one on my dev machine.

This is the PHP querystring code:
<?
$i=$_GET['DJID'];
switch ($i) {
case 1:
    include("dj1.php");
    break;
case 2:
    include("dj2.php");
    break;
case 3:
    include("dj3.php");
    break;
default:
    echo "page not found!!!!";
}
?>

Using that produces:
http://www.localhostradiostation.co....wdj.php?DJID=1
(this is a virtual host mapped via httpd.conf and
however, I've now got Apache as a reverse proxy, so I can map to ASP sites too on my IIS!)

I want to try and replicate this into my other version, which is at
http://www.localhostradiostation2.co.uk (mapped using the httpd.conf and reverse proxy method!)

I would like to know what the ASP equivalent is for this, as I have tried to get querystrings working, but only at the most basic level for ASP - I'm having to learn this so I can ensure I'm competent in both for my website design/management skills!

Please can anyone help me with the ASP code for this one?

Thanks!
Similar Threads
Reputation Points: 15
Solved Threads: 0
Junior Poster
whitestream6 is offline Offline
169 posts
since Nov 2008
Aug 27th, 2009
0

Re: Query string issue

My httpd.conf entry for this site:
NameVirtualHost *:80

<VirtualHost *:80>
    ServerName localhostradiostation2.co.uk
    ServerAlias www. localhostradiostation2.co.uk
    DocumentRoot C:\inetpub\wwwroot\localhostradio2
    DefaultType text/html
    <Directory "C:\inetpub\wwwroot\localhostradio2">
        Options Indexes FollowSymLinks
        AllowOverride none
        Order allow,deny
        Allow from all
    </Directory>
    # sends all requests made to port 80 to another port 8080
    ProxyPass / http://www.localhostradiostation2.co.uk:8002/
    #makes proper changes to server-side redirection header
    ProxyPassReverse / http://www.localhostradiostation2.co.uk:8002/ 
</VirtualHost>

That's the relevant extract from the httpd.conf mappings.
Last edited by whitestream6; Aug 27th, 2009 at 6:08 am.
Reputation Points: 15
Solved Threads: 0
Junior Poster
whitestream6 is offline Offline
169 posts
since Nov 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: how to run the application in LAN using ip address.
Next Thread in ASP.NET Forum Timeline: Database Experts Opinions please.





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC