server tag is not well formed

The following line is giving an error:'server tag is not well-formed.' Please help !

<asp:Button Font-Names="verdana" ID="addext" Text="Add Extract" Runat=server OnClick="addext(artid<%# DataBinder.Eval(Container.DataItem, "AM_ID")%>.value)"></asp:Button>
lonelyaniAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
Commodus2Connect With a Mentor Commented:
<asp:Button Font-Names="verdana" ID="addext" Text="Add Extract" Runat=server OnClick="addext(artid<%# DataBinder.Eval(Container.DataItem, "AM_ID")%>.value)"></asp:Button>

this is not correct because the runat tag is not enclosed with quotes

this is the correct one
<asp:Button Font-Names="verdana" ID="addext" Text="Add Extract" Runat="server" OnClick="addext(artid<%# DataBinder.Eval(Container.DataItem, "AM_ID")%>.value)"></asp:Button>

I believe that the quotes surrounding AM_ID are correct since they are within a codeblock and not directly in the asp tag
0
 
naveenkohliCommented:
OnClick="addext(artid<%# DataBinder.Eval(Container.DataItem, "AM_ID")%>.value)"

Change this to..
OnClick="addext(artid<%# DataBinder.Eval(Container.DataItem, 'AM_ID')%>.value)"

Key is to make the inner qiotes different than outer ones.
0
 
Bob LearnedCommented:
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Answered by Commodus2

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

TheLearnedOne
EE Cleanup Volunteer
0
All Courses

From novice to tech pro — start learning today.