I have a asp.net website where I created a new page with a 'submit' button, double clicked on that, and got associated code. But when I run the program, I get the following error.
"Handles clause requires a WithEvents variable defined in the containing type or
one of its base types."
I've pasted a fragment of the code here:
Partial Public Class MailAlvar
Inherits System.Web.UI.Page
Imports System.Net.Mail
Imports System.Data
Imports System.Data.SqlClient
Imports System
Imports System.IO
Imports System.Text
Imports System.Security.Cryptography
Partial Public Class MailAlvar
Go to the complete details ...