IamWasim

I am developing a program to control uploading and downloading a file using vb.net. I want, if a user want to download something, it asks for administrator authentication and if he wants to send attachments, the program should not upload the attachment with the mail. That is, only administrator can Enable/Disable uploading and downloading feature of Internet. I am aware about PORT 21 FTP and PORT 80 HTTP.but don't know how to use them.


Re: Visual Basic Express Edition How to control FTP and HTTP ports in VB.NET

Bruno Yu - MSFT

IamWasim,

According to the description, your application can be divided into two parts:

1. Administrator authentication:

How To Implement Role-Based Security with Forms-Based Authentication in Your ASP.NET Application by Using Visual Basic .NET

http://support.microsoft.com/kb/306238/

This article describes how to implement role-based security in an ASP.NET application that implements forms-based authentication using Visual Basic .NET.

2. Upload/Download files, an FTP client application:

How to upload a file to a Web server in ASP.NET by using Visual Basic .NET

http://support.microsoft.com/kb/323245/

This step-by-step article describes how to upload a file to a Web server by using Visual Basic .NET. In this article, you create an ASP.NET file (WebForm1.aspx) and its related code-behind file (WebForm1.aspx.vb) to upload files to a directory that is named Data.

An FTP client library for .NET 2.0

http://www.codeproject.com/vb/net/FtpClient.asp

I hope the articles above can help you to implement your application.