Re: Capture New and Delete Events

  •  05-14-2009, 1:43 PM

    Re: Capture New and Delete Events

    I am tryint to capture the event in the code behind.  The save works
     

    Public Sub Editor1_PostBackCommand(ByVal Sender As Object, ByVal e As System.Web.UI.WebControls.CommandEventArgs)

    If String.Compare(e.CommandName, "Save", True) = 0 Then

    'Label1.Text = "<h3>You just clicked the <font color=red>Save</font> button</h3>"

    Update()

    ElseIf String.Compare(e.CommandName, "New", True) = 0 Then

    Insert()

    ElseIf String.Compare(e.CommandName, "Delete", True) = 0 Then

    delete()

    Else

    Label1.Text = "<h3>Just recived the bubbled command : " + e.CommandName + " </h3>"

    End If

    End Sub

View Complete Thread