Click to See Complete Forum and Search --> : a file inside a file.


ozpo1
02-08-2007, 08:44 PM
Hi, I would like to know how to call a page from a different page using asp.

I'm asking the user for a category in one page and after he sumbit the form, I check the category with asp and then call the right page accordingly.

Is there a way to do it without "include", but rather with the original pages. (I don't want to switch all the html pages into inc pages)

Thanks, Oz.

Terrorke
02-09-2007, 04:23 AM
You can easily include an ASP or HTML file.
It doesn't have to be an .inc file.

It is even better to use .asp for your includes because .inc isn't parsed by the server and is send as clear text.

So why not use include??

russell
02-09-2007, 08:35 AM
sounds like Response.Redirect is the tool ozpo1 is looking for

Dim aaa
aaa = Lcase(Request.Form("aaa"))

Select Case aaa
Case "hello"
Response.Redirect "hello.asp"
Case "goodbye"
Response.Redirect "goodby.asp"
Case "login"
Response.Rdirect "login.asp"
Case Else
Response.Redirect "default.asp"
End Select

Terrorke
02-09-2007, 08:58 AM
ok response.redirect is also an option