Save As Type List

I am sending an attachment to a user with the following code. This
successfully prompts the user to Save or Open, provides the correct file
name, and displays "Microsoft Excel Worksheet" as the Type.

However, when the user clicks "Save", the "Save As File Type" in the
resulting dialog displays 'HTML Document'. There is only one other entry in
the list - "All Files". How can I modify the code to display "Excel
Document" (or some such) in the "Save As Type" list? Code:

View Replies


ADVERTISEMENT

Default Save As Type And Filename

I have an asp page that produces output from a database. This allows a
simple way for the user to save the data to a text file by going to
File->Save as...

The default save as options always defaults to a particular filename and the
save as type is always html, therefore the user has to manually type a
filename and choose Text File (*.txt) as the type.

I remember I was able to overide ride these options with the following code.

Response.ContentType = "text/plain"
Response.AddHeader "Content-Disposition", "inline; filename=myfilename"

This doesn't seem to be working for me anymore.

Any thoughts?

View Replies View Related

IE's Default For Save As Type Incorrect

I'm using a binary stream to send down a file with ASP from the web
server. I've been having trouble with IE and getting it to recognize
my file. I've added the filename as a paramater(?filename=file.jpgw)
to handle IE's mime type mangling, but I'm still having trouble with
IE's default Save As Type being HTML.

When we send down a jpgw
(geo-jpeg) file IE wants to save it as an HTML file. I've got the
correct filename showing in the Filename box, and if I choose the All
Files option from the Save As Type drop down then the file is saved
with the correct extension. I'd like to have the All Files option
choosen by default. I know it's just a couple of clicks but we have
some noivce users that can't seem to get that.

View Replies View Related

Error Type:Microsoft VBScript Runtime (0x800A000D) Type Mismatch: 'UBound'

I got a problem while running an application. The code for this is as follows:

aList = Split(strMsg,";")
For nX = 0 to UBound(aList)
strarry=split(aList(nX),"_")
var_year=left(strarry(2),4)
var_month=mid(strarry(2),5,2)
var_day=mid(strarry(2),7,2)
var_date=var_day&"-"&var_month&"-"&var_year
var_time1=mid(strarry(2),9,2)
var_time2=mid(strarry(2),11,2)
var_time=var_time1&":"&var_time2
set rs1=conn.execute("insert into tbl_BackupfileInfo(Filename,Createddate,Createdtim e)values('" &aList(nX)&"','"&var_date&"','"&var_time&"')")
Next

while runnig this application some times it works fine .But some times it giving an error

Error Type:Microsoft VBScript runtime (0x800A000D) Type mismatch: 'UBound'.

View Replies View Related

How Can I List All The Email Address From Hotmal Contact List?

How can i list out all the email address into my website from the hotmail caontact list? i am successful log in into the yahoo contact list by using serverxmlhttp and list out all the email address from the page source, but i could not access to hotmail by using the serverxmlhttp. Is any other methos can list out the email address from hotmail contact list?

View Replies View Related

Error Type :(0x80004005) Unspecified Error Type

I am trying to send a fax from my asp application and am getting the follwoing error on the hghlighted line:

Error Type:
(0x80004005)
Unspecified error

If anyone knows why..Code:

View Replies View Related

Type Mismatch On Type "Text"

