ActiveGanttCSA and Master Pages
Date:9/19/2011 5:46:32 AM
Product:ActiveGanttCSA Gantt Chart / Scheduler Component
Framework:.Net Framework 4.0 / Visual Studio 2010
Version:2.8.6
User's Development Environment:C# Visual Studio 2010
Subject:ActiveGantt Scheduler Component and Master Pages

I looked through your article How to create a simple ASP.NET application using the ActiveGanttCSA component, implemented it and checked it and it works fine with out having the master pages but if i use the Master pages it throws the error as "the page has no form". I also attached the screen shot for your reference. Kindly guide me to solve this issue. Because in our application we use the master pages. So we want the component to work with master pages.

Answer:

In the example in the Article: Getting Started with the ActiveGanttCSA Gantt Chart Scheduler Component the form has an ID of "Form1" (which is generally the standard):


<form id="Form1" method="post" runat="server">

In the Default.aspx of a newly generated ASP.NET Web Application, with a master page (MasterPageFile="~/Site.master") the form has an ID of "ctl01":

You can check the form's ID by temporarily disabling the ActiveGanttCSA control, by commenting out the following line:


<cc1:ActiveGanttCSACtl ID="ActiveGanttCSACtl1" runat="server" Width="800px" Height="500px" />

Viewing the source for that .aspx page, and right underneath the tag: , you will find:


<form method="post" action="Default.aspx" id="ctl01">

So what you do is modify the ActiveGanttCSACtl's markup like this:


<cc1:ActiveGanttCSACtl ID="ActiveGanttCSACtl1" runat="server" Width="800px" Height="500px" FormID="ctl01" />

And then ActiveGanttCSA will display correctly as shown below:

 

HOME | PRODUCTS | ONLINE STORE | AUTHORIZED DISTRIBUTORS | ONLINE DEMOS | TRIAL DOWNLOADS | DOCUMENTATION | SUPPORT | ABOUT US | CONTACT US | SITEMAP | LOGIN

VIEW ALL ARTICLES | VIEW ALL REQUESTS | VIEW ALL REPORTS | VIEW ALL NEWS | JOIN OUR MAILING LIST

TERMS AND CONDITIONS | PRIVACY POLICY | LICENSING | COPYRIGHT