Re: Lisboxes asp .net ---> Index problems

From: Alvin Bruney [MVP] (vapor)
Date: 03/29/04


Date: Mon, 29 Mar 2004 10:21:09 -0600

2 things you might want to check.
The listbox actually has a selection
You have checked for Page.IsPostBack in your page_load routine.

See if this helps

-- 
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/3he3b
"pete" <pgradnitzer@aon.at> wrote in message
news:5b5a2f75.0403290130.3390a88e@posting.google.com...
> Hi all!
>
> Can somebody help me about the System.Web.UI.WebControls.ListBox???
> My Problem is that when i call the Function "SelectedIndex()", this
> function always return -1. Somebody no the problem!
>
> reegards
>
> pete


Relevant Pages

  • Re: Tk Listbox - Selected Item ?
    ... Martin Franklin wrote: ... >> I am having trouble understanding the methods for the Listbox from Tk. ... > provided the listbox is in single selection mode or only one item is ...
    (comp.lang.python)
  • Re: How do I select multiple Items in ListBox with coding alone
    ... On a Form Load I set the DataSource of my ListBox and looped through the ... The ListBox Selection mode was set to MultiSimple, ... I moved the selection routine from the Form Load event to Activate and Focus ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: when a listbox multi-select is set to none
    ... listbox that only allows one selection at a time. ... Otherwise, in a multi-select listbox, you could just ... >> I know how to create a vb routine to clear a listbox when it's ...
    (microsoft.public.access.formscoding)
  • Re: when a listbox multi-select is set to none
    ... My solution clears the selection! ... "jonefer" wrote in message ... > listbox that only allows one selection at a time. ... >> I know how to create a vb routine to clear a listbox when it's ...
    (microsoft.public.access.formscoding)
  • RE: when a listbox multi-select is set to none
    ... I didn't clarify, I'm sorry... ... listbox that only allows one selection at a time. ... Otherwise, in a multi-select listbox, you could just ... > how do I create a routine either in a button, or in an event to clear a ...
    (microsoft.public.access.formscoding)

Loading