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
Loading
Khan Abrar AhmedPosted Apr 16, 2014, 6:35 AM
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..........";
}
sivapratap KurapatiPosted Apr 16, 2014, 5:45 AM
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 AhmedPosted Apr 16, 2014, 3:48 AM
Before the colappsible panel use update panel
///Add the collapsible panel and form here