I am trying to determine if the user clicked the Save or Send button from the toolbar.
HEre's what I have:
Dim C As System.Web.UI.WebControls.CommandEventArgs
If String.Compare(C.CommandName, "Save", True) = 0 Then
End If
If String.Compare(C.CommandName, "Send", True) = 0 Then
END IF
WHAT I GET BACK IS THIS
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
Line 143: Dim C As System.Web.UI.WebControls.CommandEventArgs
Line 144:
Line 145: If String.Compare(C.CommandName, "Save", True) = 0 Then
Line 146: MsgBox("ITS A SAVE")
Line 147:
|
ANY IDEAS???????????????????