Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Hide portion of the page
Message
From
22/01/2008 04:05:50
 
General information
Forum:
ASP.NET
Category:
Other
Environment versions
OS:
Windows XP
Miscellaneous
Thread ID:
01283757
Message ID:
01283925
Views:
13
This message has been marked as a message which has helped to the initial question of the thread.
>Hi everybody,
>
>I have a page with a login Index.aspx which I can modify. The login section is
>
>
>                                    <!--<tr>
                                        <td>
                                            <img height="25" src="img/tit_login.gif" width="154"></td>
                                    </tr>
                                    <tr>
                                        <td background="img/img_login_bg.gif">
                                            <asp:Panel ID="pnlLogin" runat="server">
                                                <table id="tbleLogin" cellspacing="0" cellpadding="4" width="80%" align="center"
                                                    border="0">
                                                    <tr>
                                                        <td>
                                                             
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <div align="center">
                                                                <img height="13" src="img/tit_username.gif" width="70"></div>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <div align="center">
                                                                <input class="input" id="txtbUname" type="text" size="15" name="textfield" runat="server">
                                                            </div>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <div align="center">
                                                                <img height="13" src="img/tit_password.gif" width="67"></div>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <div align="center">
                                                                <input class="input" id="Password1" type="password" size="15" name="textfield" runat="server">
                                                            </div>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <div align="center">
                                                                <asp:ImageButton ID="imgbtLogin" runat="server" ImageUrl="img/btn_enter.gif"></asp:ImageButton></div>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <asp:Label ID="lblWrongPwd" runat="server" ForeColor="Red" Visible="False">Incorrect Password</asp:Label>
                                                            <asp:RequiredFieldValidator ID="rfvUsername" runat="server" Font-Size="Small" ErrorMessage="Username Required."
                                                                Display="Dynamic" ControlToValidate="txtbUname">Username Required.</asp:RequiredFieldValidator>
                                                            <asp:RequiredFieldValidator ID="rfvPassword" runat="server" Font-Size="Small" ErrorMessage="Password Required."
                                                                Display="Dynamic" ControlToValidate="Password1">Password Required.</asp:RequiredFieldValidator></td>
                                                    </tr>
                                                </table>
                                            </asp:Panel>
                                            <asp:Panel ID="pnlMember" runat="server" Visible="False">
                                                <table id="tblMember" cellspacing="0" cellpadding="2" width="80%" align="center"
                                                    border="0">
                                                    <tr>
                                                        <td class="loggedfrontpage">
                                                             
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="loggedfrontpage">
                                                            <asp:Label ID="lblName" runat="server" BackColor="Transparent" CssClass="loggedfrontpage"></asp:Label></td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <br>
                                                            <table cellspacing="0" cellpadding="2" width="100%" border="0" visible="false">
                                                                <tr>
                                                                    <td width="10">
                                                                        <img height="10" src="img/arrow_blue.gif" width="10"/></td>
                                                                    <td>
                                                                        <a class="loggedmenulink" href="pProfile.aspx">My Profile</a>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td>
                                                                        <img height="10" src="img/arrow_blue.gif" width="10"/></td>
                                                                    <td>
                                                                        <a id="lnkCalander" class="loggedmenulink" runat="server">Calendar</a></td>
                                                                </tr>
                                                                <tr>
                                                                    <td>
                                                                        <img height="10" src="img/arrow_blue.gif" width="10"></td>
                                                                    <td>
                                                                        <a id="lnkPhotos" class="loggedmenulink" runat="server">Photos</a></td>
                                                                </tr>
                                                                <tr>
                                                                    <td>
                                                                         
                                                                    </td>
                                                                    <td>
                                                                         
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td>
                                                                        <img height="10" src="img/arrow_blue.gif" alt="" width="10"></td>
                                                                    <td>
                                                                        <asp:LinkButton ID="lnkbtLogout" runat="server" OnClick="lnkbtLogout_Click">Log Out </asp:LinkButton></td>
                                                                </tr>
                                                            </table>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                             
                                                        </td>
                                                    </tr>
                                                </table>
                                            </asp:Panel>
                                        </td>
                                    </tr>-->
>
>
>We want to hide this (thus commenting this code), but apparently the code is used by the code behind, so we can not just remove this info from the page by commenting - it gives an error.
>
>The question is - how can I hide all this part. There is a video right where the login section is and we want video, not the login.

You could try adding a 'Visible="False"' attribute to the elements you want to suppress although that may cause problems if they are referenced from the browser.
HTH,
Viv
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform