Question

I have created a custom list with a custom newform. Using all OOTB SharePoint masterpages it works great. I now roll it to our test farm and it errors with a custom masterpage. The error is

The attribute 'autoeventwireup' is not allowed in this page

I've reviewed the custom master page and it actually isn't very custom. It's only custom to include a style sheet and some jquery files. As part of testing I copied the entire contents from v4.master and inserted it into the custom masterpage and it still errors.

If I remove autoeventwireup from my custom page I start getting other errors about page_load, etc. However, i don't want to remove it since it works OOTB.

Any ideas?

Thanks!

Était-ce utile?

La solution

Resolved! Code behind doesn't appear to be allowed on the newform page. As it stands I was using a user control in the new form. So I removed the autoeventwireup and the code behind file from my newform and that worked.

Licencié sous: CC-BY-SA avec attribution
Non affilié à sharepoint.stackexchange
scroll top