I have two tables. Disciplines and DisciplineReveiwers
I assign users (reviewers) to a discipline. The source listbox lists the disciplines and the destination listbox lists the DisciplineReviewers. Populating the boxes and transferring items works well. THe problem is that it does not update the database when doing so. Can some one take a look and tell me what I'm doing wrong? I don't want to update the Disciplines table, just the DisciplinesReviwer table.
I assign users (reviewers) to a discipline. The source listbox lists the disciplines and the destination listbox lists the DisciplineReviewers. Populating the boxes and transferring items works well. THe problem is that it does not update the database when doing so. Can some one take a look and tell me what I'm doing wrong? I don't want to update the Disciplines table, just the DisciplinesReviwer table.
<ul class="listbox-list"> |
<li class="listbox-item"> |
<telerik:RadListBox ID="radListDisciplines" runat="server" AllowTransfer="True" |
AutoPostBackOnDelete="True" AutoPostBackOnTransfer="True" DataSourceID="sqlListDisciplines" |
TransferToID="radListAssigned" DataTextField="DisciplineName" DataValueField="DisciplineId" Width="300px" DataKeyField="DisciplineId"> |
</telerik:RadListBox> |
</li> |
<li class="listbox-item"> |
<telerik:RadListBox ID="radListAssigned" runat="server" |
DataSourceID="sqlReviewersDisciplines" |
DataTextField="DisciplineName" DataValueField="DisciplineId" AllowDelete="True" |
AutoPostBack="True" AutoPostBackOnDelete="True" AutoPostBackOnTransfer="True" |
DataKeyField="DisciplineReviewerId" TransferToID="radListDisciplines" Width="300px"> |
</telerik:RadListBox> |
</li> |
</ul> |
<div style="clear:both;"></div> |
<asp:SqlDataSource ID="sqlListDisciplines" runat="server" ConnectionString="<%$ ConnectionStrings:SiteSqlServer %>" |
SelectCommand="Dej_DisciplineList" SelectCommandType="StoredProcedure"> |
<SelectParameters> |
<asp:ControlParameter ControlID="hidOrgId" Name="OrgId" PropertyName="Value" Type="Int32" /> |
</SelectParameters> |
</asp:SqlDataSource> |
<asp:SqlDataSource ID="sqlReviewersDisciplines" runat="server" ConnectionString="<%$ ConnectionStrings:SiteSqlServer %>" |
SelectCommand="Dej_ListDisciplineReviewerByReviewer" |
SelectCommandType="StoredProcedure" |
DeleteCommand="Dej_DisciplineReviewerDelete" |
DeleteCommandType="StoredProcedure" |
InsertCommand="Dej_DisciplineReviewerAdd" |
InsertCommandType="StoredProcedure"> |
<SelectParameters> |
<asp:ControlParameter ControlID="hidReviewerId" Name="UserId" PropertyName="Value" |
Type="Int32" /> |
</SelectParameters> |
<DeleteParameters> |
<asp:Parameter Name="DisciplineReviewerId" Type="Int32" /> |
</DeleteParameters> |
<InsertParameters> |
<asp:Parameter Name="DisciplineId" Type="Int32" /> |
<asp:Parameter Name="ReviewerId" Type="Int32" /> |
</InsertParameters> |
</asp:SqlDataSource> |