문제

I'm pretty new to SP, but I had to bite the bullet and create a custom new form for a custom list schema. I mirrored the field structure with textboxes and such, added some custom javascript, validators and business logic, but my problem is that Sharepoint keeps injecting the old ListFormWebPart into my page. I can set the WebPartZone's Visible property to false and thus hide it, but I'd like to get rid of it altogether. Not to mention that, since its fields are all empty, my Page.Valid property will always return false.

Is there some code snippet that will do this job for me?

도움이 되었습니까?

해결책

I'm surprised how your page is working after deleting LFWP, because if I do it in the MOSS 2007 there will be exception. And the solution is not simple.

You just need to leave LFWP. Paste new custom list near it. Don't know how to do it in Studio, in Office Designer you can do it as mantioned there. Just don't delete LFWP, you'd hide it, in Designer simply press right button and choose web-part property, then Hide in layout section.

Think you can do similar in VStudio.

다른 팁

Contrary to popular belief (another SharePoint Myth), you can just delete the LFWP from the page entirely. You can do this in SharePoint Designer.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 sharepoint.stackexchange
scroll top