Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Server tag is not well formed error on datagrid row ImageButton

I have come to an issue like the server tag is not well. this code is ASP.NET C# code.

<asp:TemplateColumn HeaderText="Options">
        <ItemTemplate>
            <asp:ImageButton ID="imgbuttEditVendor" runat="server" CommandName="Edit" CommandArgument="<%# Eval("ctpv_id") %>" ImageUrl="~/images/buttons/edit.gif" />                
        </ItemTemplate>
    </asp:TemplateColumn>

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Replace

CommandArgument="<%# Eval("ctpv_id") %>"

with

CommandArgument='<%# Eval("ctpv_id") %>'

Note: Embed double quote in the double quote is not allowed.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading