Wednesday, 4 July 2012

ASCX(.ascx)

STEP 1: Create a VisualWebPart like AppsDetailsPage

STEP 2: Write a coding in AppsDetailsPageUserControl.ascx


STEP 3:

<asp:DataList runat="server" ID="Apps" RepeatColumns="3" RepeatDirection="Horizontal"
    OnItemDataBound="Apps_ItemDataBound" DataKeyField="Title" CellPadding="10" CellSpacing="10">
    <ItemStyle VerticalAlign="Top" />
    <ItemTemplate>
        <table cellpadding="0" cellspacing="0" width="298px" border="0">
            <tr>
                <td class="apps_title">
                    <%# Eval("Title")%>
                </td>
            </tr>
            <tr>
                <td class="apps_center">
                    <asp:DataList ID="Appscat" runat="server">
                        <ItemTemplate>
                            <asp:LinkButton ID="lnkbtnUrl" CausesValidation="false" PostBackUrl='<%# Eval("AppsUrl")%>'
                                runat="server">
                                                   <%# Eval("Category")%>
                            </asp:LinkButton>
                        </ItemTemplate>
                    </asp:DataList>
                </td>
            </tr>
            <tr>
                <td class="apps_bottom">
                </td>
            </tr>
        </table>
    </ItemTemplate>
</asp:DataList>
 

No comments:

Post a Comment

SharePoint online - Get List-item attachments and Display to div

Step 1 : Create a List ex: TestList and attach few images Step 2 : Copy and Pastet the below coding in App.js var  Items =  null ; ...