[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1384
  • Last Modified:

Asynchronous postback in master page

Hello,

Background for the problem:
1.  I have an update panel in the master page.
2.  The update panel in the master page has 2 dropdown lists and a button.
3.  I have set the updatemethod to 'conditional' for this panel and the trigger to asynchronously  postback based on the click event of the button.
4.  I have a content page with update panels with the update mode set to 'always'.

Problem:
When I click the button in the update panel in the master page, nothing happens - no asynchronous posbacks.

Please let me know how I can resolve this issue.  

fyi: I have attached herewith a file to simply show how my page looks.

Thanks for helping.


 ASP-q-1.doc
0
rema10
Asked:
rema10
  • 2
1 Solution
 
Alfred A.Commented:
You can try using the Update method of the Update Panel Control in the button click event since the update mode is set to "Conditional".

See the following link for details:

http://msdn.microsoft.com/en-us/library/system.web.ui.updatepanel.update.aspx
0
 
rema10Author Commented:
Hi,

Thanks. I was able to resolve the problem based on the user forum in  www.asp.net.

The update was not happening because the button in the master page was not even firing the 'click' event.

Based on the resolution inwww.asp.net user forum, I set the 'causes validation' and 'use submit behavior' to false which caused the event to fire and the asynchronous postback to happen successfully.

0
 
rema10Author Commented:
No comments.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now