ajax accordion control

G

Guest

I am just stating to use ajax, and have a perfect place to use the accordion
control. I have it working fine, but need to have a normal asp button in one
of the panes that fires an onclick event as normal. The button works fine
outside of the pane, but once I put it in the pane it no longer fires the
event. How can I get a button in the accordion to run a function on the
server on the onclick event?

Thanks.
 
M

marss

Gerhard said:
I am just stating to use ajax, and have a perfect place to use the accordion
control. I have it working fine, but need to have a normal asp button in one
of the panes that fires an onclick event as normal. The button works fine
outside of the pane, but once I put it in the pane it no longer fires the
event. How can I get a button in the accordion to run a function on the
server on the onclick event?

Thanks.

Hi,
Does it fire asynchronous postback instead of ordinary postback or it
does not fire event at all?
In first case you can use PostBackTrigger:
<asp:UpdatePanel ID="UpdatePanel1" ...>
<ContentTemplate>
....
<asp:LinkButton ID="Button1" ...
....
</ContentTemplate>
<Triggers>
<asp:postBackTrigger ControlID="Button1" />
</Triggers>
</asp:UpdatePanel>

If it does not fire an event at all I guess the problem is in your
code but not in AJAX.
Regards, Mykola
http://marss.co.ua
 
W

Walter Wang [MSFT]

Hi,

Sorry this is not a direct answer to your question.

Please note:

The ASP.NET AJAX downloads contain four parts:

* ASP.NET 2.0 AJAX Extensions
* Microsoft AJAX Library
* ASP.NET AJAX Futures CTP
* ASP.NET AJAX Control Toolkit

Only the ASP.NET 2.0 AJAX Extensions and the Microsoft AJAX Library will be
supported by MSDN Managed Newsgroup Support Service or Microsoft Customer
Support and Service. The ASP.NET AJAX Futures CTP is supported via the
forums located at http://forums.asp.net/ website. The ASP.NET AJAX Control
Toolkit is a shared source project that is built and based off the AJAX
Extensions, which is also supported by the community
(http://forums.asp.net/1022.aspx).

Thank you for your understanding.



Regards,
Walter Wang ([email protected], remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top