html - Listview CommandName applied to table -


i'm using following listview markup render table each object retrieved database...

<asp:listview id="dayslistview" runat="server" visible="false" onitemcommand="weekslistviewcommand" datakeynames="date, weekid, entryid">     <itemtemplate>         <table  style="background-color:#2e425f; padding-top:10px; padding-bottom:10px; padding-right:5px; padding-left:5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; border-radius: 5px; border: 1px solid #7795bf">             <tr>                 <td style="width:120px"><asp:linkbutton id="daynamelinkbutton" style="color:white; font-size:14pt" cssclass="datelinktext" runat="server" commandname="dayclickcommand"><%#eval("dayofweek") %></asp:linkbutton></td>                 <td align="right" style="width:150px"><asp:linkbutton id="daylinkbutton" cssclass="datelinktext" runat="server" commandname="dayclickcommand"><%#eval("dateformatted") %></asp:linkbutton></td>             </tr>             <tr>                 <td colspan="2"><asp:label id="jobdesclabel" runat="server"><%#eval ("jobdescription") %></asp:label> </td>             </tr>             <tr>                 <td><asp:label id="daystatuslabel" cssclass="completetxt" runat="server"><%#eval("entryhalfdaystring") %><%#eval("entryfulldaystring") %></asp:label></td>                 <td align="right" style="color:white; font-size:9pt"><asp:linkbutton id="deleteentry" runat="server" forecolor="white" font-size=9pt commandname="deleteentry" text="delete"></asp:linkbutton></td>             </tr>         </table>         <br />     </itemtemplate> </asp:listview> 

clicking daynamelinkbutton or daylinkbutton runs dayclickcommand. click anywhere result in dayclickcommand command being run. commandname not property of table there not appear simple way of doing this.

anyone know way or workaround might able use?

many thanks


Comments

Popular posts from this blog

android - questions about switching from C2DM to GCM -

c++ - Qt setGeometry: Unable to set geometry -

batch file - How to extract all multi-volume RAR archives from subfolders of a folder? -