Results 1 to 5 of 5

Thread: Code behind probs again

  1. #1
    Fanatic Member venerable bede's Avatar
    Join Date
    Sep 02
    Location
    The mystic land of Geordies
    Posts
    992

    Code behind probs again

    I have a solution developed in VS.net.

    Hellsraith pointed out to me that code behind pages cannot be altered on the site as the solution would need recompiling to update the dll in the /bin folder.

    Unfortunatly there is 1 page on my site which I need to frequently change slightly and I dont want to have to recompile every time.

    If I excluded this page from my project but uploaded it to my site could I then alter it and see the changes ?

    Thanks in Advance

    Parksie

  2. #2
    Fanatic Member
    Join Date
    Oct 00
    Location
    Reading, UK
    Posts
    870
    what is it that you need to frequently change? can't you change it dynamically from values stored in a database?

    nick
    www.vb-tech.com
    .Net Freelance Development
    http://weblog.vb-tech.com/nick
    My blog

  3. #3
    Fanatic Member venerable bede's Avatar
    Join Date
    Sep 02
    Location
    The mystic land of Geordies
    Posts
    992
    No.

    The application is written for someone who has some experience of programming and they want to be able to change this code behind page.

    Will excluding it from my project allow him to do this ?

    Parksie

  4. #4
    Addicted Member MasterBlaster's Avatar
    Join Date
    Jul 02
    Location
    Seattle
    Posts
    196
    Code behind is compiled. If you want to change it you have to edit the code and recompile it no matter what.
    "And most of the evils of society can, in fact, be cured through information. We have a society that has been disinformed and based on the disinformation has made irrational choices. And that's what I mean by 'ignorance.' People, who ordinarily might be smart, are deprived of the data by which to make a rational decision, don't have the data to do it."
    Frank Zappa

  5. #5
    Hyperactive Member
    Join Date
    Aug 02
    Location
    Fort Collins, CO
    Posts
    366
    So don't use code behind for that one page. Each page is compiled as requested, so stick the code behind code between <script runat="server"></script> tags in the aspx page. Any changes to that page will be picked up on the first request after saving.

Posting Permissions

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