473,569 Members | 2,562 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1297
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.goo glegroups.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************* *********@t31g2 00...legr 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 #3

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

Similar topics

2
9786
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 in a link. that function can have parameters for URL and window name passed to it. This works peachy in Firefox (1.0). With IE 6 (6.0.29) on two...
1
6491
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 is a simple details page from a link selected from another page. The details page calls a procedure that calls our database, returns a recordset,...
4
2706
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 source of the files...
8
2099
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 message, some entry in registry where a log is created (or that enables a log, trace, dump or whatever)... I'm a little bit frustated with this error...
2
2967
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 to the same page at the top of my form alerting the user that their request has been approved or denied. However, the end result is an error...
0
3549
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 OleDbParameterCollection" whenI try to write a new record. Delete and Modify work fine its just the add record function causes the error.
7
5049
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 to catch that. How would I customize the error page then? Regards DC
1
20202
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 re-run the project and got the error: The server block is not well formed. Page: FileDownload.aspx, line 23935. Now, there are only about 50 lines...
2
1504
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" runat="server" FileBytes='<%# Bind("keyImage") %>' /> and the FormView is bind to a sqlDataSource,part of code in sqlDataSource is ...
0
7701
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7615
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...
0
7924
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, 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. ...
0
8130
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7677
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...
0
7979
tracyyun
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...
0
5219
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3653
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...
0
3643
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.