Link to home
Start Free TrialLog in
Avatar of mylogo
mylogoFlag for United States of America

asked on

Unexpected end of file looking for </asp:Content> tag.

I've modified an editform.aspx form in SharePoint Designer. I modified the dispform.aspx which works perfectly but the Edit form throws up this error:
An error occurred during the processing of /ess/Lists/Team Member Service Form/EditForm_copy(1).aspx. Unexpected end of file looking for </asp:Content> tag.
What I modified was highlighting 5 fields with a yellow background, deleting a row and adding a new one.

When I go back into designer, it points to this section:
<asp:Content ContentPlaceHolderId="PlaceHolderPageTitle" runat="server">
      <SharePoint:ListFormPageTitle runat="server"/>
</asp:Content>


What can I be doing wrong here?
editformcopy.txt
Avatar of navdeepmadan
navdeepmadan
Flag of India image

1) Remove the ZoneTemplate and webpartzone closing tag after the PlaceHolderBodyRightMargin

<asp:Content ContentPlaceHolderId="PlaceHolderBodyRightMargin" runat="server">
<div class='ms-areaseparatorright'><IMG SRC="/_layouts/images/blank.gif" width=8 height=100% alt=""></div>
</asp:Content>
</ZoneTemplate></WebPartPages:WebPartZone></asp:Content>

2) Zone template should come inside the web part zone

<asp:Content ContentPlaceHolderId="PlaceHolderMain" runat="server">
<table cellpadding=0 cellspacing=0 id="onetIDListForm">
 <tr>
  <td>
 <WebPartPages:WebPartZone runat="server" FrameType="None" ID="Main" Title="loc:Main">
      </WebPartPages:webpartzone><ZoneTemplate>
Avatar of mylogo

ASKER

I'm sorry. It's now pulling up the form but giving me a web part error. I think i put it in the wrong place. Does part (2) replace part (1), which is at the end of the code? or at the beginning of the code?
Avatar of mylogo

ASKER

Please disregard this last post.
Avatar of mylogo

ASKER

Ok, I modified my editform.aspx page with highlighting the few fields i needed to. Works perfectly. The problem i was having was with a text field i was trying to add in designer. I added a merged row to display this text: "Information below should only be entered if changes to Department, Job Title, ..."

This row is what causes my problem with the closing tag. Should i be adding this text a different way? I don't want a field. I only want the text to display in order to separate these fields from the others. Works perfectly on the DispForm.aspx page.
ASKER CERTIFIED SOLUTION
Avatar of mylogo
mylogo
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mylogo

ASKER

Workaround works and unfortunately, no more time available to work on this one piece.
Avatar of Chris Cordner
Chris Cordner

Hi

I had a similar problem with a form I was trying to edit, but I have no idea what I have missed. Can anybody help me with this one?

I was playing about with it because I wanted to add a row for the field 'Requested By'. That came up with these errors, so I deleted the row that I had added, thinking that would cure it (albeit without adding the field) but the problem still occurred when I'd done that!

Any help or guidance would be appreciated.

Thanks
Chris
NewFormCopy.aspx