I'm getting a message "Object moved here." when I try to use a drop-down at the top of my page to change the page's view settings. "here" is a link to the same page the drop-down posts to. This only happens on the pages where the view state isn't relevant - when there's actually something to view, it doesn't cause a problem.
The DHTML is pretty straight-forward. It occurs in a header.ascx control and looks like this:
The page the new view state is submitted to looks like this:
<%@ Page Language="vb" %> <script runat="server"> Sub Page_Load(obj as Object, E as EventArgs) dim newView as string = request.form("selViewType") dim from as string = request.urlReferrer.pathAndQuery().substring(17) session("viewType") = newView response.redirect(from) end sub </script>
I looked for other threads on this topic, but can't see how to apply the information within them to this situation. Any help?