This doesnt work...when the button's server side click event is fired...I cannot assign a client side event to fire afterwards...its too late at that point....
Protected Sub cmdProcess_Click1(ByVal sender As Object, ByVal e As System.EventArgs) Handles cmdProcess.Click
If ddlChoice.SelectedValue = 0 Then
'insert
ElseIf ddlChoice.SelectedValue = 1 Then
'delete confirmation with yes or no
'if yes then call function to delete
'if no then exit sub
End If
End Sub
Main Topics
Browse All Topics





by: samtran0331Posted on 2008-01-16 at 08:04:16ID: 20673019
check the dropdownlist's selectedvalue....
alue = "Dealocate" then
Like in the button click or the dropdownlist's selectedindexchanged method,
If dropdownlistname.selectedv
'do delete
end if