473,386 Members | 1,793 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,386 software developers and data experts.

FileUpload and "error on page"

Jo
Hi all,

I've created a FileUpload in the footer of a Gridview.
The only thing I want to do with this, is to pick a file with the
Browse-button or to fill in a filename myself (without the
Browse-button, but only the filename, not the filepathe!).

Using the Browse-button works fine, but when I just write the filename
(like "test.txt") in the textbox, IE is gives me "error on
page"-message in the left corner and when I click on this for more
details, it says "access denied".

When I write "/test.txt" in tthe textbox, this error doesn't occur and
I can keep on debuggen and so.

The only thing I need is a filename to store in a database, I don't
want to upload files or so.

Please, can anyone help me on this?

Thank you in advance!

Regards,
Jo

Mar 30 '06 #1
2 1288
Do you have the right permission set in your SQl server.
Check that
Are storing the file itself or just the string name?
Patrick

"Jo" <jo**************@organon.com> wrote in message
news:11**********************@t31g2000cwb.googlegr oups.com...
Hi all,

I've created a FileUpload in the footer of a Gridview.
The only thing I want to do with this, is to pick a file with the
Browse-button or to fill in a filename myself (without the
Browse-button, but only the filename, not the filepathe!).

Using the Browse-button works fine, but when I just write the filename
(like "test.txt") in the textbox, IE is gives me "error on
page"-message in the left corner and when I click on this for more
details, it says "access denied".

When I write "/test.txt" in tthe textbox, this error doesn't occur and
I can keep on debuggen and so.

The only thing I need is a filename to store in a database, I don't
want to upload files or so.

Please, can anyone help me on this?

Thank you in advance!

Regards,
Jo

Mar 31 '06 #2
Without the path IE can't find the file.

As you don't upload, do you need the file to be an actual file ? If yes, you
have to fill the full path so that IE can make sure the file exists. There
is nothing that prevent you to strip down this info afterwards (also it
could be interesting to avoid uploading the file if you have no usage for
it).

Another option would be to use just a textbox. Additionaly you could still
use an hidden input file to provide the UI for the browse functionality (but
it could perhaps give layout problem as it's likely recent browser are more
restrictive and in particular won't likely allow to use an input file that
is hidden). Also in this case, the file may or may not exists client side...

--
Patrice

"Jo" <jo**************@organon.com> a écrit dans le message de news:
11**********************@t31g2000cwb.googlegroups. com...
Hi all,

I've created a FileUpload in the footer of a Gridview.
The only thing I want to do with this, is to pick a file with the
Browse-button or to fill in a filename myself (without the
Browse-button, but only the filename, not the filepathe!).

Using the Browse-button works fine, but when I just write the filename
(like "test.txt") in the textbox, IE is gives me "error on
page"-message in the left corner and when I click on this for more
details, it says "access denied".

When I write "/test.txt" in tthe textbox, this error doesn't occur and
I can keep on debuggen and so.

The only thing I need is a filename to store in a database, I don't
want to upload files or so.

Please, can anyone help me on this?

Thank you in advance!

Regards,
Jo

Mar 31 '06 #3

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

Similar topics

2
by: Chuck Martin | last post by:
I am having a most frustrating problem that references, web searches, and other resources are no help so far in solving. Basically, I'm trying to design a pop-up window to be called with a funciton...
1
by: Elliot M. Rodriguez | last post by:
A few of our customers cannot access one of the pages on our vb.net asp.net site. The problems are limited to only a few people, but these people have the problem regularly. The page in question...
4
by: Don Wash | last post by:
Hi All! I'm getting the following Error: No DLLs has been compiled yet and nothing in the \bin directory. So it is not the versioning problem or anything like that. And here are the...
8
by: Ravi Ambros Wallau | last post by:
Hey guys: What can I do when an "Error Creating Control" is displayed on the form (instead of the control), and a tooltip indicating the error never is displayed? Is there some log, some hidden...
2
by: louie.hutzel | last post by:
This JUST started happening, I don't remember changing any code: When I click the submit button on my form, stuff is supposed to happen (which it does correctly) and a result message is posted back...
0
by: DC | last post by:
The problem I'm using the .NET GridView and FormView objects for the first time and im getting the error "An OleDbParameter with ParameterName '@ID' is not contained by this...
7
by: DC | last post by:
Hi, there is a 500;13 page one can configure in the website properties, but ..Net Framework 1.1 also delivers the "server too busy" message sometimes and the IIS custom error page does not seem...
1
by: LiveCycle | last post by:
Hi, I've got a longstanding project that's been working fine for about a year. I was working on one of the pages, a simple download page. After making a little tweak on the page, I tried to...
2
by: shahalashamo | last post by:
in order to upload image to database,i put a fileUpload control in the InsertItemTemplate of the formView,the code as follows: <asp:FileUpload ID="FileUploadKeyImage"...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...

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.