Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# dagda1 4/10/2006 10:16 AM
Hi,

I got the latest version of Cuyahoga form SVN which includes all the lovely Castle integration. I updated the source to the .NET 2.0 via the upgrade wizard and upgraded the web project to the new Visual Studio Web Application model and am having the following problem:

The OnPreRender and Render methods are failing in the GenericBasePage class, with the following error:

In the OnPreRender method, I am getting Object reference not set to an instance of an object. The object in question is the pageControl.Title which is the literal control in the AdminTemplate.ascx file.

I am also getting the following error in the Render method:

A page can have only one server-side Form tag.

Can anyone help me out with these problems??

Thanks

Paul
# martijnb 4/10/2006 12:23 PM
Haven't tried the new stuff on .NET 2.0 yet, so I have no idea what's going wrong here.

Anybody else?
# big_al 4/10/2006 2:23 PM
Have you made sure the line
< title >< asp:literal id="PageTitle" runat="server" >< / asp:literal >< / title >

is in your code.

Al
# dagda1 4/11/2006 5:57 AM
Ok lads,

I sussed out what the problem was, when ran the Upgrade File Web Application on the project the wizard generates a partial class called [page].designer.cs. It added declartions in the ModuleAdminTemplate.ascx.cs file for both the literal and HtmlGeneric controls. These controls are already declared in the BasePageControl, so the new declarations where hiding the existing ones, resulting in the null values.

All is good now.

Thanks for the responses

Paul

# martijnb 4/12/2006 9:39 AM
Great that it works now! Is everything else also working?
# dagda1 4/18/2006 3:01 AM
Hi Martin,

Yes everything seems good now.

Thanks

Paul