If you've placed your TabContainer on a page using a Master page you can't get the behaviour of the TabContainer the usual way (which would work on a page without master):
var tabContainer = $find('TabContainer1');
Therefore, if your page has a Master Page you must instead use the $get method and send the UniqueId of the TabContainer as a parameter. Through the retrurned object, you can get the control object which represents the behaviour of the TabContainer:
var tabContainer = $get('<%= this.TabContainer1.ClientID%><%= TabPassengerInfo.ClientID%>').control;
Visar inlägg med etikett AjaxControlToolkit. Visa alla inlägg
Visar inlägg med etikett AjaxControlToolkit. Visa alla inlägg
fredag 16 maj 2008
torsdag 20 september 2007
Using ToolkitScriptManager CombineScripts with url rewrite
When you use HttpModule to handle generated htm url's the ToolscriptsMangers CombineScript dosn't work.
To fix this you can add the CombineScriptsHandlerUrl and set this value to "/".
<ajaxtoolkit:toolkitscriptmanager id="ToolkitScriptManager1" runat="server" asyncpostbacktimeout="900" combinescripts="true" combinescriptshandlerurl="/" loadscriptsbeforeui="true">
To fix this you can add the CombineScriptsHandlerUrl and set this value to "/".
<ajaxtoolkit:toolkitscriptmanager id="ToolkitScriptManager1" runat="server" asyncpostbacktimeout="900" combinescripts="true" combinescriptshandlerurl="/" loadscriptsbeforeui="true">
Etiketter:
Ajax,
AjaxControlToolkit,
ASP.NET
AjaxControlToolkit: Events inside a Accordion
If you having problems with needing to click twice or more on a button inside a AccordionPane to get the Event to fire this is a workaround for you.
In this example we have the following structure.
In this example we have the following structure.
- MasterPage
- Page
- MyAccordion
- MyUserControl
- MyButton
In the Page OnInit you simply put the following line:
LinkButton btn =(LinkButton)(MyAccordion.Panes[0].FindControl("MyUserControl").FindControl("MyButton"));This will make the Accordion to force to load the OnInit in MyUserControl and thus register the MyButton_Click event. It will also enable all other events inside the usercontrol
Hopefully a fix for this will come in a later version of the AjaxControlToolkit.
Reference: http://forums.asp.net/t/1047516.aspx
Prenumerera på:
Inlägg (Atom)