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

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesUser CONTROL within User MODULE not working for some users.User CONTROL within User MODULE not working for some users.
Previous
 
Next
New Post
8/10/2012 9:06 AM
 

Hi All,

Thank you for assistance in advance.

I have designed a User CONTROL called DateRangeSelector to be added to several of my existing User MODULES on various pages within my portal.  It is simply a dropdown box with choices "Last 3 months, Last 6 months, Last 12 months" , etc to set the start date of a SQL query.

Within the one existing MODULE that I have designed and tested this new CONTROL, it works perfectly as long as I am logged in with my SuperUser account, the one I was using during development and design.

When I login with any other account that has normal access,  "Demo" for example, the new User CONTROL is not firing.  Its there, I can make selection changes(its a dropdown list), but nothing fires.  Other normal controls (not UserControls), like dropdown lists, work as they should.

I have placed my new user CONTROL in a folder called UserControls at the root of my DNN installation.

Why isn't my new UserCONTROL contained within my UserMODULE not working for all other users?

User Control:

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="DateRangeSelector.ascx.cs" Inherits="UserControls_DateRangeSelector" %>    onselectedindexchanged="ddlChoices_SelectedIndexChanged"     AutoPostBack="True" onprerender="ddlChoices_SelectedIndexChanged">

    All Dates
    Last 3 Months
    Last 6 Months
    Last 12 Months
    Last 18 Months
    Last 24 Months
    Custom...

Of course I have a proper code-behind file too for all the actions.

In Module Registration:

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="RptDslvGasDetail.ascx.cs" Inherits="RptDslvGasDetail" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>
<%@ Register assembly="System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" namespace="System.Web.UI.DataVisualization.Charting" tagprefix="asp" %>
<%@ Register src="../../UserControls/DateRangeSelector.ascx" tagname="DateRangeSelector" tagprefix="uc1" %>
.......

Thank You

Elgin

 
New Post
8/10/2012 9:37 AM
 

Unless you have some logic in the code behind that is checking permissions within the control, then maybe it's a caching thing. Are you caching on the module?

 
New Post
8/10/2012 10:11 AM
 

I do not have any logic pertaining to checking permissions, and the Cache Settings on the "Page Settings" tab of the Module are as follows:

Output Cache Provider:  File

Cache Duration: 0

I have tried several things, including clearing the cache and restarting the application.  I have tried creating new users, both Standard and SuperUser.  The control does not work for either of those users.

I've even added a new copy of the control to the module and pointed to it as the one to use.  No good there either.

And lastly, I've created a New Page and placed the module with the new control on it to no avail.  In all cases, only my SuperUser accounts gets the proper results.

I'm at a loss.

Thanks

Elgin

 
New Post
8/12/2012 10:13 PM
 

While working on other parts of the project, I figured out the err of my ways. 

My only mistake was not realizing that I had, when I initially designed this application, specified two different SqlDataSources for the two different levels of user that login to view this page.

And while developing this User Control, I had changed the SelectParameters of my SqlDataSource1 from asp:Parameter to a proper asp:ControlParameter in order to take advantage of my new control's functionality.

I simply overlooked making the change on my SqlDataSource2 SelectParameters . Oh well, continue to live and LEARN.

Elgin

 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesUser CONTROL within User MODULE not working for some users.User CONTROL within User MODULE not working for some users.


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