hi,
i have implemented collapsinle panel for my project.inside the panel i created a form with a button in it.but i click on the button.nothing is getting displayed.When i debugged my code,button click is happening and finally a disassembly is getting opened and is keep on travesing there.i am not getting this issue.i have added ajaxcontrltoolkit.dll 3.5 version as reference.Please help me with this.
Regards,
Sivapratap
Working of Ajax
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Khan Abrar AhmedRank #778 · 3K reputationPosted Apr 15, 2014, 11:48 PM EDT
Before the colappsible panel use update panel
///Add the collapsible panel and form here
sivapratap Kurapati91 reputationPosted Apr 16, 2014, 1:45 AM EDT
i created a panel(say pnlClick) which has button,on click of it collapsible panel should work.
i placed my form which has a button inside an update panel which itself is inside one more panel say(pnlCollapsible) .and to the CollapsiblePanelExtender i specified CollapseControlId as pnlClick,targetcontrolid as pnlCollapsible.My problem is the button inside the form should work.I am not getting where the mistake is happening
Khan Abrar AhmedRank #778 · 3K reputationPosted Apr 16, 2014, 2:35 AM EDT
you can use below code
Add the refernce in project and in header section add below line for more info I attached the website code.
<%@ Register Assembly="AjaxControls" Namespace="AjaxControls" TagPrefix="asp" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
ASPX file
Test
ImageControlID="imgControlledFunction" SuppressPostBack="True" ExpandControlID="pnl1"
Collapsed="false" CollapseControlID="pnl1">
aspx.cs file
protected void btnTest_OnClick(object sender, EventArgs e)
{
lbl.Text = "Button Click Event Fires..........";
}