RE: listbox

Discussion in 'ASP .Net' started by Chris Moore, Jun 27, 2003.

  1. Chris Moore

    Chris Moore Guest

    Could you provide some source code to give an example of your problem?

    Chris Moore [msft]
    Visual Studio Update
    --------------------
    >From: "jeff" <>
    >Subject: listbox
    >Date: Mon, 23 Jun 2003 15:10:19 -0400
    >Lines: 9
    >X-Priority: 3
    >X-MSMail-Priority: Normal
    >X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
    >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
    >Message-ID: <>
    >Newsgroups: microsoft.public.dotnet.framework.aspnet
    >NNTP-Posting-Host: washdc3-ar4-4-35-058-209.washdc3.dsl-verizon.net

    4.35.58.209
    >Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msftngp13.phx.gbl
    >Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:154384
    >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
    >
    >i have an unbound webforms listbox. when i add items and select something,
    >selecteditem, selectedvalue are nothing. selectedindex is -1. if i us the
    >exact same code with an unbound combobox, it returns a selected item.
    >
    >wassup wit dat? i'm using .net 1.1 w/vb.
    >
    >jeff
    >
    >
    >
    Chris Moore, Jun 27, 2003
    #1
    1. Advertising

  2. Chris Moore

    jeff Guest

    i found the problem after a lot of digging. for whatever reason, i had to
    put my listbox.add("x") code inside of an if not ispostback.

    jeff

    "Chris Moore" <> wrote in message
    news:...
    > Could you provide some source code to give an example of your problem?
    >
    > Chris Moore [msft]
    > Visual Studio Update
    > --------------------
    > >From: "jeff" <>
    > >Subject: listbox
    > >Date: Mon, 23 Jun 2003 15:10:19 -0400
    > >Lines: 9
    > >X-Priority: 3
    > >X-MSMail-Priority: Normal
    > >X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
    > >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
    > >Message-ID: <>
    > >Newsgroups: microsoft.public.dotnet.framework.aspnet
    > >NNTP-Posting-Host: washdc3-ar4-4-35-058-209.washdc3.dsl-verizon.net

    > 4.35.58.209
    > >Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msftngp13.phx.gbl
    > >Xref: cpmsftngxa06.phx.gbl

    microsoft.public.dotnet.framework.aspnet:154384
    > >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
    > >
    > >i have an unbound webforms listbox. when i add items and select

    something,
    > >selecteditem, selectedvalue are nothing. selectedindex is -1. if i us

    the
    > >exact same code with an unbound combobox, it returns a selected item.
    > >
    > >wassup wit dat? i'm using .net 1.1 w/vb.
    > >
    > >jeff
    > >
    > >
    > >

    >
    jeff, Jun 27, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. blenderdude
    Replies:
    0
    Views:
    623
    blenderdude
    Aug 3, 2003
  2. DC Gringo
    Replies:
    0
    Views:
    382
    DC Gringo
    Apr 6, 2004
  3. kent
    Replies:
    1
    Views:
    850
    Andrew de la Harpe
    May 3, 2004
  4. Simon Prince
    Replies:
    2
    Views:
    3,302
    =?Utf-8?B?TWljaGFlbCBUYXlsb3I=?=
    Oct 19, 2004
  5. Chris Kettenbach

    Listbox selection to populate another listbox?

    Chris Kettenbach, Jun 15, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    1,629
    Chris Kettenbach
    Jun 16, 2005
Loading...

Share This Page