I have a script in ASP.NET that works fine from simple HTML form and returns
acknowledgement page. But when I call from Flash ActionScript code, it does
not return control (sending back response "return=ok") and Flash movie hangs.
In fact, none of my server side scripts in ASP.NET are working, meaning
returning control back to Flash.
ASP.NET code attached.
I have been struggling for weeks to make serverside scripts in ASP.NET work
with Flash. Is there something simple about Flash and ASP.NET scripts that I
have missed? Any help desperately appreciated.
Thanks
Jay
<%@ Page Language="VB" EnableSessionState="False"
EnableViewState="False" Trace="False" Debug="True"%>
<%@ Import Namespace="System.Web.Mail" %>
<script language="VB" runat=server>
sub Page_Load
'Response.Write(Request.Form("Email"))
Dim objMail As New MailMessage()
objMail.From = "info@test.com"
objMail.To = Request.Form("Email")
objMail.Subject = Request.Form("Subject")
objMail.Body = Request.Form("Message")
objMail.BodyFormat = MailFormat.Text
SmtpMail.SmtpServer.insert(0,"127.0.0.1")
SmtpMail.SmtpServer = "127.0.0.1"
'SmtpMail.SmtpServer = "mail.test.com"
objMail.Fields.Add("
http://schemas.microsoft.com/cdo/configuration/smtpconnectio ntimeout", 60)
SmtpMail.Send(objMail)
lbl1.Text="Mail Sent to " & Request.Form("Email")
Response.Write("result=ok")
End Sub
</script>
<html>
<head>
</head>
<body>
<form runat="server">
<h3><asp:label id="lbl1" runat="server" /></h3>
</form>
</body>
</html>