How to use WAP User Control Libraries from Web Site Project?

Last post 08-04-2006 4:43 AM by MNF. 2 replies.

Sort Posts:

  • How to use WAP User Control Libraries from Web Site Project?

    05-22-2006, 9:39 PM
    • Member
      259 point Member
    • MNF
    • Member since 07-24-2005, 8:15 PM
    • Posts 72

    Tutorial 6: Creating and Using User Control Libraries describes how to consume WAP User Control Libraries from WAP project.

    What is required to consume WAP  User Control Libraries from Web Site project?

  • Re: How to use WAP User Control Libraries from Web Site Project?

    07-11-2006, 11:31 PM
    • Member
      259 point Member
    • MNF
    • Member since 07-24-2005, 8:15 PM
    • Posts 72

    1. I've created Web Apllication Project for User Control  Library.

    2.I've added post-build action in User Control  Library to copy dll and *.ascx files to Web Site Project.

    copy  $(ProjectDir)*.ascx  C:\Projects\WEBSITEProject\UserControlsSubfolder
    copy $(TargetDir)$(TargetFileName) C:\Projects\WEBSITEProject\Bin

    3. Unfortunately I have manually remove CodeBehind="UserControl.ascx.vb" from copied ASCX files.(otherwise Web Site build shows compile errors that vb file not found)

    Does anyone has a suggestion, how to avoid step 3?

  • Re: How to use WAP User Control Libraries from Web Site Project?

    08-04-2006, 4:43 AM
    • Member
      259 point Member
    • MNF
    • Member since 07-24-2005, 8:15 PM
    • Posts 72
    I've created utility to automatically Remove CodeBehind attribute from copied Ascx files. See my blog here.
Page 1 of 1 (3 items)