I have edit customer page. When user click on update record button, the record is not updated. Why?
Code fragment is here.
select Customer.service from customer where customerId=1
If Not IsDBNull(rd("service ")) Then service = rd("service ")
ddlservice.SelectedValue = Service
When user selected different Service from dropdown list
I have btnUpdate
sql = "Update customer set Service='" & ddlservice.SelectedValue.t
ostring & " where customerId=1"
Why customer table is not updated?
Thanks in advance.
Start Free Trial