T
Tides
My new page just won't fire the Update, Insert or Delete function on
the BLL.
I'm newish to ASP.NET and this may be a simple thing I have forgotten,
but its driving me up the wall.
I have other pages that work fine for this functionality.
Here is the ObjectDataSource:
<asp:ObjectDataSource ID="StaffDetailsDataSource" runat="server"
DeleteMethod="DeleteStaff" InsertMethod="InsertStaff"
OldValuesParameterFormatString=""
SelectMethod="GetStaffByStaffID"
TypeName="StaffBLL" UpdateMethod="UpdateStaff">
<DeleteParameters>
<asparameter Name="ID" Type="Int32" />
</DeleteParameters>
<UpdateParameters>
<asparameter Name="ID" Type="Int32" />
<asparameter Name="CompanyID" Type="Int32" />
<asparameter Name="LoginName" Type="String" />
<asparameter Name="FirstName" Type="String" />
<asparameter Name="LastName" Type="String" />
<asparameter Name="ChargeRate" Type="Decimal" />
<asparameter Name="Position" Type="String" />
<asparameter Name="Gender" Type="String" />
<asparameter Name="Birthday" Type="DateTime" />
<asparameter Name="AccessLevel" Type="Int32" />
<asparameter Name="AlarmCode" Type="String" />
<asparameter Name="Notes" Type="String" />
<asparameter Name="AddressDetailsID" Type="Int32" />
<asparameter Name="BankDetailsID" Type="Int32" />
<asparameter Name="LoginEmailAddress" Type="String" />
<asparameter Name="Image" Type="Object" />
</UpdateParameters>
<SelectParameters>
<asp:QueryStringParameter Name="ID" QueryStringField="ID"
Type="Int32" />
</SelectParameters>
<InsertParameters>
<asparameter Name="CompanyID" Type="Int32" />
<asparameter Name="LoginName" Type="String" />
<asparameter Name="FirstName" Type="String" />
<asparameter Name="LastName" Type="String" />
<asparameter Name="ChargeRate" Type="Decimal" />
<asparameter Name="Position" Type="String" />
<asparameter Name="Gender" Type="String" />
<asparameter Name="Birthday" Type="DateTime" />
<asparameter Name="AccessLevel" Type="Int32" />
<asparameter Name="AlarmCode" Type="String" />
<asparameter Name="Notes" Type="String" />
<asparameter Name="AddressDetailsID" Type="Int32" />
<asparameter Name="BankDetailsID" Type="Int32" />
<asparameter Name="LoginEmailAddress" Type="String" />
<asparameter Name="Image" Type="Object" />
</InsertParameters>
</asp:ObjectDataSource>
This is linked to a DetailsView that loads the data correctly.
Please let me know if you can help.
the BLL.
I'm newish to ASP.NET and this may be a simple thing I have forgotten,
but its driving me up the wall.
I have other pages that work fine for this functionality.
Here is the ObjectDataSource:
<asp:ObjectDataSource ID="StaffDetailsDataSource" runat="server"
DeleteMethod="DeleteStaff" InsertMethod="InsertStaff"
OldValuesParameterFormatString=""
SelectMethod="GetStaffByStaffID"
TypeName="StaffBLL" UpdateMethod="UpdateStaff">
<DeleteParameters>
<asparameter Name="ID" Type="Int32" />
</DeleteParameters>
<UpdateParameters>
<asparameter Name="ID" Type="Int32" />
<asparameter Name="CompanyID" Type="Int32" />
<asparameter Name="LoginName" Type="String" />
<asparameter Name="FirstName" Type="String" />
<asparameter Name="LastName" Type="String" />
<asparameter Name="ChargeRate" Type="Decimal" />
<asparameter Name="Position" Type="String" />
<asparameter Name="Gender" Type="String" />
<asparameter Name="Birthday" Type="DateTime" />
<asparameter Name="AccessLevel" Type="Int32" />
<asparameter Name="AlarmCode" Type="String" />
<asparameter Name="Notes" Type="String" />
<asparameter Name="AddressDetailsID" Type="Int32" />
<asparameter Name="BankDetailsID" Type="Int32" />
<asparameter Name="LoginEmailAddress" Type="String" />
<asparameter Name="Image" Type="Object" />
</UpdateParameters>
<SelectParameters>
<asp:QueryStringParameter Name="ID" QueryStringField="ID"
Type="Int32" />
</SelectParameters>
<InsertParameters>
<asparameter Name="CompanyID" Type="Int32" />
<asparameter Name="LoginName" Type="String" />
<asparameter Name="FirstName" Type="String" />
<asparameter Name="LastName" Type="String" />
<asparameter Name="ChargeRate" Type="Decimal" />
<asparameter Name="Position" Type="String" />
<asparameter Name="Gender" Type="String" />
<asparameter Name="Birthday" Type="DateTime" />
<asparameter Name="AccessLevel" Type="Int32" />
<asparameter Name="AlarmCode" Type="String" />
<asparameter Name="Notes" Type="String" />
<asparameter Name="AddressDetailsID" Type="Int32" />
<asparameter Name="BankDetailsID" Type="Int32" />
<asparameter Name="LoginEmailAddress" Type="String" />
<asparameter Name="Image" Type="Object" />
</InsertParameters>
</asp:ObjectDataSource>
This is linked to a DetailsView that loads the data correctly.
Please let me know if you can help.