Each time I test IsPostBack in PageLoad (), it returns false if post data is present. My first reaction was to check if the runat = "server" tag was on the form or submit button. However, they were all added, and the WriteEmail.aspx page still always returns false for IsPostBack. I also tried using IsCrossPagePostBack instead of IsPostBack.
ListInstructors.aspx:
<form runat="server" method="post" action="WriteEmail.aspx"> ... <input type="submit" id="writeEmail" value="Write Email" runat="server" /> </form>
WriteEmail.aspx:
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { Response.Redirect("ListInstructors.aspx"); } }
vanstee
source share