|
by: Richie |
last post by:
What I want is to have a link to a file (it could be a .zip, .exe, .jpg,
..txt or even .html) and when the user clicks on it they are prompted with
the Save As box, as opposed to it opening in the browser.
I think I need to do something like:
$fp = fopen($filetooutput, "rb");
$thefile = fread($fp, filesize($thefiletooutput));
header("Content-type: ???/???"); not sure what to put instead of the ???
echo $thefile;
|
by: dogdog |
last post by:
I have just downloaded and installed mod_perl with the
latest apache.
But .. I'm not sure how to make or even use this. I was
thinking that it would allow me to perform interactive
type actions however, again, I havent found how to do this either.
So with all that said .. here goes.
I have several scripts that are command line based that
|
by: me |
last post by:
I have a webpage containing a link to a spreadsheet
<a href="somefilename.xls">click</a>
When the link is clicked a spreadsheet opens in internet explorer
using some sort of excel COM object.
I would like to enable the user to edit the spreadsheet and then
save the changes in the existing file. How ever IE only offers
"save as" not "save" and it dosent suggest the original filename.
The users already have write acces to the area where...
|
by: Arjen |
last post by:
Hello,
I have multiplpe web user controls on one webpage.
The web user controls have database interaction.
When I click on one of the web user control actions then it does'nt show the
data inside the other web user controls anymore.
What can I do about this?
Thanks!
|
by: programmer2004 |
last post by:
Hi
I have used WebBrowser control and i want to save the entire webpage including pictures etc.
i have called ExecWB method of WebBrowser control with OLECMDEXECOPT_DONTPROMPTUSER flag, but it opens
save as dialog box.
I want automatically save the webpage without using save as dialog box.
"Is there any way of save as webpage?"
regards
|
|
by: =?Utf-8?B?YXNkZg==?= |
last post by:
Hello. I am making a web application with c# and am using this code:
Response.ContentType = "application/x-excel";
Response.AddHeader("Content-Disposition", "attachment;filename=" +
HttpUtility.UrlEncode("あいうえお") + ".csv");
Encoding encoding = Encoding.GetEncoding("Shift-JIS");
Response.BinaryWrite(encoding.GetBytes(csvStr));
Response.End();
It works fine..the data gets saved nicely to an excel file. The user pushes
the...
|
by: koraykazgan |
last post by:
Hi all,
I have to solve the following scenario. On my webpage, the user is able to view some text content. I have to put a "Save Document" button on that page. If the user wants to save that document, she clicks "Save Document" and then I have to pop up the Save As Dialog. When the user selects a folder, where she wants to save that file, I need to save that file on the client.
The first question is how can I do that in ASP.Net 2.0?
...
|
by: daJunkCollector |
last post by:
Hey,
I am having a user fill out a form then the fields are going to uploaded to my database. So, at this point, when the user hits the submit button I want three things to happen:
1. The form uploads to a database (the following code does this)
2. An e-mail notification is sent to a specified e-mail address. (I know this can be done in the database, but I would prefer it be contained within the ASP code for now, but cannot find...
|
by: Rhm3769 |
last post by:
new to this, been looking around and haven't found anything for it yet....
I'm trying to write a script to help out tournament organizers for this online Risk site.... what I'm trying to do is make a script that saves the webpages for specific games and then scans the game log for information they want.... the scanning of the game log will be easy, the only thing I'm confused about it saving the page or the source if having a script save a...
|
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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...
|
|
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...
|
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 most users, this new feature is actually very convenient. If you want to control the update process,...
|
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...
|
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|