Results 1 to 6 of 6

Thread: Listbox properties

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2001
    Location
    Indiana
    Posts
    612

    Listbox properties

    In a datagrid, you can set it so the alternating lines are a different color.

    In ASP .Net, can you do this same thing to a list box?

    Also, what would be a good book to buy that would tell me the properties of all these controls, and what they mean?

    Core reference of VB .Net my MS Press?

    Thanks
    David Wilhelm

  2. #2
    C# Aficionado Lord_Rat's Avatar
    Join Date
    Sep 2001
    Location
    Cave
    Posts
    2,497
    Unfortunately, no.

    I've learned from experiece here that anything using the <ASP:LISTITEM object cannot be assigned styles from ASP.NET

    As a work-around, I have managed to do so with JavaScript, but it's more work usually than it's worth.
    Need to re-register ASP.NET?
    C:\WINNT\Microsoft.NET\Framework\v#VERSIONNUMBER#\aspnet_regiis -i

    (Edit #VERSIONNUMBER# as needed - do a DIR if you don't know)

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2001
    Location
    Indiana
    Posts
    612
    Ok, I guess I really need to bone up on Java script and HTML. The ASP tools are nice, but not enough for what I need.

    On a differant topic, when I post data to my web page, a new page is created.

    Is it possible for me to just clear the list box I have, then post new data to the same web page?

    If so, how?

    Thanks!
    David Wilhelm

  4. #4
    C# Aficionado Lord_Rat's Avatar
    Join Date
    Sep 2001
    Location
    Cave
    Posts
    2,497
    lstBox.items.clear will clear the list box.
    Need to re-register ASP.NET?
    C:\WINNT\Microsoft.NET\Framework\v#VERSIONNUMBER#\aspnet_regiis -i

    (Edit #VERSIONNUMBER# as needed - do a DIR if you don't know)

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2001
    Location
    Indiana
    Posts
    612
    Thanks Lord_Rat, that works fine.

    What about reposting the same page and not getting a new page everytime I repost to the list box.

    Is that possible?
    David Wilhelm

  6. #6
    C# Aficionado Lord_Rat's Avatar
    Join Date
    Sep 2001
    Location
    Cave
    Posts
    2,497
    Not sure what you mean??

    By default, ASP.NET should repost to the same page...??
    Need to re-register ASP.NET?
    C:\WINNT\Microsoft.NET\Framework\v#VERSIONNUMBER#\aspnet_regiis -i

    (Edit #VERSIONNUMBER# as needed - do a DIR if you don't know)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width