Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old November 3rd, 2008, 12:10 PM
Registered User
Join Date: Nov 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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"



<asp:ControlParameter ControlID="tx_getmemberid" Name="memberid" PropertyName="Text"
Type="String" />



<asp:ListBox ID="lb_memberPlan" runat="server" DataSourceID="DS_bs_memberPlans"
DataTextField="planName" DataValueField="plan_id" Width="261px"

ondatabound="lb_memberPlan_DataBound" Height="97px">


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Requery a subform aware Access 3 December 27th, 2005 12:25 PM
Requery SubForm lizhaskin Access 1 November 28th, 2005 02:19 PM
rsSearch.Requery Lucian Ion Dreamweaver (all versions) 5 July 5th, 2005 07:54 PM
Requery Subforms JpJoe Access 3 January 13th, 2005 07:40 AM
requery subform bpete Access VBA 5 March 30th, 2004 09:31 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.