Answered file not found error ascx

  • vendredi 11 mai 2007 15:44
     
     

    i have created a new webusercontrol and registered it to default.aspx using register tag in sharepoint designer.

    but when i open the default.aspx, it gives "file not found error".

    can somebody please help me on this

     

    regards

Toutes les réponses

  • lundi 14 mai 2007 09:27
     
     Traitée

    This is the tag for registered the webusercontrol (default.aspx):

    <%@ Register TagPrefix="uc2"  TagName="CONTROL" src="~/_controltemplates/CONTROL.ascx" %>

     

    The files of the web user control must be add to: c:\..\..\Microsoft Shared\web server extensions\12\TEMPLATE\CONTROLTEMPLATES

     

    I add the files: CONTROL.ascx and CONTROL.ascx.cs (I don't know how i could add only Control.ascx)

  • lundi 14 mai 2007 15:06
     
     
    I don't know if that will work , but I think you need the publish wizard in visual studio to compile and publish the ascx only. That is the compiled version without the cs file. This works for ASP.net don't know if the same will work for sharepoint or not.