Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > Update Panel does not work View modes: 
User avatar
Member
Member
shenyi_1987-hotmail - 1/31/2013 4:56:15 PM
   
Update Panel does not work
Hello. I put a user control web part in my website and I want it to have ajax effect. I put a update panel and does not work. The whole page will always be refreshed, not the part of it. I just wonder how to solve this?

I tried to put the update panel in the custom code, or enable it in web part setting, or even put it in the template to contain the whole web part zone, it is not working.

User avatar
Kentico Consulting
Kentico Consulting
richards@kentico.com - 2/1/2013 3:30:26 AM
   
RE:Update Panel does not work
Hello,

could you please try adding the following code into your web.config file?


<httpHandlers>

<remove verb="*" path="*.asmx"/>

<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>

</httpHandlers>

<httpModules>

<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

</httpModules>


Best regards,
Richard Sustek

User avatar
Member
Member
shenyi_1987-hotmail - 2/1/2013 4:43:34 AM
   
RE:Update Panel does not work
it doesn't work.

User avatar
Kentico Consulting
Kentico Consulting
richards@kentico.com - 2/1/2013 5:09:37 AM
   
RE:Update Panel does not work
Hello,

I've been now informed that you cant use AJAX effect to Usercontrol webpart. The Ajax update panel just wraps this webpart into the classic ASP update panel as it is described at http://www.asp.net/ajax/documentation/live/overview/updatepaneloverview.aspx

I order to get this working you would need to do it all by yourself. Im sorry for the inconviniences.

Best regards,
Richard Sustek

User avatar
Member
Member
shenyi_1987-hotmail - 2/1/2013 5:41:35 AM
   
RE:Update Panel does not work
I'm pretty sure that I can use update panel in user control. Please check another website I built walmay.simpleid.com.au/Downloads.aspx. It is also a user control including a repeater and a search textbox. You can test the search function and you will find the update panel works well.

User avatar
Kentico Consulting
Kentico Consulting
richards@kentico.com - 2/6/2013 1:15:06 AM
   
RE:Update Panel does not work
Not all web parts are configured to work with AJAX effect. However if I get you right, you want to use the exactly same functionality as in the web page you posted and it doesnt work? I'm sure you tried it already, but if this is the case, could you check step-by-step configuration of the working example and convert it to the new page? Even try exporting the working example and importing it into the site you want it to use and reconfigure it. Are the Kentico's versions of the website's any different?

Sorry for getting back to you this late.

Best regards,
Richard Sustek

User avatar
Member
Member
shenyi_1987-hotmail - 2/6/2013 6:31:52 AM
   
RE:Update Panel does not work
I figured out the problem. The updatepanel could not have <tr> tag in it. When I move <tr> tag out of updatepanel, it's working now.