Error: the page has no form in the Gantt chart component
Date:9/11/2008 2:49:43 AM
Product:ActiveGanttVBA Gantt Chart / Scheduler Component
Framework:.Net Framework 1.0
User's Development Environment:Microsoft Access 2002
Subject:Error : the page has no form

I am testing the evaluation version of active gantt and I have a problem :

When I use the active gantt control into a page which uses a master page the following error occurs : "the page has no form".

The tag "form" exists in the master page.

When I do a simple example with a page without master page there is no error.



The thing is that all master pages, and I do not know why, always have a formid of "aspnetForm", which messes up all the javascript that is contained in the aspx pages that depend on the master page, ActiveGantt would work but you would not be able to click on it, it would be just a picture with a nasty "done but with errors on the page" message at the bottom of the page.

It's really only a question of javascript and nothing else. The quick and easy work around is for us to create a property called FormID that you would call in the Page_Load event for all pages that have ActiveGantt included and depend on master pages (the same would hold true for XTTreeview too):

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        ActiveGanttVBACtl1.FormID = "aspnetForm"
    End Sub

We have already tested it and it works.

You can download the AGVBA.dll and XTTVWVBA.dll temporary updates from this link in .zip format


All trademarks are property of their respective holders, and are only used to directly describe the products and services being provided. Their use in no way indicates any relationship or endorsement between The Source Code Store LLC and the holders of said trademarks.