PDA

Click to See Complete Forum and Search --> : Code behind probs again


venerable bede
Feb 10th, 2004, 03:37 AM
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

nswan
Feb 10th, 2004, 05:30 AM
what is it that you need to frequently change? can't you change it dynamically from values stored in a database?

nick

venerable bede
Feb 10th, 2004, 05:45 AM
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 ?

MasterBlaster
Feb 10th, 2004, 05:20 PM
Code behind is compiled. If you want to change it you have to edit the code and recompile it no matter what.

pvb
Feb 10th, 2004, 07:46 PM
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.