Advertisement Jump to content
Sign in to follow this  

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

This topic is 3842 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" "">

<html xmlns="" >
<head runat="server">
    <title>Untitled Page</title>
    <form id="form1" runat="server">
    <asp:WebPartManager id="webpartmanager1" runat="server" />
        <table cellspacing="0" cellpadding="0" border="0">
                <td valign="top">
                    <asp:WebPartZone id="SideBarZone" runat="server" headertext="SideBar">
                            <asp:label runat="server" id="linkspart" title="links">
                                <a href="">GameDev</a>
                                <br />
                                <a href="">Yahoo!</a>
                                <br />
                                <a href="">Code Project</a>
                                <br />
                            <uc1:SearchUserControl id="searchPart" runat="server" title="Search" />   
                <td valign="top">
                    <asp:WebPartZone id="MainBarZone" runat="server" headertext="MainZone">
                            <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>
                <td valign="top"></td>

Share this post

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

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!