Posted on: 10/7/2015 12:48:31 PM | Views : 1203

I have syntax running in the page load event, and I am closing the page through javascript.  Everything executes as it should, except it sends the email to the recipients twice. Here is my syntax, what do I alter to have this email only sent 1 time?/???  (This is C# & ASP.Net)

<%@ Page Title="Home Page" Language="C#" MasterPageFile="~Site.master" CodeFile="Default.aspx.cs" Inherits="_Default" %> <asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server"> </asp:Content> public partial class _Default : Page { protected String sSMTPServer = System.Configuration.ConfigurationManager.AppSettings["smtpserver"]; protected void Page_Load(object sender, EventArgs e) { string close = @"<script type='text/javascript'> window.returnValue = true; window.close( ...

Go to the complete details ...