Why nothing is shown in new dialog box when I want to create new website or Project?

Last post 08-30-2007 2:57 AM by Swati Jain. 3 replies.

Sort Posts:

  • Why nothing is shown in new dialog box when I want to create new website or Project?

    08-29-2007, 5:58 AM
    • Participant
      1,353 point Participant
    • Swati Jain
    • Member since 05-24-2006, 8:29 AM
    • Pune
    • Posts 731

    Hi ,

    When I open visual studio 2005 , File---> New--->Website or project

    one dialog box is opened, but it dont show any type of project.

    What to do to get out of the situation.?

     

    Swati

     

     

    create template

    create site column

    create content type

    Add template and site columns to content type

    Add content type to document library



    ---------------------------------------
    public class Block : System.Web.UI.WebControls.WebParts.WebPart
    {
    string m_scriptBlock = "";
    string m_scriptKey = "scriptKey";

    //Key Property
    [Personalizable(PersonalizationScope.Shared), WebBrowsable(true),
    WebDisplayName("Script Key"),
    WebDescription("A unique key for the script.")]
    public string ScriptKey
    {
    get { return m_scriptKey; }
    set { m_scriptKey = value; }
    }

    //Script Property
    [Personalizable(PersonalizationScope.Shared), WebBrowsable(true),
    WebDisplayName("Script"),
    WebDescription("The JavaScript to insert in the page.")]
    public string Script
    {
    get { return m_scriptBlock; }
    set { m_scriptBlock = value; }
    }

    protected override void OnPreRender(EventArgs e)
    {
    base.OnPreRender(e);

    if (m_scriptBlock != "" &&
    !Page.ClientScript.IsClientScriptBlockRegistered(m_scriptKey))
    Page.ClientScript.RegisterClientScriptBlock(
    typeof(string), m_scriptKey, m_scriptBlock, true);

    }
    }

    -----------------------------------------






    protected override void CreateChildControls()
    {
    base.CreateChildControls();

    try
    {
    if (_userControl != defaultText)
    {
    _control = this.Page.LoadControl(_userControl);
    }
    else
    {
    _control = new LiteralControl(string.Format("To link to content, open the tool pane and then type a URL in the Link text box.", 1, 129, this.ID));
    }
    }
    catch (System.Exception ex)
    {
    _control = new LiteralControl(string.Format("Error: unable to load {0}
    Details: {1}", _userControl, ex.Message));
    }

    if (_control != null)
    {
    // Add to the Controls collection to support postback
    this.Controls.Add(_control);
    }
    }









    -------------------------------------------------------------------------
    opening the template inline in list view?

    Redirecting different content type to different folder



    C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\CONTROLTEMPLATES --for multiple sharepont apps


    ------------------------------------------------------
    For creating webPart automatic

    create blank project --> add new component --> webpart
    --------------------------------------------------------


    custom event Handler
    In class library

    orders.EventReceivers.Add
  • Re: Why nothing is shown in new dialog box when I want to create new website or Project?

    08-29-2007, 10:33 AM

    It looks like templates might be missing. Try running devenv /installvstemplates from command line.

    Thanks

    ------------------------------------------------------------

    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: Why nothing is shown in new dialog box when I want to create new website or Project?

    08-30-2007, 1:52 AM
    • Participant
      1,353 point Participant
    • Swati Jain
    • Member since 05-24-2006, 8:29 AM
    • Pune
    • Posts 731

    Hi Mikhail ,

          I tried running the command, as you have suggested. But I didnt get the output. Instead No projects were present in template and all other controls on dialog box disabled as previous.Thanks for replying the post

    Swati

    create template

    create site column

    create content type

    Add template and site columns to content type

    Add content type to document library



    ---------------------------------------
    public class Block : System.Web.UI.WebControls.WebParts.WebPart
    {
    string m_scriptBlock = "";
    string m_scriptKey = "scriptKey";

    //Key Property
    [Personalizable(PersonalizationScope.Shared), WebBrowsable(true),
    WebDisplayName("Script Key"),
    WebDescription("A unique key for the script.")]
    public string ScriptKey
    {
    get { return m_scriptKey; }
    set { m_scriptKey = value; }
    }

    //Script Property
    [Personalizable(PersonalizationScope.Shared), WebBrowsable(true),
    WebDisplayName("Script"),
    WebDescription("The JavaScript to insert in the page.")]
    public string Script
    {
    get { return m_scriptBlock; }
    set { m_scriptBlock = value; }
    }

    protected override void OnPreRender(EventArgs e)
    {
    base.OnPreRender(e);

    if (m_scriptBlock != "" &&
    !Page.ClientScript.IsClientScriptBlockRegistered(m_scriptKey))
    Page.ClientScript.RegisterClientScriptBlock(
    typeof(string), m_scriptKey, m_scriptBlock, true);

    }
    }

    -----------------------------------------






    protected override void CreateChildControls()
    {
    base.CreateChildControls();

    try
    {
    if (_userControl != defaultText)
    {
    _control = this.Page.LoadControl(_userControl);
    }
    else
    {
    _control = new LiteralControl(string.Format("To link to content, open the tool pane and then type a URL in the Link text box.", 1, 129, this.ID));
    }
    }
    catch (System.Exception ex)
    {
    _control = new LiteralControl(string.Format("Error: unable to load {0}
    Details: {1}", _userControl, ex.Message));
    }

    if (_control != null)
    {
    // Add to the Controls collection to support postback
    this.Controls.Add(_control);
    }
    }









    -------------------------------------------------------------------------
    opening the template inline in list view?

    Redirecting different content type to different folder



    C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\CONTROLTEMPLATES --for multiple sharepont apps


    ------------------------------------------------------
    For creating webPart automatic

    create blank project --> add new component --> webpart
    --------------------------------------------------------


    custom event Handler
    In class library

    orders.EventReceivers.Add
  • Re: Why nothing is shown in new dialog box when I want to create new website or Project?

    08-30-2007, 2:57 AM
    • Participant
      1,353 point Participant
    • Swati Jain
    • Member since 05-24-2006, 8:29 AM
    • Pune
    • Posts 731

    Hi Mikhail,

      Project are loaded successfuly after running the command

    <installdirectory>/Common 7/IDE in commandline

     I can open the File--->New--->Projects

    but still

    File---->New------>Websites is not showing anything in  template.now I am trying for that

      Thanks and Regards,

    Swati Jain

     

    create template

    create site column

    create content type

    Add template and site columns to content type

    Add content type to document library



    ---------------------------------------
    public class Block : System.Web.UI.WebControls.WebParts.WebPart
    {
    string m_scriptBlock = "";
    string m_scriptKey = "scriptKey";

    //Key Property
    [Personalizable(PersonalizationScope.Shared), WebBrowsable(true),
    WebDisplayName("Script Key"),
    WebDescription("A unique key for the script.")]
    public string ScriptKey
    {
    get { return m_scriptKey; }
    set { m_scriptKey = value; }
    }

    //Script Property
    [Personalizable(PersonalizationScope.Shared), WebBrowsable(true),
    WebDisplayName("Script"),
    WebDescription("The JavaScript to insert in the page.")]
    public string Script
    {
    get { return m_scriptBlock; }
    set { m_scriptBlock = value; }
    }

    protected override void OnPreRender(EventArgs e)
    {
    base.OnPreRender(e);

    if (m_scriptBlock != "" &&
    !Page.ClientScript.IsClientScriptBlockRegistered(m_scriptKey))
    Page.ClientScript.RegisterClientScriptBlock(
    typeof(string), m_scriptKey, m_scriptBlock, true);

    }
    }

    -----------------------------------------






    protected override void CreateChildControls()
    {
    base.CreateChildControls();

    try
    {
    if (_userControl != defaultText)
    {
    _control = this.Page.LoadControl(_userControl);
    }
    else
    {
    _control = new LiteralControl(string.Format("To link to content, open the tool pane and then type a URL in the Link text box.", 1, 129, this.ID));
    }
    }
    catch (System.Exception ex)
    {
    _control = new LiteralControl(string.Format("Error: unable to load {0}
    Details: {1}", _userControl, ex.Message));
    }

    if (_control != null)
    {
    // Add to the Controls collection to support postback
    this.Controls.Add(_control);
    }
    }









    -------------------------------------------------------------------------
    opening the template inline in list view?

    Redirecting different content type to different folder



    C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\CONTROLTEMPLATES --for multiple sharepont apps


    ------------------------------------------------------
    For creating webPart automatic

    create blank project --> add new component --> webpart
    --------------------------------------------------------


    custom event Handler
    In class library

    orders.EventReceivers.Add
Page 1 of 1 (4 items)