Wednesday, 20 June 2012

ASCX(.ascx)

STEP 1: Create a VisualWebPart like DepartmentImage

STEP 2: Write a coding in DepartmentImageUserControl.ascx


STEP 3:



<div class="menu_bg_sd_new">
    <div class="menu_left_sd_new">
    </div>
    <div class="menu_right_sd_new">
    </div>
</div>
<div class="menu_bg_sd_mid">
    <table width="100%" border="0" style="height: 10px;" cellspacing="0" cellpadding="0">
        <tr class="menu_bg_sd_mid">
            <td class="menu_left_sd_mid" width="2%">
                &nbsp;
            </td>
            <td width="95%" class="content_styleEdit" style="line-height: 10px !important;" align="right">
                <asp:ImageButton ID="ImageButton1" runat="server" Height="20" Width="20" ImageUrl="/_layouts/images/VCSB/note.png" />
            </td>
            <td class="menu_right_sd_mid" width="3%">
                &nbsp;
            </td>
        </tr>
    </table>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr class="menu_bg_sd_mid">
            <td class="menu_left_sd_mid" width="2%">
                &nbsp;
            </td>
            <td width="80%" class="content_style" align="center">
                <asp:ImageButton ID="imgFileImage" runat="server" ImageUrl="" Height="180" Width="511"
                    ImageAlign="Middle" />
            </td>
            <td class="menu_right_sd_mid" width="3%">
                &nbsp;
            </td>
        </tr>
    </table>
</div>
<div class="menu_bg_sd_bot">
    <div class="menu_left_sd_bot">
    </div>
    <div class="menu_right_sd_bot">
    </div>
</div>

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 ; ...