Click here to Skip to main content
15,888,461 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

I am working in sharepoint and using usercontrol to show data in webpage. In my user control there is a asp:listview to where the data is binded. Now what i want to do is for some particular cells, i need to add sharepoint datepicker.Currently am trying to do it with ItemDataBound event. But to find the tell i have an anchor tag of id='hrefnamen'; n can be from 1 to 70. So how can i find the tell that has a hyperlink of id hrefname+n.

If i use FindControl, where we need to give the full id value,which is not feasible. So how can i achieve this. Am i doing something wrong. If so, how can i added these date pickers dynamically to list view



C#
<asp:ListView ID="listExcelData" runat="server" ItemPlaceholderID="PlaceHolder2">
    
                <ItemTemplate>
                    <tr>
                       
                           
                        <asp:ListView runat="server" ID="PlaceHolder2" DataSource='<%# ((System.Data.DataRowView)Container.DataItem).Row.ItemArray %>'>
                            <ItemTemplate>
                                <td><%# Container.DataItem %></td>
                            </ItemTemplate>
                        </asp:ListView>
                    </tr>
                </ItemTemplate>
            </asp:ListView>


This is the list view and am trying to write the event for the listExcelData.

Thanks in advance
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900