-
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
-
what is it that you need to frequently change? can't you change it dynamically from values stored in a database?
nick
-
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 ?
-
Code behind is compiled. If you want to change it you have to edit the code and recompile it no matter what.
-
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.