473,396 Members | 1,968 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Problem with HTA and file download + Your general opinion please.


Hi,

You're my last hope to shed some light on this!! Otherwise I'm doomed!

Maybe it's very stupid what I do but I thought this is the best solution.
Any criticism welcome!
The story:

I've craeted an aspx application. To call the application, the user goes to
e.g. www.mydomain.com/app/index.hta
On index.hta, there's a link to the aspx login page and subsequent pages etc
I did this so I can get rid of the window control buttons and add my own
navigation.

It all works fine except for the code below. If i run the application in
IE6, calling the aspx directly I have no problems.
I get the file dialog to open/save the file I wish to download.
But calling it when I started the application in hta, it just doesn't do
anything. No save/open file dialog comes up.
I've traced, and all statements are executed.
Any hints are greatly appreciated!

Thanks for your efforts!

Martin

PS: Sorry for xposting, just seems that there's no special place to ask this
question?

VB.NET
....
Response.ContentType = "text/richtext"
Response.AddHeader("content-disposition", "attachment; filename=""" &
filename & """")
'Write the file directly to the HTTP output stream.
Response.Write(RTFContent)
Response.End()
....
Nov 18 '05 #1
2 4315
I FOUND A SOLUTION!!!

Calling the aspx page from the hta page like this brings up the file dialog
box.

<FRAME name="main" SRC="login.aspx" APPLICATION="no">

"Martin Feuersteiner" <th************@hotmail.com> wrote in message
news:eF**************@TK2MSFTNGP12.phx.gbl...

Hi,

You're my last hope to shed some light on this!! Otherwise I'm doomed!

Maybe it's very stupid what I do but I thought this is the best solution.
Any criticism welcome!
The story:

I've craeted an aspx application. To call the application, the user goes to e.g. www.mydomain.com/app/index.hta
On index.hta, there's a link to the aspx login page and subsequent pages etc I did this so I can get rid of the window control buttons and add my own
navigation.

It all works fine except for the code below. If i run the application in
IE6, calling the aspx directly I have no problems.
I get the file dialog to open/save the file I wish to download.
But calling it when I started the application in hta, it just doesn't do
anything. No save/open file dialog comes up.
I've traced, and all statements are executed.
Any hints are greatly appreciated!

Thanks for your efforts!

Martin

PS: Sorry for xposting, just seems that there's no special place to ask this question?

VB.NET
...
Response.ContentType = "text/richtext"
Response.AddHeader("content-disposition", "attachment; filename=""" &
filename & """")
'Write the file directly to the HTTP output stream.
Response.Write(RTFContent)
Response.End()
...

Nov 18 '05 #2
"The story:"

Is ocet/stream in w3.org and MS terms.

Your are not back on the train yet.

"text/richtext" = get RichText

"Any criticism welcome!"

Component Licensing ?
Schmuusing the group while posting to about a half dozend.

==========

' ("content-disposition", "attachment; filename=""" & '

== pushing a download dialog via any link clicked. Xp SP 2 may give you a
wake up call.

================

Use <(i)frame restricted="restricted"/>

anyway, bcause it will work in browser and prevents
a trusted site from serving crap while hacked iis is undiscovered.

================

You got to learn a little about .hta, try the mvps and search terms.



"Martin Feuersteiner" <th************@hotmail.com> wrote in message
news:u6**************@tk2msftngp13.phx.gbl...
I FOUND A SOLUTION!!!

Calling the aspx page from the hta page like this brings up the file dialog box.

<FRAME name="main" SRC="login.aspx" APPLICATION="no">

"Martin Feuersteiner" <th************@hotmail.com> wrote in message
news:eF**************@TK2MSFTNGP12.phx.gbl...

Hi,

You're my last hope to shed some light on this!! Otherwise I'm doomed!

Maybe it's very stupid what I do but I thought this is the best solution. Any criticism welcome!
The story:

I've craeted an aspx application. To call the application, the user goes

to
e.g. www.mydomain.com/app/index.hta
On index.hta, there's a link to the aspx login page and subsequent pages

etc
I did this so I can get rid of the window control buttons and add my own
navigation.

It all works fine except for the code below. If i run the application in
IE6, calling the aspx directly I have no problems.
I get the file dialog to open/save the file I wish to download.
But calling it when I started the application in hta, it just doesn't do
anything. No save/open file dialog comes up.
I've traced, and all statements are executed.
Any hints are greatly appreciated!

Thanks for your efforts!

Martin

PS: Sorry for xposting, just seems that there's no special place to ask

this
question?

VB.NET
...
Response.ContentType = "text/richtext"
Response.AddHeader("content-disposition", "attachment; filename=""" &
filename & """")
'Write the file directly to the HTTP output stream.
Response.Write(RTFContent)
Response.End()
...



Nov 18 '05 #3

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

Similar topics

7
by: atse | last post by:
Hi, I want the MP3 audio files to be able to download by users only. Even I set the pages validated by session, anyone still can type the download url to get my files without access of the pages...
0
by: HakonB | last post by:
Hi all I get an exception when trying to deserialize a simple configuration file using XML Serialization. The very long stacktrace can be seen at the bottom of this message. I've see other...
2
by: Dmitry Duginov | last post by:
I wrote HTTP module and configured it to fire with every request to my application. In IIS6 aspnet_isapi.dll mapped as Application Extension, web.config contains the following: <system.web> ...
18
by: jmd | last post by:
Hello, I posted the following in the C# forum but without one answer. But perhaps now in vb.net someone has some guidelines ! This is my question : I want to write a vb.net program that does...
1
by: Eric Clapton | last post by:
I have created a vb.net project in local drive and the program contains crystal report 9.0 through ODBC and link to SQL server. I can run this no problem on WinXP. But when I move the project to a...
6
by: TPJ | last post by:
Help me please, because I really don't get it. I think it's some stupid mistake I make, but I just can't find it. I have been thinking about it for three days so far and I still haven't found any...
2
by: Jeff | last post by:
Hey asp.net 2.0 My asp.net 2.0 project has got a assembly load problem: Some of my web.config settings: <membership defaultProvider="AH_MembershipProvider" userIsOnlineTimeWindow="15">
1
by: vera esaulova | last post by:
I have problem whis Windows Media Services 9 Series. I have videostream, which will consist of two streams(512k/bit and 256k/bit).I need to allocate a stream 256k/bit. In SDK is written: ...
10
by: =?Utf-8?B?SnVhbg==?= | last post by:
Hi! I want to use ASP to download big files using ADODB.STREAM. It works very fine with files smaller than 80 MB. On the Webserver I can see that memory allocation and the process w3wp is...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
0
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,...
0
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...
0
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,...

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.