Results 1 to 4 of 4

Thread: Code behind edit problem

  1. #1

    Thread Starter
    Fanatic Member venerable bede's Avatar
    Join Date
    Sep 2002
    Location
    The mystic land of Geordies
    Posts
    1,018

    Code behind edit problem

    I copied my site onto a live server and found that I was having trouble with my SMTP mail.

    I opened the code behind page of the email page in Notepad (on the server) and commented out a large chunk of code.

    When I saved the page and tried to run the site the site ran as normal, as if the changes never occured.

    Can someone explain this to me please ?

    Thanks in Advance

    Parksie

  2. #2
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    Sure, the dll never changed, only the code behind file. You would need to recompile your app so the changes are in the dll, then stick the new dll with the changes into the bin directory over top the old one.

    ASP.Net doesn't compile the code on the fly to IL, you do that from the IDE or command line when you select build. The dll that is created is the IL compiled version of all your code. That is what the asp.net worker process uses to run your web app.

  3. #3

    Thread Starter
    Fanatic Member venerable bede's Avatar
    Join Date
    Sep 2002
    Location
    The mystic land of Geordies
    Posts
    1,018
    Thanks.

    Is there any way to compile the code behind without Visual Studio.net ?

    Parksie

  4. #4

    Thread Starter
    Fanatic Member venerable bede's Avatar
    Join Date
    Sep 2002
    Location
    The mystic land of Geordies
    Posts
    1,018
    It just seems a pain having to copy over an entire sites files when I have only changed 1 line of code.

    Parksie

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width