467,879 Members | 1,181 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,879 developers. It's quick & easy.

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?
Sep 20 '07 #1
  • viewed: 2272
Share:
3 Replies
On Sep 20, 1:44 pm, Ryan Smith <RyanSm...@discussions.microsoft.com>
wrote:
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?

Sep 20 '07 #2
I am retarded ;-)

"densial" wrote:
On Sep 20, 1:44 pm, Ryan Smith <RyanSm...@discussions.microsoft.com>
wrote:
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?

Sep 20 '07 #3
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:
On Sep 20, 1:44 pm, Ryan Smith <RyanSm...@discussions.microsoft.com>
wrote:
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?

Sep 20 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Ivan Marsh | last post: by
1 post views Thread by www.web20developers.com | last post: by
1 post views Thread by eddie | last post: by
1 post views Thread by Boris Twila | last post: by
reply views Thread by minnie | last post: by
8 posts views Thread by =?Utf-8?B?V2ViQnVpbGRlcjQ1MQ==?= | last post: by
2 posts views Thread by =?Utf-8?B?VG9u?= | last post: by
6 posts views Thread by Jonathan Wood | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.