0 Replies - 793 Views - Last Post: 18 June 2012 - 01:33 AM Rate Topic: ****- 1 Votes

#1 khadijatemsamani  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 23-December 10

Panel backgroundimage

Posted 18 June 2012 - 01:33 AM

Hi programmers, when I am stuck, I am superglue stuck.
i have a panel in a gridview and can not put background image to the panel or the table in the panel. they do not appear.
when i take the table out onto a new form IT WORKS!!!!!!!
i am boggled
Below is the code, it is in a gridview

<asp:Panel ID="pnlPerson" runat="server"  Width="524px" Height="502px" BackImageUrl="~/backMail.PNG" Wrap="True" Visible="True">
                                <div style="float: right;">
                                <table width="524px" style="height:502px; background-image: url('backMail.PNG'); background-repeat: no-repeat;" dir="rtl" id="TT1">
        <tr>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td colspan="2">
                <table width="100%">
                    <tr>
                        <td width="45px">
                            &nbsp;</td>
                        <td width="70px">
                            من
                                </td>
                        <td>
                                <asp:Label ID="Label8" runat="server" Text='<%# Bind("s_name") %>'></asp:Label></td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;</td>
                        <td>
                            الموضوع&nbsp;&nbsp;</td>
                        <td>
                               <asp:Label ID="Label7" runat="server" Text='<%# Bind("subject") %>'></asp:Label></td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;</td>
                        <td colspan="2" valign="top">
                            <table id="TT2" width="100%">
                                <tr>
                                    <td width="70">
                                        الرسالة&nbsp;&nbsp;</td>
                                    <td>
                                    <asp:Label ID="Label9" runat="server" Text='<%# Bind("message") %>' 
                                            ForeColor="White" Font-Bold="True" style="color: #000000"></asp:Label>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td align="center" colspan="2">
                   <iframe src="compose.aspx?id=<%# Eval("id") %>" width="495px" height="300px" 
                    scrolling="no" id="I1" name="I1"></iframe></td>
        </tr>
        <tr>
            <td colspan="2">
                   <asp:ImageButton ID="lnkClose" runat="server" Text="Cancel" ImageUrl="~/images/drop.png" Height="35px" Width="35px" /></td>
        </tr>
        </table>
                                </div>
                    
                            </asp:Panel>
                            <cc1:ModalPopupExtender ID="extPerson" runat="server" TargetControlID="lblPerson"
                                PopupControlID="pnlPerson" DropShadow="true" CancelControlID="lnkClose" X="150">
                            </cc1:ModalPopupExtender>


Is This A Good Question/Topic? 0
  • +

Page 1 of 1