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 ExtensionsModulesModulesMultiViewControl and PostbackMultiViewControl and Postback
Previous
 
Next
New Post
8/16/2011 12:06 AM
 
Hi,

I am having a ascx page with a multiview control and each view contains another ascx page. So to say:

View One (View ascx)
View Two (Add ascx)
View Three (Edit ascx)

When the page that contains the module is opened, view one will be display to user. It contains a button that will set the ActiveViewIndex to View Two. The problem now is in my View Two, it contains 2 dropdownlist that will be dynamically generated with data on page_load method. When user clicks on the 'Add' button in the Add.ascx, it will validate the input and store in the database.

The problem I am facing now is that whenever the user select from the 2 dropdownlists, it is never capture and it will postback and select to the default. 
 
New Post
10/19/2011 5:20 AM
 
Not sure what you want to do with the 2 dropdownlists, but you can set AutoPostBack property to false for both when dynamically loading them. Since you make it dynamically, then all other databinding and validations should be processed dynamically due to NullReferenceException or not found control error, this could lead you to hard coding. I'm having another problem with DnnComBoBox/DropDownList and haven't get resolve yet. This might not help you, but let me shared what I know.
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesMultiViewControl and PostbackMultiViewControl and Postback


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