views:

20

answers:

1

Hello

I moved some of my old asp pages to new aspx website. In all of the old pages i used (for file example.asp):

Response.Status = "301 Moved Permanently"; 
Response.AddHeader("Location","http://www.domain.com/example.aspx");

The problem is that when the page domain.com/example.asp?param=value&param2=value2
is requested - the redirect ain't working...

Anyone...?

A: 

Add the query string parameters to the end of the location header, separated by a question mark. I believe it is in Request.Url.Query.

Smelch