More in this section

Forums / General Discussions / dropdown list problem

dropdown list problem

3 posts, 0 answered
  1. Nrv
    Nrv avatar
    20 posts
    Registered:
    16 Jan 2012
    03 Feb 2012
    Link to this post
    Hello,
    How to bind dropdown list with database & how to show it on page instead of form ?? Please help becuase i am very newer to sitefinity....
    Thnx in advance
    Regards,
    Nrv
  2. Adam
    Adam avatar
    16 posts
    Registered:
    29 Nov 2011
    03 Feb 2012
    Link to this post
    Nrv,

    I'm not sure about all of what you are saying, but I will try to help.

    First, what do you mean by "show it on page instead of form"? Really, all of your server side controls should be inside of a form.

    Second, if you are working with a custom control, (I assume you are) and using a standard drop down list, (not a RadComboBox, which works slightly differently) you need to override the OnPreRender event of your custom control, and set your drop down's datasource, then call databind as you usually would.

    If what I've said above isn't quite enough, I would suggest you research .net databinding in general before trying to move ahead.
  3. Nrv
    Nrv avatar
    20 posts
    Registered:
    16 Jan 2012
    06 Feb 2012
    Link to this post
    Hello Adam,
    Thnx for reply but i got a question because i am very much new to sitefinity that how to make custom control ?? I am not using it.... Can you please provide me the way to generate custom cotrol ?? I will be very thankful.... I really want to learn this....
    Regards,
    Nrv
3 posts, 0 answered