![]() |
| ||
| listbox and selectedvalue urgent hi, I am trying to add a value to listbox. i use lstlistbox.items.add(new listitem(value)). this adds it fine in click event of button, but i need to use the selectedvalue of the listbox again in same event. as the listbox item doesnt show i cant use selectedvalue. is there a way to first populate the listbox with its selected value then somehow use the value. thanks |
| ||
| Re: listbox and selectedvalue urgent I'm sorry but I don't understand your problem. Lets assume you have the below stated example, it adds a few items to the listbox and after a selection is done, it responds the selected value to the page..... Is thát what you achieved? Partial Class _Default pagecode; <%@ Page |
| ||
| Re: listbox and selectedvalue urgent hii Add the code code in your .aspx <asp:DropDownList id="ddl1" runat="server" AutoPostBack="True" AppendDataBoundItems="True" > And you can bind additional values at run time from database and can use selected Private Sub ddl1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles ddl1.SelectedIndexChanged Mark as solved if it helps you!!! Regards |
| ||
| Re: listbox and selectedvalue urgent can u specify problem |
| All times are GMT -4. The time now is 11:02 am. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC