Wednesday, March 28, 2012

Simple AJAX Question

I have a form that has a ModalPopupExtender on it. I have un updatepanel on
a panel control that is displayed when an Button (outside of the update
panel) is clicked. What I am trying to do is fire the updatepanel with a
command like "show_first" so that I can display appropriate informaiton in
the updatepanel when the Button is clicked. I need to access the Button's
click event Server Side so i can show the appropriate information.

I have added the Button.Click as a trigger in the updatepanel but I cannot
program the Button.Click event Server Side as it is not located in the update
panel. Any ideas?On Sep 20, 1:44 pm, Ryan Smith <RyanSm...@.discussions.microsoft.com>
wrote:

Quote:

Originally Posted by

I have a form that has a ModalPopupExtender on it. I have un updatepanel on
a panel control that is displayed when an Button (outside of the update
panel) is clicked. What I am trying to do is fire the updatepanel with a
command like "show_first" so that I can display appropriate informaiton in
the updatepanel when the Button is clicked. I need to access the Button's
click event Server Side so i can show the appropriate information.
>
I have added the Button.Click as a trigger in the updatepanel but I cannot
program the Button.Click event Server Side as it is not located in the update
panel. Any ideas?


can you put it inside it's own updatepanel and refer to the other
updatepanel by id?
I am retarded ;-)

"densial" wrote:

Quote:

Originally Posted by

On Sep 20, 1:44 pm, Ryan Smith <RyanSm...@.discussions.microsoft.com>
wrote:

Quote:

Originally Posted by

I have a form that has a ModalPopupExtender on it. I have un updatepanel on
a panel control that is displayed when an Button (outside of the update
panel) is clicked. What I am trying to do is fire the updatepanel with a
command like "show_first" so that I can display appropriate informaiton in
the updatepanel when the Button is clicked. I need to access the Button's
click event Server Side so i can show the appropriate information.

I have added the Button.Click as a trigger in the updatepanel but I cannot
program the Button.Click event Server Side as it is not located in the update
panel. Any ideas?


>
can you put it inside it's own updatepanel and refer to the other
updatepanel by id?
>
>


Ok - I tried that and it didn't work. Any other ideas?

System.InvalidOperationException was unhandled by user code
Message="An extender can't be in a different UpdatePanel than the control
it extends."
Source="System.Web.Extensions"
StackTrace:
at System.Web.UI.ExtenderControl.RegisterWithScriptMa nager()
at System.Web.UI.ExtenderControl.OnPreRender(EventArg s e)
at AjaxControlToolkit.ExtenderControlBase.OnPreRender (EventArgs e) in
C:\Program Files\Microsoft ASP.NET\AJAX
Toolkit\AjaxControlToolkit\ExtenderBase\ExtenderCo ntrolBase.cs:line 345
at AjaxControlToolkit.ModalPopupExtender.OnPreRender( EventArgs e) in
C:\Program Files\Microsoft ASP.NET\AJAX
Toolkit\AjaxControlToolkit\ModalPopup\ModalPopupEx tender.cs:line 203
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

"densial" wrote:

Quote:

Originally Posted by

On Sep 20, 1:44 pm, Ryan Smith <RyanSm...@.discussions.microsoft.com>
wrote:

Quote:

Originally Posted by

I have a form that has a ModalPopupExtender on it. I have un updatepanel on
a panel control that is displayed when an Button (outside of the update
panel) is clicked. What I am trying to do is fire the updatepanel with a
command like "show_first" so that I can display appropriate informaiton in
the updatepanel when the Button is clicked. I need to access the Button's
click event Server Side so i can show the appropriate information.

I have added the Button.Click as a trigger in the updatepanel but I cannot
program the Button.Click event Server Side as it is not located in the update
panel. Any ideas?


>
can you put it inside it's own updatepanel and refer to the other
updatepanel by id?
>
>

0 comments:

Post a Comment