href link to code creation of file and open of that file

R

Ryan

can i create a link that doesnt open a browser window... a link that
executes the aspx.vb code first (code that creates a file) and
transfers to an opening of a dynamically created (vcs outlook) file...

so what the user gets returned from a click of a link is the opening
of the file dialog message.

make any sense?

Any help?
 
S

Scott Allen

What you could do is write the vcs directly from code behind without
saving it to disk.

The code would look a lot like the code in this KB article:

How To Write Binary Files to the Browser Using ASP.NET and Visual
Basic .NET
http://support.microsoft.com/kb/307603/EN-US/

Except instead of writing into the response stream a file from disk,
you could just write into the response stream the content of the file
you would have created. The best part is there are no little vcs files
to clean off the server.

You might need to add a disposition header too, ie:

Response.AppendHeader("Content-Disposition", "attachment;
filename=afilename.vcs")

HTH,
 

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

Members online

Forum statistics

Threads
473,770
Messages
2,569,586
Members
45,097
Latest member
RayE496148
Top