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 ExtensionsModulesModulesmultiview control and viewmultiview control and view
Previous
 
Next
New Post
8/25/2011 3:28 AM
 
hi, i am having some problem with web control and multiview.

i have a page call listing.ascx which contains a multiview control and 3 views. each view contains a web control. in the listing.ascx, use can click on the add button and redirect to the 2nd view, which is the add.ascx. 

in the add.ascx, the form is suppose to validate the user input and show the required fields but when i click the button in the ascx, it validates the form and at the same time redirect my page to listing.ascx. 

what is the problem and how can i let the page remains on add.ascx when validating? 

*for your information. my 3rd view which contains a edit.ascx is working fine with the validation. something is just not right with the add.ascx.
 
New Post
8/25/2011 10:50 AM
 
as pages will only postback to themselves they dont automatically change to another location - sounds like you have an additional response.redirect(navigateurl())) in your code - please check (see wiki for details - http://www.dotnetnuke.com/Resources/Wiki/Page/Module-navigation.aspx )

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
8/26/2011 4:11 AM
 
hi, i have been wondering about this for very long. lets say i have a parent web control listing.ascx and a child web control add.ascx which is called inside parent.

if i click on a button in the add.ascx, it will do a postback and will the parent all have the postback?
 
New Post
8/26/2011 8:41 AM
 
no, the control will execute it's own life cycle and will not bubble up to the parent naming container i.e. think of a webpage with a user control, invoking an event on that user control does not invoke the same event on the webpage e.g. clicking a link. Obviously if the event evokes a postback then the naming container will follow the same asp.net lifecycle -however there are subtelties e.g. a page must load before a control can load etc. - see http://msdn.microsoft.com/en-us/library/ms178472.aspx

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesmultiview control and viewmultiview control and view


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