Click here to Skip to main content
16,021,710 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi..
I made one website in asp.net.. I published it.. After Published I can't see the source code of C#.. What should I do for get it.. because I want to modify it..
Pls help me..
Posted

The whole idea of Publish is that compiles the whole project and releases it as a complete package, without the source code being visible - it's a way of protecting your code from other people.

However, the code still exists on your development machine, so you should be able to edit it. It's only the destination that gets scrubbed and overwritten with the new, compiled version.
 
Share this answer
 
Comments
Jayname 3-Sep-11 7:16am    
yes.. Dear I understand ur Ans.. Thank You very much.. But I want to know.. How to see source code on published website.. Like real coding.. I have seen by using reflector but it's very hard.. and very difficult to modify...
OriginalGriff 3-Sep-11 7:20am    
You can't - the whole idea of publishing is that the source code does not leave the development environment and go into the production one.
The alternative is to delete the published site and replace it with your source code included version - you can then view the code on it (but be careful with your Web.Config and suchlike files - you don't want to replace the connection strings and so forth).
Publishing the website, means its is ready to use at client-side. Any client can't change any thing on the website.

If you(developer) want to change or modify any content, you can do this only on the machine, from where you have published the website.
 
Share this answer
 
Comments
Jayname 3-Sep-11 7:24am    
if we have not source code from where published.. we can't modify???
Harshad-HBK 6-Sep-11 2:28am    
sorry to say but i think it is not possible...
SQL
if we have not source code from where published.. we can't modify???
 
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