Author: bean79au | Posted on: 3/5/2009 12:07:39 AM | Views : 226

Hi All,

 I have a contact form that i am using 2 panels, one to collect information and one to put a confirmation message on the screen once the email has been sent.  in my code behind i am using IsPostBack to tell whether the user has submitted the form or not.  The problem i am having is that i have some ddl's that have autopostback enabled to show/hide some fields and it is firing the IsPostBack and trying to send the email.  Is there any wayaround this?

Thanks,

Beau

Contact.aspx <%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Contact.aspx.cs" Inherits="Contact" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>

<asp:Conte ...

Go to the complete details ...