dotnetnuke - How can i populate dropdown fom database in dnn -
i want add new page in dnn site populates 2 dropdown country , state database.
please suggest how can this?
here show how create dynamic pages using dnn module. more information refer this link.
- first of open dnn website in visual studio. can see desktopmodules folder in root directory, right click on directory , add new directory give name module name, example "countrystate". right click on countrystate folder , add->add new item->select web user control , give name module name "countrystate.ascx", show countrystate.ascx , countrystate.ascx.cs files in desktopmodules/countrystate folder.
- next step update inherit class "system.web.ui.usercontrol" "portalmodulebase". because of portalmodulebase class defines custom base class inherited desktop portal modules within portal. portalmodulebase class defines portal specific properties used portal framework correctly display portal module.
- now logged-in in website using host credential.
- in dnn panel, go-to host->extensions.
- click on create new module button on right top corner of extensions page.
- create new module button open popup window create module form dropdownlist. select control drop-down.
- it show form, select .ascx web user control in respected folder path , click on create module button.
- finally drag-n-drop module on page.
- enjoy! ;)
Comments
Post a Comment