| | |
Query string issue
Please support our ASP.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Nov 2008
Posts: 54
Reputation:
Solved Threads: 0
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:
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!
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!
•
•
Join Date: Nov 2008
Posts: 54
Reputation:
Solved Threads: 0
My httpd.conf entry for this site:
That's the relevant extract from the httpd.conf mappings.
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.
![]() |
Similar Threads
- Help Needed to build a dynamic SQL query string in VB.NET (VB.NET)
- Dead query string urls to new extensionless urls (Linux Servers and Apache)
- Redirect old style url to seo url based on query string (Search Engine Optimization)
- query string (Ruby)
- encrypt and decrypt query string (VB.NET)
- Dynamic query string (Search Engine Optimization)
Other Threads in the ASP.NET Forum
- Previous Thread: how to run the application in LAN using ip address.
- Next Thread: Database Experts Opinions please.
| Thread Tools | Search this Thread |
.net 2.0 activexcontrol ajax alltypeofvideos appliances application asp asp.net bc30451 beginner bottomasp.net box browser button c# cac checkbox commonfunctions control dataaccesslayer database datagridview datagridviewcheckbox datalist deployment development dgv dialog dropdownlist dynamic dynamically edit embeddingactivexcontrol expose feedback fileuploader fill findcontrol flash form formatdecimal formview gridview gudi iis image javascript listbox login microsoft mobile mono mouse mssql news novell numerical opera panelmasterpagebuttoncontrols parent radio redirect registration relationaldatabases reportemail save schoolproject search security select sessionvariables silverlight smartcard smoobjects software sql-server sqlserver2005 ssl suse textbox tracking treeview unauthorized validatedate validation vb.net video videos view vista visualstudio web webapplications webdevelopemnt webdevelopment webprogramming webservice xsl youareanotmemberofthedebuggerusers





