Migration to 2.0: Codebehind file must exist?

Discussion in 'ASP .Net' started by DC, Jan 23, 2006.

  1. DC

    DC Guest

    Hi,

    with ASP 1.1 we use "satellite" Projects to develop Usercontrols. We
    then copy only the .ascx and the .dll to the actual webproject.

    Trying to migrate such a project to 2.0 does not work since the
    compiler complaints about the missing Codebehind .cs file.

    Is it possible to use the .ascx without codefiles in 2.0?

    TIA for any hint,

    Regards
    DC
     
    DC, Jan 23, 2006
    #1
    1. Advertising

  2. DC

    Guest

    DC,

    MS is going to put out a version of VS 2005 that will use the same
    compile model as ASP.NET 1.1. I don't have the link right now --
    perhaps someone else can respond.

    Jim
     
    , Jan 23, 2006
    #2
    1. Advertising

  3. DC

    Guest

  4. DC

    Jon Paal Guest

    I use 2.0 without codebehind ....




    "DC" <> wrote in message news:...
    > Hi,
    >
    > with ASP 1.1 we use "satellite" Projects to develop Usercontrols. We
    > then copy only the .ascx and the .dll to the actual webproject.
    >
    > Trying to migrate such a project to 2.0 does not work since the
    > compiler complaints about the missing Codebehind .cs file.
    >
    > Is it possible to use the .ascx without codefiles in 2.0?
    >
    > TIA for any hint,
    >
    > Regards
    > DC
    >
     
    Jon Paal, Jan 23, 2006
    #4
  5. DC

    Scott Allen Guest

    You could use a Web Deployment Project to pre-compile your user
    controls into just a .dll, and drop the dll in the bin directory.

    http://msdn.microsoft.com/asp.net/reference/infrastructure/wdp/default.aspx

    --
    Scott
    http://www.OdeToCode.com/blogs/scott/

    On 23 Jan 2006 06:17:18 -0800, "DC" <> wrote:

    >Hi,
    >
    >with ASP 1.1 we use "satellite" Projects to develop Usercontrols. We
    >then copy only the .ascx and the .dll to the actual webproject.
    >
    >Trying to migrate such a project to 2.0 does not work since the
    >compiler complaints about the missing Codebehind .cs file.
    >
    >Is it possible to use the .ascx without codefiles in 2.0?
    >
    >TIA for any hint,
    >
    >Regards
    >DC
     
    Scott Allen, Jan 23, 2006
    #5
  6. DC

    DC Guest

    Thanks to everybody for the info. Sounds as if I had to wait for some
    additional MS components.

    Regards
    DC
     
    DC, Jan 25, 2006
    #6
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.

Share This Page