473,513 Members | 2,552 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

File transfer useing <a in VB

I have a need to allow a user to transfer or download a file from an ASPX
screen.
I know that it is an easy function HTML using <a code.

My ASPX is written in VB.

Thanks
--
DrWho
Nov 19 '05 #1
8 969
<a href="filename">DisplayName </a>

"DrWho" <Dr***@discussions.microsoft.com> wrote in message
news:3F**********************************@microsof t.com...
I have a need to allow a user to transfer or download a file from an ASPX
screen.
I know that it is an easy function HTML using <a code.

My ASPX is written in VB.

Thanks
--
DrWho

Nov 19 '05 #2
That is still HTML code, I need VB code.

The file name is going to be different for each user.

I would like to put code on the page that the user would be able to download
there file, with a button or a link.

"Vaibhav" wrote:
<a href="filename">DisplayName </a>

"DrWho" <Dr***@discussions.microsoft.com> wrote in message
news:3F**********************************@microsof t.com...
I have a need to allow a user to transfer or download a file from an ASPX
screen.
I know that it is an easy function HTML using <a code.

My ASPX is written in VB.

Thanks
--
DrWho


Nov 19 '05 #3
Since you gave no futher replies to my question, does that mean that what I
want to do in VB ASPX is not possable?
--
DrWho
"Vaibhav" wrote:
<a href="filename">DisplayName </a>

"DrWho" <Dr***@discussions.microsoft.com> wrote in message
news:3F**********************************@microsof t.com...
I have a need to allow a user to transfer or download a file from an ASPX
screen.
I know that it is an easy function HTML using <a code.

My ASPX is written in VB.

Thanks
--
DrWho


Nov 19 '05 #4
If you use an <asp:Hyperlink> control, you can set properties
programatically with VB. A Hyperlink control renders as an <a> tag, it
really is just that simple.

Was there something special you were trying to achieve, like restrict
who can download a file, or somehow control the bytes sent back to the
user with VB?

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Sat, 21 May 2005 11:45:02 -0700, "DrWho"
<Dr***@discussions.microsoft.com> wrote:
Since you gave no futher replies to my question, does that mean that what I
want to do in VB ASPX is not possable?


Nov 19 '05 #5
Thanks, for your help.
What I want to do is generate a unique file name for each customer. I want
to create a link so the customer can download the file created for them.
--
DrWho
"Scott Allen" wrote:
If you use an <asp:Hyperlink> control, you can set properties
programatically with VB. A Hyperlink control renders as an <a> tag, it
really is just that simple.

Was there something special you were trying to achieve, like restrict
who can download a file, or somehow control the bytes sent back to the
user with VB?

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Sat, 21 May 2005 11:45:02 -0700, "DrWho"
<Dr***@discussions.microsoft.com> wrote:
Since you gave no futher replies to my question, does that mean that what I
want to do in VB ASPX is not possable?


Nov 19 '05 #6
Scott, is there a sample program I could get?
--
DrWho
"Scott Allen" wrote:
If you use an <asp:Hyperlink> control, you can set properties
programatically with VB. A Hyperlink control renders as an <a> tag, it
really is just that simple.

Was there something special you were trying to achieve, like restrict
who can download a file, or somehow control the bytes sent back to the
user with VB?

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Sat, 21 May 2005 11:45:02 -0700, "DrWho"
<Dr***@discussions.microsoft.com> wrote:
Since you gave no futher replies to my question, does that mean that what I
want to do in VB ASPX is not possable?


Nov 19 '05 #7
Hi Doc:

I think what you are trying to do is build a link that the user can
click to download a file you'll create on the fly, just for them.

Here is one approach using an ASHX handler. In this code the author is
using parameters passed in the query string to pull content from a
database field, but you could change that to pull from disk, etc.
http://weblogs.asp.net/cazzu/archive.../27/25568.aspx

Does that help?

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Tue, 24 May 2005 15:49:02 -0700, "DrWho"
<Dr***@discussions.microsoft.com> wrote:
Scott, is there a sample program I could get?


Nov 19 '05 #8
Scott,

I was hopping to find an example in VB.

Thanks
--
DrWho
"Scott Allen" wrote:
Hi Doc:

I think what you are trying to do is build a link that the user can
click to download a file you'll create on the fly, just for them.

Here is one approach using an ASHX handler. In this code the author is
using parameters passed in the query string to pull content from a
database field, but you could change that to pull from disk, etc.
http://weblogs.asp.net/cazzu/archive.../27/25568.aspx

Does that help?

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Tue, 24 May 2005 15:49:02 -0700, "DrWho"
<Dr***@discussions.microsoft.com> wrote:
Scott, is there a sample program I could get?


Nov 19 '05 #9

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

Similar topics

6
1887
by: Uwe Mayer | last post by:
Hi, when extending a build in class, what does the constructor __init__(...) have to return? and how does the constructor call its base-class construtor? (or is this done automatically?) I want to derive from "file" to create a class that reads record from a binary file:
1
1333
by: Aaron | last post by:
Hello, I want to transform html tags with in the xml file when it use the asp:xml tag, how would I do this? Here is the example of the xslt file: <?xml version="1.0" ?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
11
6594
by: Abhishek | last post by:
I have a problem transfering files using sockets from pocket pc(.net compact c#) to desktop(not using .net just mfc and sockets 2 API). The socket communication is not a issue and I am able to transfer data across.On the serve I am using Socket 2 API (recv function to read bytes)and not using ..NET. I use FileStream to open the file on the...
11
32554
by: Stephan Steiner | last post by:
Hi Generally, FileInfo fi = new FileInfo(path); long size = fi.Length; gets you the length of a file in bytes. However, when copying files, even while the copy operation is still in progress, the filesize, as indicated in Windows Explorer or derived with the above two lines of code, will be the size of the file once the copy operation...
5
2860
by: c676228 | last post by:
Hi, I guess I am confused. In aspx script, I mean (you won't use Codebehind="enrollinfo.aspx.vb", but mix code with html and code together) You can access user control's property directly. Since I am useing visual studio .net, the html and code are seperated. I have the following aspx code which has two user controls: <%@ Register...
4
2028
by: A_StClaire_ | last post by:
hi, I am using the following code to download multiple file types from a server. .txt files transfer fine. however Word .doc files come through garbled and I don't know enough about encoding to understand why. the object 's' is a Mentalis.org component that, for all purposes here, is a System.Net.Socket. the line I commented out is...
1
8066
by: Alex | last post by:
Hello, I'm trying to write a little php script to transfert some files from a server to clients (web/http). It's working fin with small files. But transfering big files (try on 1Gb) failed! The transfert is stoped randomly (sometimes at 25%, sometimes at 75%,...). And I don't understand why?! :/
0
2059
by: fiona | last post by:
Yucca Valley, CA, - October 2007: Catalyst Development Corporation, publisher of SocketTools, SocketWrench and LogicGem, today announced the release of Catalyst File Transfer .NET V5.0. For developers who are creating .NET applications, the File Transfer .NET component offers a comprehensive interface for uploading and downloading files. ...
6
2724
by: slinky | last post by:
I found the following code to transfer datagrid data to an Excel file. Is this written in C#?... I'm a vb.netter. I'm just not sure where to place the code to experiment on it. Should I place it in the event handler for a form button. Is there other ways to accomplish this? I looked at some on the web and usergroups, but was confused as to the...
0
7178
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7397
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. ...
0
7565
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...
1
7128
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7543
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...
0
5704
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...
1
5103
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...
0
3255
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
1612
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

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.