How To Make ASP Page To Let Browser Upload File
how to make asp pages that could let people to upload files. I use Macromedia Dreamweaver and there is a form for file field, but it doesn't has any help function on how to do it.
View Replieshow to make asp pages that could let people to upload files. I use Macromedia Dreamweaver and there is a form for file field, but it doesn't has any help function on how to do it.
View RepliesI need a fileuploader that automatic make thumbnails in different sizes when
an image is uploaded to the server (ASP/Win2003). Does anyone have
experience with this, something to recomend?
I am working on this school project.. And now i am stuck with how to make file upload. I was planing to make so that a user can upload a "profile" picture to my comp. And it would be resized to and shown as an avatar or whatever.
How i can do this? easy way best. And how to limit the upload to jpg, and such, and at the same time place a limit of size in mb / kb etc.
I have 3 ASP pages. Page1 has file upload feature where the user selects a file and clicks on upload button. Page2 takes that uploaded file and process the records to insert into the database. Page3 shows that records from the database. Code:
View Replies View RelatedI have downloaded a nice upload script from the internet, it works great, but I would like to have it protected,so that only the admin user can use this upload page, I'm getting the following error:
Microsoft VBScript runtime error '800a01b6'
Object doesn't support this property or method: 'Request.Session'
If I change it in Request.Cookies, that won't work either.....
We face problems uploading excel (with macros) documents using HTML
File Upload.
The file contents are corrupted while viewing the same. However, we
are able to upload excel (w/o. macros) documents successfully. Is
there anything we have to take care of, while handling uploads of
excel documents with macros?
I have a webapp. that holds a lot of documents. Some of the documents needs to be produced from a database on-the-fly, some are static documents like PDF, Word documents, etc... In the end, a user can do a request to produce a large amount of documents as one huge PDF document. Today the creation of documents is working, but all code is done in ASP.
In Visual Basic, I was thinking about making an ActiveX EXE server that generates the PDF document. The ASP page will be polling until the file is generated. When this is done, the file will be displayed. I have only written down my thoughts on the subject. Is there a good way to do this?
I am developing an ASP page for clients. I will host the page on my
server, but it must appear on the clients' websites. That means that
the user should not be redirected to my site, but instead should remain
on the client's site. Or at least appear that they are remaining on the
client's site.
One thing that would be acceptable is to host the page on the client's
site, but have it hit my site to get the data. I have looked into
XMLHTTP and also just having the ASP page hit a remote SQL Server
instead of a local one, but haven't made any decisions yet.
I have a page where the user selects the product they want and from that selection a new page opens with a detailed look of the product. I would like this new page to open as a brand new window with a size I have choosen. Where do I set the size I would like to the page to open as?
View Replies View RelatedI am designing a page where I have to get its location so I can reuse the page in different sections of my site. I know Server.MapPath gets the webroot ... but how do I get the path of the page I am in?
View Replies View RelatedI need to make a redirect page in ASP using VBScript. It should display a message like "Redirecting, please wait . . ." & after some time it should redirect to any other page.
Example of this is in sitepoint itself. When you login in sitepoint it shows you a page for some time with message "Thanks for logging" & then redirects you to home page.
i creat one sql server and want another computer on my lan run my web server (i mean the computer on lan can insert data and store to my sql server)but i don't know to do that .i used windows 2003 and IIS6.
View Replies View RelatedI want one particular file to show only on INTRANET not on Internet. Purpose for this is, user can update their profile and view few companies rules only inside campus. Because these informations only belongs to companies's user so I do not want to show on the Internet.
View Replies View RelatedI need to make a registration page for a community service volleyball
tournament our organization is doing. I am VERY NEW to ASP.
Would the easiest way to make it be just doing it on frontpage (where i
just lay out the form and save it as an .ASP file) and then changing
the form properties so that the results are sent to the access file?
I read that you could make aso forms on frontpage and it just seemed
too easy. Do these really work or will I still need to go back and
edit some code?
Any idea's on how to make a PDF secure? I don't want anybody to be able to type in the location to the pdf file in the browser and download it. Suggestions please!!!???
View Replies View RelatedI'm working on a page that is supposed to generate a PDF from fields in an Access database. The user is supposed to be able to generate a pdf. Instead a " error '80020009'" is returned in line 55. Could someone lend a hand? Here's the code (line 55 is the beginning of the form field document at "WHOLENAME")
<%@LANGUAGE="VBSCRIPT"%> .....
I need to make a check for file type at client end, ie allow only files that are images to be uploaded and prevent the others. I tried using the HtmlInputFile.Accept Property, but it somehow doesn't seem to work.
moreover, it claims to support only few browsers. Also, javascript in itself, gets very dirty, if i start making validations for every thing. Does ASP.NET support any control which can cause these validations? what is the most elegant way to do this?
I have a list of broad categories. For example:
Pacific
Central
Eastern
Each of them are preceded by an option button. After the text, there is a plus sign. (this means that I can click on the + sign and then drill down further). For instance:
Pacific
California
Nevada
Oregon
Central
Eastern
Similarly, if I want I can drill down California, if I want to.
Now my question is:
How can I drill down each of them without refreshing the page ? Every time I click on the + sign, the whole page refreshes and then I have to scroll down to see the break down list of the hierarchial tree.
Please suggest ways of doing this dynamically. How can I expand my hierarchial list without having to lose the focus on my hierarchial option tree?
Does anyone know how I can close a browser page via ASP code?
View Replies View RelatedCan anyone tell me how can i use ASP to display a file in the web browser?
the file is located on the server in C: emp directory. It can be any file.
Is there any way that i can do this?
Does anyone know of any ASP code that would redirect a page that has a small page width....such as a mobile phone, Blackberry, Sidekick, etc to another page designed for the width.
I have one with Java script but many of these devices don't handle Java too well.
The most pressing issue at the moment is that my browser does not display the page; it displays the ASP code. I built the page for a questionnaire that was going to be placed on my schools server so that participants could access it online, but I submitted my request too late in the semester.
I decided that the best course of action was to collect these data offline using the computers that I had bought for my lab. The laptops are running Windows 2000 Professional and are using IIS. After configuring ISS and Dreamweaver MX, I built the questionnaire. Then, I uploaded the questionnaire to the “server”—the wwwroot folder.
Now, the index page (the instructions to the questionnaire) opens flawlessly, but when the link to the questionnaire is pressed to open the ASP page, the browser displays the code and not the questionnaire itself.
When I explained this problem to people, they tell me that my server does not support server site scripting, but I’m using a Windows machine, using Windows server software, and Windows database software (Access 2000). Moreover, when I preview the page through Dreamweaver MX, Internet Explorer displays it without a problem. Code:
I created my .asp page in Microsoft Visual Studio .NET 2003 and when I right-click my page in there it displays perfectly. But when I try to view it in internet explorer I only get the html part to display.
I've tried regestering iis in the cmd, it didnt solve it. Here is the code if it could be to any interest:
I have three asp pages. The initial page is login.asp, it goes to page hello.asp. And hello.asp goes to page another.asp. If it goes back from hello.asp to login.asp, then in Internet Explorer, clicking on Back, the cache of the page hello.asp has been removed, which is the effect that I want.
If it goes back from another.asp to login.asp, and then in Internet Explorer, clicking on Back, the page another.asp still remains. Code:
I have three asp pages. The initial page is login.asp, it goes to page hello.asp. And hello.asp goes to page another.asp.
If it goes back from hello.asp to login.asp, then in Internet Explorer, clicking on Back, the cache of the page hello.asp has been removed, which is the effect that I want. If it goes back from another.asp to login.asp, and then in Internet Explorer, clicking on Back, the page another.asp still remains. Code:
I have different asp files to "include" in asp page, depends if the browser is IE or not. The browser detection is not the problem of course. I would like to know how can I include the right file, based on the browser detection.
In partly free language I need:
IF (IE) ->
<!--#include file="x.asp"-->
else
<!--#include file="y.asp"-->
I have tried to test something simple in an asp page, but not working (not too surpriseingly)
<body...>
<script language="javascript>
<!--#include file="../menu/menu.asp"-->
</script>
I want to force the users of my company's intranet to follow my templates by storing the contents of webpages into a database, so now I'm developing a webinterface for them to edit it. I've run into two initial problems. I want the user to be able to add pictures to the page, but I don't know how to make my asp open a file browser for them and retreive the adress as a string. Is there an easy way? Secondly, I'd like them to be abled to add some styles and stuff to their text, but can I get a wysiwyg-textarea that displays underlines and italics and stuff(like this one, btw)?
View Replies View RelatedI have a asp web page with a link point to a file which depend on the database information. Sometime is a picture file sometime a word and some time is a PDF file.
For picture file, when user click the link, it will open the picture inside the IE browser. Now here is my problem:
On some of the computers, for PDF file only, it opens outside of the IE browser. Like the Acrobat program is not in the browser. With the same code, some computer works good. But I want to force it open inside the browser. why and how to fix it?
how do i link an asp page to a pdf document and render it (the pdf document)in a web browser without it downloading to the client computer viewing it?
i have tried the response.contenttype="application/pdf"
now the main problem is how to embed the pdf doc in that asp page!
i want to force the web page address to be saved in browser history using asp vbscript.
View Replies View RelatedI'm using a flat text file in place of sessions to run my shopping cart. I have a couple different asps' that manipulate the session file to preform tasks like deleting items and updating quantities. The file stores one product along with the user selected options per line so it looks something like this:
product, color, qty, unit_price, selection_total |
product, color, qty, unit_price, selection_total |
...
Code:
I'm having a problem with the fact that I want to allow image files to be uploaded to a remote web server, as the hosting package the web site is on is IIS6 and has a default file upload size limit of 200kb. As it's a shared hosting package, the default limit cannot be changed for me unfortunately.
Anyway - i need to check the size of the file being uploaded, so i can notify the user and prevent them getting the default Microsoft error message page. The problem is that I can't implement a server side size check which works, using either Request.TotalBytes or load.getFileSize (with "load" being an object of my loader class). It seems that I can't carry out any of these operations when the file size is too large.
I would like to add a facility to my web page which allows users to upload basic files (word, excel, text, gif, jpg etc) to the server.
I know there's a facility to do this using HMTL forms, but I don't know how to handle the file on the server side.
What I think I need is an ASP file running some code to manipulate the filesystemobject, allowing me to receive the file and store it in the filesystem on the server. It would be nice to access some of the file properties too (name, type etc).
I've seen a few custom components online which allow you to do this, but I can't depend on installing them. I need to be able to script it myself.