Click here to Skip to main content
15,891,855 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi frnds!!!

I am new in asp.net and I have just created my website on asp.net and also hosted it on server and it is working fine...but my problem is that, when I update any thing in aspx file it is updated very quickly but when I want to update my aspx.cs file then no data is updated and if I run same website on local system it is working fine and every update either in code or in designing is successful on local sercer... kindly tell me reason of this problem!!!
Posted
Comments
manak chand 26-Feb-15 1:22am    
how do you deploy your code.. I mean Code changes..
Member 10325769 26-Feb-15 1:33am    
sir I have uploaded project folders and files on server through filezila and now when i want any change on my sebsite I go to the website panel and edit data from panel and update it.
Shridhar Gowda 26-Feb-15 2:04am    
In .net, whatever client side pages (.aspx, .js, .css, images etc) should be there in server. Same will be presented on client's browser. But .cs pages are server side pages which are not required by server. Instead, all data in .cs will be in .dll file in "bin" directory. So just notice that whether .dll is updating every time you build the application. That is enough. You can delete .cs files from server which is absolutely not required.
manak chand 26-Feb-15 2:23am    
Thanks shridhar.. I also means to say the same thing.. you need to take a release build and update the dll file.. then restart the IIS.. your changes should reflect..
Member 10325769 27-Feb-15 6:28am    
Thnks for replying sir..... sir I have built my project and also updated my dll files from bin library only but sir now website is running on server but website does not accessing data from database...I have just updated dll file from bin folder nothing else...

1 solution

Shridhar Gowda is correct. When you make a code change, just build the Project and transfer only the dlls present in the bin folder, which are updated by the Build.

One very easy of doing this is to use Publish Feature from Visual Studio. When you hit Publish, it would give you the files or dlls that are currently updated. You can save it to a Folder and then Transfer manually through the FTP Client or Publish directly to the FTP Folders.

Refer - How to: Deploy a Web Project Using One-Click Publish in Visual Studio[^].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900