how do I requery Listbox datasouce
hi, I've been trying to find out to get my list box to requery the datasource after I have added a record to the dataset (which means the listbox should show an additional record)
ideally i would trigger the requery from the Inserted even of the datasource (but open to suggestions if thats wrong)
this is my listbox code:
<asp:ObjectDataSource ID="DS_bs_memberPlans" runat="server"
OldValuesParameterFormatString="original_{0}" SelectMethod="Getds"
TypeName="yawn.coreTableAdapters.TA_bs_plan">
<SelectParameters>
<asp:ControlParameter ControlID="tx_getmemberid" Name="memberid" PropertyName="Text"
Type="String" />
</SelectParameters>
</asp:ObjectDataSource>
<p>
<asp:ListBox ID="lb_memberPlan" runat="server" DataSourceID="DS_bs_memberPlans"
DataTextField="planName" DataValueField="plan_id" Width="261px"
ondatabound="lb_memberPlan_DataBound" Height="97px">
</asp:ListBox>
Im new to .net so sure this is an easy question just cant find the answer anywhere. im using c# and VW devel 2008, if that makes a difference, thanks in advance for any advice
|