phpnstuff
03-05-2008, 06:35 PM
This is basic and works:
<% Response.Write("http://www.website.com" & Request.ServerVariables("URL")) %>
Is there a easier method to get the full url string in ASP.
I need 2 if statements, one if its https or http change the string, and the other is if only a few pages have query strings I want to do if query string exisits then add ? QueryString otherwise nothing (I don't want to have a "?" on every page http://www.website.com/default.asp? when there is no query, only if there is.
Rather than including this entire code everytime for every link I specify I want pulled, can we do a simple response.write(Function) ?
<%
Funtion =
%>
<% response.write(Function) %>
I'm new to ASP.
<% Response.Write("http://www.website.com" & Request.ServerVariables("URL")) %>
Is there a easier method to get the full url string in ASP.
I need 2 if statements, one if its https or http change the string, and the other is if only a few pages have query strings I want to do if query string exisits then add ? QueryString otherwise nothing (I don't want to have a "?" on every page http://www.website.com/default.asp? when there is no query, only if there is.
Rather than including this entire code everytime for every link I specify I want pulled, can we do a simple response.write(Function) ?
<%
Funtion =
%>
<% response.write(Function) %>
I'm new to ASP.