473,666 Members | 2,324 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

What files to upload to webserver?

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.c s" file,
"Global.asa x" file, "Global.asax.cs " file the .csproj file, the
..csproj.webinf o 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
Jul 21 '05 #1
1 1536
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?

"James Walker" <ja***@jimw.co. uk> wrote in message
news:82******** *************** ***@posting.goo gle.com...
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.c s" file,
"Global.asa x" 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

Jul 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2959
by: dan glenn | last post by:
(PHP 4.3.4) THIS IS DRIVING ME NUTS! I have a website where I offer members their own bit of webspace to use and am coding a very simple 'filemanager' that allows a user to upload, delete, and edit text files (members, of course, will not have normal sign-on FTP access to the site - I just limit them to their own folder space). I'm hitting a real problem with file and directory permissions, in that it seems I'm experiencing...
9
3321
by: Markus Ernst | last post by:
Hi For a CMS admin tool I would like to provide a possibility to upload large files to a directory on the webserver. As HTTP uploads are limited in file size and also not comfortable in handling, I thought of an FTP solution. Displaying a link to ftp://mydomain.com/mydirectory is easy but limited to browsers who can act as FTP clients, such as Internet Explorer. When looking at PHP's FTP functions and googling for web-based FTP
6
2823
by: Chamomile | last post by:
can anyone point me to some straightforward information on file uploading without using an html form? That is, direcly from within a php script. if I know the local path etc. to a particular requested file how can I send it directly to a location on a remote webserver following a request from the remote server? The motivation is that I have a large number of image files that are
3
2635
by: fred4534 | last post by:
Hello, I'm using the GoAhead embedded Webserver (http://webserver.goahead.com/webserver/webserver.htm) which can use only ASP and a set of javascript instructions. I'm trying to make an upload of a file from the client computer to the embedded server and to store it in the memory of the server. All the ASP upload scripts I've found use vbscript functions but this is not possible with the GoAhead Webserver.
3
1401
by: James Walker | last post by:
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"...
2
5950
by: prakharv | last post by:
Hi All, Below is the code which I am using to upload a jpeg file to the server. But the problem I am facing is that it is not copying the entire contents of the image file to the webserver and it doesn't works on IE. Please, help me out as I am new to this and would be highly thankful if anyone has running code for uploading image files to the server using CGI either Perl or C. This code i took it from net only. #!/usr/bin/perl -w
8
3569
by: FFMG | last post by:
Hi, My users can upload images in a folder on my system. What minimum attribute should I give the created, (@fopen($new_file, 'wb');), files and folder? I limit the extension of files, (images), but I want to prevent them from executing any code on the server. What attributes would you suggest?
13
1855
by: Fro | last post by:
Hi, my site allows to upload images. For that reasons I have created a directory which have "drwxrwxrwx"-permission. I.e. everybody can write in that directory. I understand that it is not save, because everybody can upload to this directory some scripts which would destroy my file system or store some information. To make things a little bit better I put there the following .htaccess file: php_flag engine off IndexIgnore *
16
2070
by: Lawrence Krubner | last post by:
To guard against our users possibly uploading huge files, I've got this in my php.ini file: ; Maximum size of POST data that PHP will accept. post_max_size = 10M On a server running Ubuntu Linux. The PHP version: root@ldc310:/etc/php5/cli# php -v
0
8878
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8785
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8644
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7389
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6200
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4372
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2776
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2012
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1778
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.