troubleshooting Question

Why am I getting this compile error?

Avatar of westdh
westdhFlag for United States of America asked on
.NET ProgrammingMicrosoft Development
1 Comment1 Solution227 ViewsLast Modified:

my aspx page

  <asp:Button ID="Button1" runat="server" CssClass="CommandButton"
        EnableViewState="False" Text="Email event notices to registered attendees"
        ValidationGroup="EventRegAttendee" Width="269px" OnClick="EmailRegAttendeeNotices()"/>
--------------------------------------------------------------------------------------
my aspx inline code
----------------------------
   <script runat="server" language="vb">
       
       Protected Sub EmailRegAttendeeNotices_Click(ByVal sender As Object, ByVal e As EventArgs)
           
           Dim u As UserControl = TryCast(FindControl("EventDetails"), UserControl)
           Dim b As Label = TryCast(u.FindControl("lblTitle"), Label)
         
           If b IsNot Nothing Then
               Response.Write("Found lblTitle" + b.Text)
           End If
           
           Dim sb As New StringBuilder()
           'For Each dr As DataRow In ctlAttendees.grdAttendees.Rows
           'sb.Append(ctlAttendees.grdAttendees.DataKeys(dr.RowIndex)("strBadgeName").ToString())
           'sb.Append(",")
           'Next
          End Sub
   </script>
====================================================

Compile error?
=======================================================
Error      20      Argument not specified for parameter 'e' of 'Protected Sub EmailRegAttendeeNotices(sender As Object, e As System.EventArgs)'.      C:\Documents and Settings\Dennis West\Local Settings\Temp\VWDWebCache\cmaanorcalevents.com\DesktopModules\i2Integration - Events\user\Register.ascx      100      
Error      22      Argument not specified for parameter 'e' of 'Protected Sub EmailRegAttendeeNotices(sender As Object, e As System.EventArgs)'.      C:\Documents and Settings\Dennis West\Local Settings\Temp\VWDWebCache\cmaanorcalevents.com\DesktopModules\i2Integration - Events\user\Register.ascx      100      
Error      21      Argument not specified for parameter 'sender' of 'Protected Sub EmailRegAttendeeNotices(sender As Object, e As System.EventArgs)'.      C:\Documents and Settings\Dennis West\Local Settings\Temp\VWDWebCache\cmaanorcalevents.com\DesktopModules\i2Integration - Events\user\Register.ascx      100      
Error      23      Argument not specified for parameter 'sender' of 'Protected Sub EmailRegAttendeeNotices(sender As Object, e As System.EventArgs)'.      C:\Documents and Settings\Dennis West\Local Settings\Temp\VWDWebCache\cmaanorcalevents.com\DesktopModules\i2Integration - Events\user\Register.ascx      100      
=========================================================
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 1 Comment.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros