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

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryMaking Changes to RepositoryDashboard, DropDownList Odd Behavior!Making Changes to RepositoryDashboard, DropDownList Odd Behavior!
Previous
 
Next
New Post
7/20/2007 12:14 PM
 

Hello, I'm making a modificaiton to the RepositoryDashboad so that a user can create a list of categories that they wish to see, basically a category filter list.  The values are stored in a database, my current test set is as follows:

ListID ListName
-1 ALL
2 Dan's List
3 Test List

 I made the modification in the lstObjects_ItemDataBound sub of the RepositoryDashborad.ascx.vb file.  In the case "index" under the sub case of "TREE", which is listed below. 

The problem I'm having is that when the web page loads the dashboard has "ALL" as the default, which is fine.  When I select either "Dan's List" or "Test List" it functions correctly doing a postback and then running the routine DropDownListUserCategory_SelectedIndexChanged as expected.  But when I select back to the item "ALL" from either "Test List" or "Dan's List" it doesn't fire the DropDownListUserCategory_SelectedIndexChanged, yet it does do a post back.  Where selecting from All to either of the other lists, or either of the other lists to each other fires a post back followed by the DropDownListUserCategory_SelectedIndexChanged.  So the only problem is going from any other list to the ALL list.  ie I cannot go from Dan's list or test list to ALL and get the DropDownListUserCategory_SelectedIndexChanged to fire.

Does anyone know why the DropDownListUserCategory_SelectedIndexChanged is not being fired when I go back to the ALL category list?

Here is the code I'm working on.  Searching for the word "TREE" with the quotes takes you right to the block with the problem.

 

 http://www.codersgonewild.com/repositorydashboard.ascx.vb.txt

 
New Post
7/20/2007 11:26 PM
 
I solved the problem. The issue was the index changed function compares the value against the value set in the page load. Thus when you are going back to the page default it never sees it as a change. By using the viewstate I was able to keep track of what my last selected field was and use that value to set the value on page load. Thus allowing the system to see a change take place.
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryMaking Changes to RepositoryDashboard, DropDownList Odd Behavior!Making Changes to RepositoryDashboard, DropDownList Odd Behavior!


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