i have to add values on click event of button1.I hv used the following code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
val = TextBox1.Text
If RadioButton1.Checked = True Then
rcvd = RadioButton1.Text
ElseIf RadioButton2.Checked = True Then
rcvd = RadioButton2.Text
End If
If RadioButton5.Checked = True Then
type = RadioButton5.Text
ElseIf RadioButton6.Checked = True Then
type = RadioButton6.Text
ElseIf RadioButton7.Checked = True Then
type = RadioButton8.Text
ElseIf RadioButton9.Checked = True Then
type = RadioButton9.Text
ElseIf RadioButton10.Checked = True Then
type = RadioButton10.Text
End If
Try
XXX = "update(select rcvd,amount,instype,chq,ucode,uname,remarks from fapark04 f inner join sumast04 s on f.party=s.account where s.abnmn=' " & val & " ' ) fa set fa.rcvd=' " & rcvd & " ', fa.amount= " & TextBox5.Text & " ,fa.instype='" & type & " ',fa.chq= " & TextBox9.Text & " ,fa.ucode=' " & TextBox12.Text & "',fa.uname='" & TextBox13.Text & "',fa.remarks='" & TextBox14.Text & "' "
cmd1 = New OracleCommand(XXX, con)
cmd1.ExecuteNonQuery()
Catch ex As Exception
MsgBox("A Run time error occured!!!", ex.ToString)
End Try
End Sub
this doesnot updates the records but when same querry is fired at the backened it updates the rows. when updated from front end it shows 0 rows updated. why is it so??
help..