954,566 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

uploading a website without its cs files

Hi All,

I am developing a website using asp.net 2.0 and C# as my language and would like to know if it possible to upload a website without its cs files. if how is it possible?

Regards
unicorn11

unicorn11
Newbie Poster
6 posts since Mar 2006
Reputation Points: 10
Solved Threads: 0
 

You can do inline code instead of using code-behind. That way, all the code is included directly on the ASP page:

http://quickstarts.asp.net/QuickStartv20/aspnet/doc/pages/codebehind.aspx

But, why would you want to do that?

alc6379
Cookie... That's it
Team Colleague
2,820 posts since Dec 2003
Reputation Points: 186
Solved Threads: 147
 

Just compile the website and upload only the .aspx files to the web server. The cs files are not required all the code in the .cs files is compiled into the single .dll in the bin folder.

hollystyles
Veteran Poster
1,182 posts since Feb 2005
Reputation Points: 262
Solved Threads: 68
 

thanks holly,


alc6379- so that my code will not be available to the client unless they pay up completely :P

unicorn11
Newbie Poster
6 posts since Mar 2006
Reputation Points: 10
Solved Threads: 0
 

Ok... your post wasn't so clear.... Yeah-- you can pre-compile the site... Even make a deployment project so the client can install the web app themselves...

alc6379
Cookie... That's it
Team Colleague
2,820 posts since Dec 2003
Reputation Points: 186
Solved Threads: 147
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You