Jump to content
  • Advertisement
Sign in to follow this  
Alpha_ProgDes

[web] Closed Web Parts and now they won't show up

This topic is 3688 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm using Visual Web Developer 2005 (.NET). Basically I created 3 Web Parts and in the menu selected "close". Now whenever I rerun the web app, the Web Parts will not show at all. How do I fix this?
<%@ Page Language="C#" Debug="true" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>
<%@ register tagprefix="uc1" tagname="SearchUserControl" src="~/searchusercontrolcs.ascx" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <asp:WebPartManager id="webpartmanager1" runat="server" />
        <table cellspacing="0" cellpadding="0" border="0">
            <tr>
                <td valign="top">
                    <asp:WebPartZone id="SideBarZone" runat="server" headertext="SideBar">
                        <ZoneTemplate>
                            <asp:label runat="server" id="linkspart" title="links">
                                <a href="http://www.gamedev.net">GameDev</a>
                                <br />
                                <a href="http://www.yahoo.com">Yahoo!</a>
                                <br />
                                <a href="http://www.codeproject.com">Code Project</a>
                                <br />
                            </asp:label>
                            <uc1:SearchUserControl id="searchPart" runat="server" title="Search" />   
                        </ZoneTemplate>
                    </asp:WebPartZone>
                </td>
                <td valign="top">
                    <asp:WebPartZone id="MainBarZone" runat="server" headertext="MainZone">
                        <ZoneTemplate>
                            <asp:label runat="server" id="contentPart"  title="Content">
                                <h2>Welcome to My Web Parts Demo!</h2>
                                <p>I have no links to provide you. Thanks!</p>
                            </asp:label>
                        </ZoneTemplate>
                    </asp:WebPartZone>
                </td>
                <td valign="top"></td>
            </tr>
       </table>
    </form>
</body>
</html>

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!