classic asp - response.redirect and response.write problem

Posted by apg1985 on Stack Overflow See other posts from Stack Overflow or by apg1985
Published on 2010-04-13T14:17:05Z Indexed on 2010/04/13 14:23 UTC
Read the original article Hit count: 441

Hi People,

The problem if someone types into the search box a location it goes through to that location page but if they type in a location thats not found or they dont type anything in I need it to redirect back to the homepage (index.asp) and display "whoops we couldnt find that" in the search box (input field)

This is the vb

    Case Else
    response.redirect "index.asp?whoops=whoops we couldnt find that"
End Select

Then in the value of the input field I have

value="<% =whoops %>"

This doesnt work by the way, first is this the best way of doing it because id rather not have the error message in the url. This there away of posting the error as a variable and then calling it into the input field like,

<% =whoops %>

© Stack Overflow or respective owner

Related posts about response.redirect

Related posts about variable