调试启动页直接在.net里右键该页,设为启动页
如果站点首页,则要到IIS里设置默认页

解决方案 »

  1.   

    winform 在main函数中
    webform 在iis中
      

  2.   

    在main函数中怎么设呀,刚学的,请大家多指教。
      

  3.   

    不是asp.net程序,是在winform中右键没有设为启动页呀!
      

  4.   

    /// <summary>
    /// 应用程序的主入口点。
    /// </summary>
    [STAThread]
    static void Main() 
    {
       Application.Run(new Form1());
    }
    Form1就是要启动的窗体Web方面的在IIS中设置 或者.net里右键该页,设为启动页
      

  5.   

    static void Main() 
    {
       Application.Run(new Form1());
    }
      

  6.   

    Main函数中
    Application.Run(new Form1());