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.

  1. 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.
  2. 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.
  3. now logged-in in website using host credential.
  4. in dnn panel, go-to host->extensions.
  5. click on create new module button on right top corner of extensions page.
  6. create new module button open popup window create module form dropdownlist. select control drop-down.
  7. it show form, select .ascx web user control in respected folder path , click on create module button.
  8. finally drag-n-drop module on page.
  9. enjoy! ;)

Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -