Trying to pass a parameter from a linkbutton embedded in a repeater: Part 2

Hello,

I already posted concerning this issue and thought I had the solution. Now when I run this repeater :

<%--Begin TicketHistoryRepeater--%>
<asp:Repeater ID="TicketHistoryRepeater" runat="server" EnableViewState="true">
  <ItemTemplate>
    <tr>
      <td>
        <asp:Label ID="lblTicketID" runat="server" Text=<%#Eval ("TicketID") %>>
        </asp:Label>                                
      </td>
      <td>
        <asp:LinkButton ID="lkSubject" runat="server"
                        Text=<%#Eval("Subject") %>
                        OnClick="ShowAnswerTable(<%#Eval ("TicketID") %>)">
        </asp:LinkButton>
      </td>
      <td>
        <asp:Label ID="lblDateOpened" runat="server" Text=<%#Eval ("Date") %>>
        </asp:Label>
      </td>
      <td>
        <asp:Label ID="lblStatus" runat="server" Text=<%#Eval ("Status") %>>
        </asp:Label>
      </td>
    </tr>
  </ItemTemplate>                        
</asp:Repeater>
<%--End TicketHistoryRepeater--%>

I get this 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: Unexpected end of file looking for </asp:LinkButton> tag.

Source Error:


Line 51:       </td>
Line 52:       <td>
Line 53:         <asp:LinkButton ID="lkSubject" runat="server"
Line 54:                         Text=<%#Eval("Subject") %>
Line 55:                         OnClick="ShowAnswerTable(<%#Eval ("TicketID") %>)">

Source File: /MSF/help_desk/view_ticket_history.aspx    Line: 53

 
It looks like all my tags are lined up correctly. Am I passing the parameter from the link button incorrectly?
LVL 1
tatton777Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

gsalierCommented:
Do you want this to run server side or client side?
0
gsalierCommented:
Actually, try changing
OnClick="ShowAnswerTable(<%#Eval ("TicketID") %>)">
To
OnClick='ShowAnswerTable(<%#Eval ("TicketID") %>)'>


0
tatton777Author Commented:
I just managed this problem by using the lkSubject_OnClick() method. Thanks.

Please close this question.
0
GranModCommented:
PAQed with points refunded (250)

GranMod
Community Support Moderator
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Programming

From novice to tech pro — start learning today.