Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...DnnComBoBox/DropDownList needs permission ?DnnComBoBox/DropDownList needs permission ?
Previous
 
Next
New Post
10/17/2011 4:10 AM
 
Hello guys (and sorry for my English)! 
I'm working on DotNetNuke 6.0.2 (installed under  NetworkService account on Win 7 Ult, VS 2008 Team system, MSSQL 2005 Dev).
I'm developing a module that collects user information and save data to database. My module has a DnnComBoBox which is hosted by an XmlDatasource control. The XmlDatasource control is bound by an XML file to allow user selects a country and an Xslt file to transform the xml file. I built, packed zip, installed the module succesfully.
When I test the module with Admin or Host account  (in Edit mode) it works fine, and the data is saved as expected. But when I log out or change the site to View Mode, the ComboBox appears strangely: no nav - down button but a "select" link instead, and nothing happen when i click neither select link or entire the combobox, data is not saved ofcourse. I tried to replace the DnnComBoBox with DropDownList control and the control popped up even with anonymous user, but that was it! No data Submit at all, the site gave me  "a critical error has occured..." I created a new portal, then new page and added the module to that page and set the page accessible to every user. I turned back and saw "Permissions" field setting for this module but didn't know what to fill with.
 Did i omit something? Any help would be appreciated, thanks!
 
New Post
10/17/2011 11:09 PM
 
Here is my code in user control ascx.cs file:
private void loadCountry()
        {
            XmlDataSource xmlsource = new XmlDataSource();
            xmlsource.DataFile = "./DesktopModules/RegUser/country.xml";
            xmlsource.TransformFile = "./DesktopModules/RegUser/country.xslt";
            xmlsource.EnableViewState = false;
            xmlsource.EnableCaching = true;
            this.DnnComboBox1.DataSource = xmlsource;
            this.DnnComboBox1.DataValueField = "ISO_3166-1_Alpha-2_Code_element";
            this.DnnComboBox1.DataTextField = "ISO_3166-1_Country_name";
            this.DnnComboBox1.DataBind();
        }
this method is called in Page_Load event, and only at first load. All file have already read - permission. I use dotnetnuke 4 starter kit template to build.
 
New Post
10/20/2011 12:41 AM
 
I uninstalled the module and reinstalled it and discovered that DotnetNuke notified me something about permission while installing in progress. It could be that ( then my entired module should have problem) ! I'll be off for the code access and permission now and will inform soon !
 
New Post
10/24/2011 10:39 PM
 
I tried to let all accounts in Page and Module Permission setting to view and edit the module in page, then the comboBox didn't show "select" link any more, but it didn't pop too (without logging in). What I want to do is to build another custom register module which is similar with register module of DNN. It seems like i have to follow the dnn register module way.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...DnnComBoBox/DropDownList needs permission ?DnnComBoBox/DropDownList needs permission ?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out