how do I return to the same exact page after posting a form?
Posted
by William Calleja
on Stack Overflow
See other posts from Stack Overflow
or by William Calleja
Published on 2010-03-16T15:29:03Z
Indexed on
2010/03/16
15:31 UTC
Read the original article
Hit count: 213
I'm posting data to a page called process.aspx that handles some business logic with the following code:
<%@ Page Language="C#" %>
<%
MyData.process(Request);
Response.Redirect("")
%>
this page I will be calling from a variety of pages. Is there some way of knowing from which page my form was submitted? I was thinking something along the lines of writing:
<form id="frmSystem" method="post" action="process.aspx?page=<%= %>">
However I don't know what to write in between the <%= %>
to get the current page name. Can anyone help please?
© Stack Overflow or respective owner