displaying a textboxes vs. listboxes depending on postback condition

Discussion in 'ASP .Net' started by jason, Nov 4, 2003.

  1. jason

    jason Guest

    I have an asp.net (vb) page with a form. Under some circumstances I'd
    like to
    offer a textbox and in other a listbox in the same exact spot and
    field width.

    I'd like to do this without having two asp.net pages, and without
    having to dynamically write out the form in my asp.net code.

    Is there any other way to do this?

    Thanks for any help or info.
     
    jason, Nov 4, 2003
    #1
    1. Advertisements

  2. jason

    jason Guest

    figured it out.

    listbox1.visible = false
     
    jason, Nov 5, 2003
    #2
    1. Advertisements

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.