dropdown list problem

Posted by Community Admin on 03-Aug-2018 15:37

dropdown list problem

All Replies

Posted by Community Admin on 03-Feb-2012 00:00
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
Posted by Community Admin on 03-Feb-2012 00:00
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.
Posted by Community Admin on 06-Feb-2012 00:00
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
This thread is closed