Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Single Sign-On for Login Page 1

Status
Not open for further replies.

xcaliber2222

Programmer
Apr 10, 2008
70
US
Hello,
I have a Classic ASP page that takes a user_id and password then does a form post to the next page. I have an ASP.NET page that has a link to this page, and this works fine. I am trying to pass the user_id and password to the Classic ASP page but it isn't taking the params I'm passing it. I've tried adding these directly in the url address:
but I just get "page cannot be found". Is there something I need to do on the Classic ASP page to accept these parameters? There is also an ssl.asp include which is being used by the Classis ASP page, but I don't think that's the problem. here is the code for that:
Code:
<%
if Request.ServerVariables("LOCAL_ADDR") = "X.X.X.11" then  
	if Request.ServerVariables("SERVER_PORT") = 80 then
		Dim strSecureURL
		strSecureURL = "[URL unfurl="true"]https://"[/URL]
		strSecureURL = strSecureURL & 	Request.ServerVariables("SERVER_NAME")
		strSecureURL = strSecureURL & Request.ServerVariables("URL")
		if (Request.ServerVariables("QUERY_STRING") <> "") then
			strSecureURL = strSecureURL & "?" & Request.ServerVariables("QUERY_STRING")
		end if
		Response.Redirect strSecureURL
	end if
end if
%>

If anyone can give me some advice or suggestions I would really appreciate your time.

Thanks,
Alejandro
 
Make sure you turn off friendly HTML errors in your browser
That message shows where there is a coding error and your browser wants to protect you from seeing the read message.

If you do have that off and the page still won't load, can you load any another .asp pages? If your using IIS you have to tell it to allow both asp and aspx pages.

If that's also a yes, then your browser and web server should be set correctly. So it has to be a coding error. Try removing your code above and see if the page loads.
 
Thanks Candyman, but everything seems to be in order but I still get page not found. I've even tried changing the post to a get and taking in a Request.QueryString for the action, and trying to Response.Write out the values, but still page not found. Not sure what to do next.
 
take a normal HTML page, and rename it with .asp instead of .htm If that page loads and works then it's a coding issue, if it doesn't then it's your web server.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top