How to hide designer.vb file in visual studio 2005?

Last post 12-08-2008 1:51 AM by Thomas Sun – MSFT. 3 replies.

Sort Posts:

  • How to hide designer.vb file in visual studio 2005?

    12-03-2008, 11:30 AM
    • Participant
      1,018 point Participant
    • KentZhou
    • Member since 05-03-2006, 3:48 PM
    • Posts 573

    I have two different web application created with VS2005. One of them always display the designer.vb file for all aspx or ascx(nested under the page markup file, there are always two file, *.designer.vb and *.vb)

    Another web app with only *.vb file nested under aspx or ascx file. 

    I know designer.vb is generated by VS automatically and usually do not change it.  So I do want to see the designer.vb file at all. How to do it? 

    I can't figure out why one of my app (solution) shows up designer.vb file and one don't. 

    Help please.

  • Re: How to hide designer.vb file in visual studio 2005?

    12-03-2008, 3:59 PM
    • Member
      606 point Member
    • TheDirtyBird
    • Member since 04-06-2008, 2:15 PM
    • Alabama
    • Posts 225

    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default3.aspx.cs" Inherits="Default3" %>

     

    just delete the CodeFile.

     

    <%@ Page Language="C#" AutoEventWireup="true"  %>

    then just delete the file from the solution explorer.

  • Re: How to hide designer.vb file in visual studio 2005?

    12-03-2008, 4:13 PM
    • Participant
      1,018 point Participant
    • KentZhou
    • Member since 05-03-2006, 3:48 PM
    • Posts 573

    Don't understand.

    For each aspx, there are three files: *.aspx, *.aspx.vb, *.designer.vb. you suggest delete the codebehind file? I only want to hide the partial class file *.designer.vb.

    same for vb or c#. 

  • Re: How to hide designer.vb file in visual studio 2005?

    12-08-2008, 1:51 AM
    Answer

    Hi,

    There are two ASP.NET project types: ASP.NET web application and ASP.NET website.

    The page of former has three files, including *.aspx, *.aspx.vb, *.designer.vb. And website project only contains *.aspx, *.aspx.vb. This is by design.

    If we don't want to see  *.designer.vb, we can use ASP.NET website project.

     

    I look forward to hearing from you.

    Thomas Sun
    Microsoft Online Community Support

    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question.
Page 1 of 1 (4 items)