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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Selected index changed on dropdownlist in View mode.Selected index changed on dropdownlist in View mode.
Previous
 
Next
New Post
9/9/2008 6:39 PM
 

Hi all,

It has been a while since I have developed anything in DNN.  So long that jumping into the new module development took a little while since the last thing I touched was early DNN3.  I have a question about development in DNN4.

I have a module with a dropdownlist that is databound to an ObjectDataSource which filters a gridview based on the selection.  Autopostback and enablev13wstat3 are set to true.  This works just fine as long as I am logged into the site as administrator/host and the DNN View mode is set to Edit. 

However, when I set the view mode to View or am not logged in as admin/host, the SelectedIndexChanged event never fires for the dropdownlist control.

Can someone explain why this is and how to get around it?

Thanks in advance!

Wallew

 
New Post
9/9/2008 7:01 PM
 

see:

Answers to Common Module Development Errors

Error:

The module works fine when logged in as an administrator, but when a normal user uses it they do not get the post back click event or the page doesn't refresh.

Answer:

The module has caching enabled. Set the caching to 0 and click the update link in the module configuration settings for the module.



Michael Washington
http://ADefWebserver.com
www.ADefHelpDesk.com
A Free Open Source DotNetNuke Help Desk Module
 
New Post
9/9/2008 7:14 PM
 

Thanks Micheal.  Actually, I read that and did both before posting. 

Dataprovider...
objProvider = CType(Framework.Reflection.CreateObject("data", "Gent.Modules.GentListLocations", ""), DataProvider)

I cleared the cache under performance, let me try to restart the app and see what happens.

 
New Post
9/9/2008 7:18 PM
 

Still same results with caching set to medium, cache for the module set to 0 and making sure the data provider method was in the new syntax.  Still same results.  Is it possible I am missing something else?

Wallew

 
New Post
9/9/2008 7:42 PM
 

I found the solution from this article:  http://blog.davebouwman.net/CategoryView,category,DNN.aspx

Thanks Dave!

Not sure if the cache just wasn't clearing out or what but this is a definite winner. 
In page load add the following before anything else: (May work in Page init, haven't tried yet)
MyBase.ModuleConfiguration.CacheTime = 0

This insures dynamic modules will load no matter what the settings are in module definitions.
Beware, it could cause performance issues in larger modules with larger datasets.

Note to the core team:  Not sure if it is just WH4L settings disregarding the module cache settings after clearing cache and restarting app.  May need further investigation.  FYI

Wallew

P.S.  Thanks Micheal for all of your help and advice over the years.  It is greatly appreciated!  You may want to stick this little trick in your pinned post. ;)

Wallew

 

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Selected index changed on dropdownlist in View mode.Selected index changed on dropdownlist in View mode.


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