Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Listview in Webpart View modes: 
User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 4/4/2011 12:46:43 PM
   
Listview in Webpart
I have an ascx control I load using the UserControl webpart but would like to create the ascx control as a webpart but it has a ListView in it and it doesn't function correctly. I've started from the WebPart template in Visual Studio but it doesn't recognize the control. I'm on v5.5 R2 using Visual Studio 2008 targeting 3.5 framework. Is there a different dll or reference I need to add in order to use the ListView in in a webpart?

User avatar
Certified Marketer 13
Certified Marketer 13
james-distinctionhq - 4/7/2011 4:24:49 AM
   
RE:Listview in Webpart
Try adding:

<add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

To your web.config in the section:

<system.web>
<pages validateRequest="false">
<controls>
... add here ...

Hope that helps