473,405 Members | 2,300 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,405 software developers and data experts.

Upload file object Problem in Repeater

I have the following object that uploads files:

<input id="MyFile" style="width:100px" type="File"
onClick="UploadFile" runat="Server">

in my Repeater control. And it doesn't seem to work.

I need to save the file automatically when the file is uploaded. Normally,
you would have an Upload button to do this, but I need it to do it right
away.

I added the onClick property, but as soon as I put my mouse in the textbox,
I get a popup that says there is UploadFile is undefined. But it is there.

I assume that it thinks there is a Javascript procedure (which there isn't).

Is there a way to make this work correctly?

Thanks,

Tom
Nov 19 '05 #1
2 1637
the onclick is a client side event, thus the scripting error.

-- bruce (sqlwork.com)

"tshad" <ts**********@ftsolutions.com> wrote in message
news:e0**************@tk2msftngp13.phx.gbl...
I have the following object that uploads files:

<input id="MyFile" style="width:100px" type="File"
onClick="UploadFile" runat="Server">

in my Repeater control. And it doesn't seem to work.

I need to save the file automatically when the file is uploaded.
Normally, you would have an Upload button to do this, but I need it to do
it right away.

I added the onClick property, but as soon as I put my mouse in the
textbox, I get a popup that says there is UploadFile is undefined. But it
is there.

I assume that it thinks there is a Javascript procedure (which there
isn't).

Is there a way to make this work correctly?

Thanks,

Tom

Nov 19 '05 #2

"Bruce Barker" <br******************@safeco.com> wrote in message
news:uf**************@TK2MSFTNGP10.phx.gbl...
the onclick is a client side event, thus the scripting error.
That was what I figured.

All the examples of setting up the upload object, necessitate 2 steps,
pressing the browse button and then an Upload button to actually upload the
file.

I was trying to find a way to do it with one step (hitting the browse button
would get the file and upload it).

Thanks,

Tom

-- bruce (sqlwork.com)

"tshad" <ts**********@ftsolutions.com> wrote in message
news:e0**************@tk2msftngp13.phx.gbl...
I have the following object that uploads files:

<input id="MyFile" style="width:100px" type="File"
onClick="UploadFile" runat="Server">

in my Repeater control. And it doesn't seem to work.

I need to save the file automatically when the file is uploaded.
Normally, you would have an Upload button to do this, but I need it to do
it right away.

I added the onClick property, but as soon as I put my mouse in the
textbox, I get a popup that says there is UploadFile is undefined. But
it is there.

I assume that it thinks there is a Javascript procedure (which there
isn't).

Is there a way to make this work correctly?

Thanks,

Tom


Nov 19 '05 #3

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

Similar topics

3
by: dave | last post by:
Hello there, I am at my wit's end ! I have used the following script succesfully to upload an image to my web space. But what I really want to be able to do is to update an existing record in a...
9
by: Ric | last post by:
im new to asp.net. please help if u can. is it possible to refer to a control(ie lable, placeholder, textbox) that is inside a repeater object from a code behind file? when i place the control...
10
by: Brian Henry | last post by:
Hi, I am having a problem with an attachment system I made... it works with files up to ~3MB in size then after that if you try to upload a file it just goes to a "Page can not be displayed" page...
2
by: Tom Wells | last post by:
I have a little file upload page that I have been able to use to successfully upload files to the C: drive of LocalHost (my machine). I need to be able to upload to a network drive from the intranet...
2
by: Alan Silver | last post by:
Hello, I am just trying out reading an XML file in an ASP.NET page, but am having a little trouble. I'm sure this is something really obvious and dumb, but I can't see what ... I have an XML...
15
by: David Lozzi | last post by:
Howdy, I have a function that uploads an image and that works great. I love ..Nets built in upload, so much easier than 3rd party uploaders! Now I am making a public function that will take the...
9
by: Wayne Smith | last post by:
I've come up against a major headache that I can't seem to find a solution for but I'm sure there must be a workaround and I would really be grateful of any help. I'm currently building a web...
1
by: Marko Vuksanovic | last post by:
I used the following code for implementing a file upload progress indicator, using UpdateProgress Panel, though I have a problem that FileUpload.Has File always returns false. Any suggestions what...
21
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Uploading files from a local computer to a remote web server has many useful purposes, the most...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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,...
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...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.