Mariohysa
Mariohysa

Reputation: 37

the server tag is not well formed. do u know?

Please can anyone tell me why this happened?

<asp:TemplateField HeaderText="Receta">
    <ItemTemplate>
        <asp:Image ID="Receta1" runat="server" ImageUrl='<%# "Handler1.ashx?PacientId=" + Eval("PacientId") %>' Height="200px" Width="200px"
    </ItemTemplate>
</asp:TemplateField>

Upvotes: 0

Views: 39

Answers (1)

Brian Mains
Brian Mains

Reputation: 50728

Your asp:Image is missing the ending /> to it. That would definitely cause the error.

Upvotes: 1

Related Questions