Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Run the project and navigate to the newly created page am not displaying anything? View modes: 
User avatar
Member
Member
samuelmartin111-hotmail - 10/4/2011 6:22:47 AM
   
Run the project and navigate to the newly created page am not displaying anything?
Hi, i have followed the article

-> In Kentico CMS 5.5 R2 Developer's Guide
-> Using API and CMS Controls outside CMS project
-> Using Kentico CMS Controls to display content from Kentico CMS database

I have configured the web project for Kentico CMS and Created a new web form (ASPX page) in my custom project using Visual Studio and i have Drag and drop the CMSRepeater control on my page and set the properties and Run the project and navigate to the newly created page and

I am getting blank page am not able to display anything on my webpage.

Can anyone please suggest me?

Thanks!!!


User avatar
Kentico Support
Kentico Support
kentico_radekm - 10/5/2011 10:00:36 AM
   
RE:Run the project and navigate to the newly created page am not displaying anything?
Hello.

Does it mean this page is outside of Kentico CMS project? As you mentioned two projects – one Kentico CMS and one custom. Anyway, if you are able to drag and drop given control onto your page, it probably mean that you have required dll registered properly and the problem is probably in properties you used… Could you please double-check that all required properties, like path, classname and transformation are filled properly? If so think so and still does not work, could you please post whole code here, so I can check it? Thank you.

Best Regards,
Radek Macalik

User avatar
Member
Member
samuelmartin111-hotmail - 10/10/2011 1:48:32 AM
   
RE:Run the project and navigate to the newly created page am not displaying anything?
Hi i have pasted the Code when i build and redirect to Test.aspx it is displaying Blank Page.Mycode Follows

Test.aspx


<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Test.aspx.cs" Inherits="TestApp.Test" %>

<%@ Register assembly="CMS.Controls" namespace="CMS.Controls" tagprefix="cc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>

</div>

<cc1:CMSRepeater ID="CMSRepeater1" runat="server" ClassNames="cms.news"
CultureCode="en-us" SelectedItemTransformationName="cms.news.default"
SiteName="CorporateSite" TransformationName="cms.news.preview">
</cc1:CMSRepeater>

</form>

</body>
</html>

Test.aspx.cs
protected void Page_PreInit(object sender, EventArgs e)
{
if (Request.QueryString["aliaspath"] != null)
{
CMSRepeater1.Path = Request.QueryString["aliaspath"];
}
else
{
CMSRepeater1.Path = "/%";
}
}

Global.asax.cs
protected void Application_Start()
{
CMS.VirtualPathHelper.VirtualPathHelper.RegisterVirtualPathProvider();
RegisterRoutes(RouteTable.Routes);
}

Thanks!!!

User avatar
Kentico Support
Kentico Support
kentico_radekm - 10/20/2011 6:31:11 AM
   
RE:Run the project and navigate to the newly created page am not displaying anything?
Hello.

Could you please to create a simple aspx template according to http://devnet.kentico.com/docs/tutorial_aspx/creating_a_simple_aspx_page_template.htm and let me know, if it works? The main issue is to distinguish whether controls are registered property on not.

Best Regards,
Radek Macalik