All Fields in ObjectDatasource Read Only

G

Guest

Why are all my fields ReadOnly? I have tested that both Trusted Security as
well as an SQL account has writes. Even in the Query Builder I am able to
change values, but not in this code.

<code>
<System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Update,
True)> Public Sub UpdateCo(ByVal ZIP As String, ByVal CoName As String, ByVal
Address As String, ByVal City As String, ByVal Contact As String, ByVal Phone
As String, ByVal Email As String, ByVal original_CompanyID As Integer)
Dim company As HCSS.CompaniesDataTable =
Adapter.GetCompanyById(original_CompanyID)
If company.Count = 0 Then
Exit Sub
End If

With company
.CoNameColumn = CoName
.ContactColumn = Contact
.PhoneColumn = Phone
.ZIPColumn = ZIP
.AddressColumn = Address
.CityColumn = City
.EmailColumn = Email
End With

</code>

any suggestions?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,781
Messages
2,569,616
Members
45,306
Latest member
TeddyWeath

Latest Threads

Top