What files to upload to webserver?

J

James Walker

Hi there,

I'm just starting to write my second ASP.NET webpage in C# and want
some way of easily splitting out those files that are needed to be
uploaded to the webserver - i.e. i create a project on my local
machine in VS.NET and it creates the "AssemblyInfo.cs" file,
"Global.asax" file, "Global.asax.cs" file the .csproj file, the
..csproj.webinfo file, a default .aspx file etc and a subfolder called
"bin"...

.... now i dont need all these uploaded to the webserver on the live
system - just the .asax, .aspx files and the bin "subfolder" - i
especially don't want the .cs files as i don't want my source code
available to anyone else that might ftp into the web server! On my
last project i just manually selected each file to upload and did it
that way, but with this project there will be a lot more aspx files so
it will be a lot more hassle...

I've had a brief look through the project and solution properties in
VS.NET and can't immediately find a way of splitting the .cs and .aspx
files into different folders so i can just upload a single folder
through FTP...

.... am i being really thick???

Cheers

James
 
M

Mohamoss

Hi James
The files that you mentioned are exactly the files that you need
to upload to your server ( you don't need any thing else ) so I don't think
there is a problem just get your bin , aspx ,web.config , and asax files to
the server . One other thing you can do however, is to use Visual Studio to
create a web setup to you project, this will be more easier if you have to
remove a lot of files. Hope this helps
Mohamed Mahfouz
MEA Developer Support Center
ITworx on behalf of Microsoft EMEA GTSC
 
J

James Walker

Hi Mohamoss,

Thanks for the reply, but I think you have misunderstood what i am
asking!! I would like some way of separating those files needed to
upload to the webserver (i.e. the bin folder, the ascx, aspx and
web.config files) from those files that aren't needed to be uploaded
(i.e. the .cs files) so i therefore have a single folder with everything
i need to upload in, rather than having to pick out those individual
files that are needed!

Does that make sense?

Kind Regards

James

*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
 
S

SStory

not sure in C#

IN VB.NET, you use code behind files...which I assume you are doing, then
you click one of the icons at the top of the solution explorer and it only
shows the ASPX files and hides the .vb files.

Is this sort of what you wanted?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top