This is a migrated thread and some comments may be shown as answers.

Ajax - User Control - Initiating Control

2 Answers 62 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Martin Sarosi
Top achievements
Rank 2
Martin Sarosi asked on 09 Feb 2009, 12:15 PM
Hi :)

The scenario I have is this:

A Page containing
  • AjaxManager
  • A user control to be shown a little like a dialog
  • A main form user control
A Main form user control
  • An initiating user control

So I add a setting to the ajaxmanager that the initiating user control updates the control to be shown

but the initiating user control also updates the Main Form user control

I really want the initiating control to only update the user control to be shown like a dialog.

Does this make sense?
Any ideas?

Cheers Martin

2 Answers, 1 is accepted

Sort by
0
SamJ
Top achievements
Rank 1
answered on 10 Feb 2009, 06:44 AM
HI,

Can you paste your markup here, especially the ajax settings?

Regards,
SamJ
0
Martin Sarosi
Top achievements
Rank 2
answered on 10 Feb 2009, 12:20 PM
I have solved this I believe.

If you do not set an ajax setting for an initiating control in a namingcontainer then the namingcontainer is included in the updated controls.

Adding a setting for the initiating control to update another control in the naming container solves this.

Cheers
Tags
Ajax
Asked by
Martin Sarosi
Top achievements
Rank 2
Answers by
SamJ
Top achievements
Rank 1
Martin Sarosi
Top achievements
Rank 2
Share this question
or