I have a table with four fields, ID (auto increment), question (varchar(200)), answer (Text), and shop (tinyint(3). When I connect to the database in an ASP page and write this code

Response.Write rs("question") & "<br />" & rs("answer")

I get an error that reads "Type Mismatch"

but if I change the type of the answer field to type varchar I don't get the error but am limited in the length of the field's contents. I just also noticed that if I keep the type at TEXT and change the collation to ascii_general_ci I don't get the mismatch error but all the ' characters turn into ? characters? Oh woe is me.

View Replies View Related

Save As..?

I would like to have an option for my end users to do a SAVE AS. Is there a way to do this? I have a excel spreadsheet which is being created by asp and at the end of the page I would like to have an option to do a save as. so they can name the file and put the file anywhere they want.

View Replies View Related

Save As .mht

Working with an asp page which pages through dates. If the
user saves one page as a mht file and pages to the next
day and saves the second page as a mht file, both files
turn out to be the same. It's as if I.E. 6 saves the
cached information, however if you open a new window and
save the page from that window it saves properly and the
cached information is available for the second window so I
think I'm on the wrong track.

View Replies View Related

Save As

i need to force a download to open save as dialog box rather than opening the doc in a browser.

View Replies View Related

Save Formatting

Is it possible to have line feeds/breaks automatically entered when the text wraps to a new line? I am using a <textarea> input on a form and using the <pre> tag when displaying the text to a html page (embedded in a .asp page). The text is being saved to a sql database. Returns seem to be displayed. But the wrapped text just displays as one long line.

View Replies View Related

Save As Jpeg

beside save as htm and txt in IE , can i save as jpeg or other formats ?

View Replies View Related

How Save Pic In Access Or Sql?

can any one giv me some link or any helping material , how i can can pic in acces or sql database regarding by user ....

View Replies View Related

Save To MS Word

I need to save a lot of pages to a .doc MS Word file with one button click on my asp app.... can this be done ?.....I am thinking this .doc file will be saved on the server, so I can then download it to the users PC.

I can have the MS Word templates to fill out on the server , so do i create an asp page to fill out these templates and then save the file..then somehow download it automatically, hence it will end up on the users PC in a shared Dir...is this all possible?

View Replies View Related

Save A Web Page

I would like to save a web page to a file. When I do that, sometimes
the saved web page does not look like the original web page.
For example, when I save www.msn.com, it looks very different the
original page.
How can I save the web page to look like the original (as if I do
"File" - "Save As" and under "Save as Type" select "Web Page, complete
(*.htm,*.html)" ?
This is how I save the web page:
Set fs = CreateObject("Scripting.FileSystemObject")
Set filePtr = fs.CreateTextFile("c:abc.htm", True)
filePtr.WriteLine (WebBrowser1.Document.body.innerHTML)

View Replies View Related

Save The Variables

whats happening is i do a form post from a form "A", to a form "B" where
it does some processing and then does a form.redirect to form "C"..where
there is a link to the form "A". I only want that when the user selects
form "A" from form "C" then at least i should be able to display his
name and email address what he had entered previously.
what the best way to save the variables and when i display back in the
form how do know whether hte form is coming back or not?

View Replies View Related

Save As Dialog

is there a avaialble code in asp.net...
that have a similar function to Save as Dialog

View Replies View Related

Save Asp To Excel

i want to save asp created records to excel sheet by clicking a link.
link should be in same asp created page .By clicking link ,the populated asp records to be saved like save as option..At the same time i want to see asp records in html format .By clicking the link.

View Replies View Related

Save As Dialog Box

When users submit a Form with a SQL query, the resultset is retrieved from a MS-Access database table which is then exported to an MS-Excel worksheet. After the records get exported to MS-Excel, I want to give users the option to download the Excel file to their local machine.

In other words, when users click a download link, I want the Save As.. dialog box to pop-up so that users can save the Excel file to their local machine (note that I don't want users to view the Excel worksheet in their browser). This is how I tried it: Code:

View Replies View Related

Print Out And Save As

how to print with pre-define preference such as margin and page size ?

and a quick Question , the function call to save as

View Replies View Related

Save-As Dialogue Using ASP

I have a PDF link in my flash site and want to force the Save-as dialogue to pop up when the link is clicked.

I've seen how this can be done by calling a php script, but my server only supports ASP. So was wondering if anyone had an ASP solution for doing this.

View Replies View Related

Save Target As

I would like to place a button on a web page that when clicked performs the same funtion as when you right click a link and choose "save target as..."the files I want people to download are .swf and I don't want to zip them.

View Replies View Related

Save Contents

I have successfully been able to load text from an SQL-DB into a <textarea>.Now I need to save the edited text back to the DB But I can't seem to extract the value from the <textarea> into a vbscript-variable.

When the user clicks the submit button under the textarea I need the text to be saved into a variable, how?

Code:

<FORM METHOD=POST ID="Form1">

<TEXTAREA NAME="text1" ID="text2"><%Response.Write(Recordset("text"))%>
</TEXTAREA><br><br>

<P><INPUT TYPE="submit" VALUE="submit2" ID="submit3" NAME="submit4">
</FORM>

View Replies View Related

Save File

how to make a box come out and let the user select which directory the user want to save the file to?

View Replies View Related

Save To File

I'm trying to do this:

Set fso = CreateObject("Scripting.FileSystemObject")
Set file = fso.CreateTextFile("C:Program FilesTestUploads
es.xml", true)
file.WriteLine(res.xml)
file.Close()

but in IE I only can see progress (in status) bar which never ends and never save anything to the disk. Why?

View Replies View Related

Save Value In The Database

I have a main window which has a form in it. Inside the main window there is a button, which when clicked opens a pop window (showModaldialog window). Inside that pop window I have a checkboxes, which user can check. When he is done selecting them, He clicks on
"Done", which is of type button.

My problem is when user clicks on Done, I am not able to retreive the values of the check box group. I could have used request object to retrieve the values, but that is functional only when the event is submit.

View Replies View Related

Save Date

in my form I made 3 text inputs (one for the day, other for the month and other for the year). The problematic code is:

ob_rs ("nacimiento") = request.form ("dia") + "/" + request.form ("mes") + "/" + request.form ("aņo")

The error message I receive is that there is a problem with the field format and the content of the variables. I hope you can correct this problem for me. But, I have another question for Sitepoint's mentors; I need to save the actual date (i mean, the date when the .asp is running) to a database field. I ll have the same problem than before, but even if I solve that, I still dont know where to find the when-.asp-is-running date.

View Replies View Related

Force Save AS

Is there a way to force a file to be saved instead of using the "default action". In my situation, I've got a series of MP3 files that are being used by my chorus as a learning tool for learning the current music quickly. I have instructions on the site telling them to save the files to their hard drives and to play them from there.

However, people are just clicking on the links and their default MP3 players are trying to play the files. Now, I have compressed the files pretty hard because some were griping about the filesizes, so if they are played right off the link, the quality is a bit choppy. If they save it to their hard drive and play it there, it sounds fine.

View Replies View Related

Save File Name

I have an ASP page where an applicant would keyin his details. Nothing but his resume on line. My problem is that we have a large text wherein the candidate will paste his entire resume for reference. Once he submits it, while viewing if we copy and paste the text to word, the alignment is not there at all.

Could anyone suggest some option to attach the resume and store it in the database and then downloading the resume as it is. Could anyone help me out on this as soon as possible.

View Replies View Related

Save Target As

I have an ASP application that uploads a specified file to the server. To retrieve the file, I simply assign the filepath and file to a hyperlink on the page.

When you click "Save Target As" for some file types, I get the following error messsage:

IE can not download <file> from <server>.

IE was not able to open this internet site. The requested site is either unavalable or can not be found. how to save a file of any type? It works for MS Word, Excell, text files.

View Replies View Related

Save Contact To Outlook With Asp?

Where can I find docs or help on how to do this?

View Replies View Related

Help Me Save An Image File?

Can someone please (i dont even know where to start on this as i am completely incapable of file or image functions at the moment) help me do this:

i want to write a script that will copy an image from an internet page, then save it in a folder with the speficied filename. The url link is like this :
http://ipaddressort/BufferingImage?ImageAdr=123456.

The image is captured by the webcam, of course I can view it in the browser by typing the url, but I want to save it without any popup window or right click, I want to do it in the script.

View Replies View Related

How Do You Save An Object To File?

How the heck would I go about saving an object to file? Put would be perfect, and can basically save everything except objects - how do I save an object if I can't use put?

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved