Kirs Sudh
Kirs Sudh

Reputation: 298

Parser Error Message: The server tag is not well formed

 <asp:LinkButton ID="InsertButton" runat="server" CausesValidation="True" CommandName="Insert"
        Text="Registration"</asp:LinkButton>&nbsp;&nbsp;&nbsp;
    <asp:LinkButton ID="InsertCancelButton" runat="server" CausesValidation="False" CommandName="Cancel"
        Text="Cancel"></asp:LinkButton>

What is the problem in this? I am getting following error:

"Parser Error

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: The server tag is not well formed."

To my knowledge, this is a good code.

Upvotes: 3

Views: 10600

Answers (1)

Susie
Susie

Reputation: 5158

You're missing a closing tag(>) after the Text="Registration"in the first LinkButton tag

 <asp:LinkButton ID="InsertButton" runat="server" CausesValidation="True" CommandName="Insert" Text="Registration"></asp:LinkButton>&nbsp;&nbsp;&nbsp;
 <asp:LinkButton ID="InsertCancelButton" runat="server" CausesValidation="False" CommandName="Cancel" Text="Cancel"></asp:LinkButton>

Upvotes: 7

Related Questions