1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Help with contact form selectboxes

Help with contact form selectboxes

2 posts, 0 answered
  1. Rainier
    Rainier avatar
    8 posts
    Registered:
    04 Dec 2008
    04 Dec 2008
    Link to this post
    Hi there,

    I am trying to create a contact form within sitefinity that contains a dropdown selectbox in the form.

    Does anyone know the asp coding to create a selectbox?
    Here is an image of what I am trying to create.
    - Selectbox image

    Thanks in advance.

    - RJ.


  2. SelAromDotNet
    SelAromDotNet avatar
    912 posts
    Registered:
    18 Jul 2012
    04 Dec 2008
    Link to this post
    i believe the control you're looking for is the asp.net DropDownlist. you can either populate it manually or programatically, and even bind database data to it.

    here's a helpful resource I've found:

    http://www.devcity.net/Articles/68/1/aspnet_dropdown.aspx

    i hope this is what you were looking for and that this was helpful.

    to retreive the selected value on posting, simply use ddl.SelectedValue where ddl is the ID of your control.
2 posts, 0 answered