SEARCH YOUR SOLUTION HERE  

ASP.NET

Can anyone give me advice why the code below doesn't run

I get the error -
Compiler Error Message: BC30456: 'Submit' is not a member of 'ASP.feedback_aspx'.



Sub Feedback(Sender As Object, E As EventArgs)

Dim msg as New MailMessage()

msg.To = txtTo.Text
msg.From = txtFrom.Text
msg.Subject = txtSubject.Text
'msg.BodyFormat = MailFormat.Html
msg.BodyFormat = MailFormat.Text
msg.Body = txtBody.Text

SmtpMail.SmtpServer = "localhost"

SmtpMail.Send(msg)
msg = Nothing
lblMsg.Text = "An Email has been sent to " & txtTo.Text

End Sub



Feedback




To:
From:
Subject:
Body:





Posted On: Tuesday 1st of January 2013 09:55:43 PM Total Views:  152
View Complete with Replies