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

fileupload control problem using an imagebutton on top of it

111 100+
I am using updatepanel in my application and fileupload control...there is no way to customize the look and feel of the fileupload control so what i have done is kept an image on top of the browse button of the fileupload control.

And when the user clicks on the imagebutton which will be exactly like a browse button, i raise the fileupload click event by javascript.

Like fileupload1.click();

When i use this, when i click on the submit button of the form...it doesnot postback to the server, simply it executes the clientside script and goes dead....if i remove this image button, the same code works perfectly....?


Did any one of you faced the same kind of problem....please its urgent...help me...................


thanks in advance....

Combination is like
Updatepanel, FileUpload, Image on top of FileUpload.....problem is with the image click event raising the fileupload button click...
Apr 25 '10 #1
3 2360
Frinavale
9,735 Expert Mod 8TB
Bharathreddy,

The FileUpload control is not supported in UpdatePanels. It will appear to work (the page will submit to the server and everything) but you will never be able to get the file (it will always be null/nothing).

FileUpload controls require full page postbacks.

-Frinny
Apr 27 '10 #2
bharathreddy
111 100+
@Frinavale
Hi Frinny,

Thankyou so much for the response. My problem is like, I am using a complete postback, its working good and the file is also being uploaded to ftp server, but my problem is:

If I normally keep the fileupload control with out any styles its working good.

But if I keep an image on top of the fileupload control which looks like a browse button, and on this image click i am firing the fileupload browse click to select the file. So far so good its works as expected. But when I try to click another button called submit, to submit the form, this button is not able to postback the page....i mean its button click event is not working....

If I remove the image on top of browse button its working fine.....

Thanks
Bharath VasiReddy
Apr 27 '10 #3
Frinavale
9,735 Expert Mod 8TB
Sounds like a job for FireBug :)
You need to figure out which control is over top of your submit button.
It's probably has a visible:false style...but it's still there hovering over the submit button.
Apr 27 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Uncle Ben | last post by:
How strong and reliable is the new ASP.NET 2.0 FileUpload control? By that, I mean is it reliable enough to accept 2-gigabyte file uploads per upload session? Also, is it possible or easy to...
4
by: Jordan | last post by:
I need to dynamically add an ImageButton control to a user control and and do some server-side processing when the user clicks it. While I the ImageButton is added to the user control at runtime,...
1
by: Marko Vuksanovic | last post by:
I am trying to implement an upload progress indicator using atlas, using the following workaround: http://forums.asp.net/thread/1321664.aspx This is the code in FileUpload.apsx file is as...
12
by: Phil Z. | last post by:
After migrating an ASP.NET 1.1 application to 2.0 we were getting "Cannot access a closed file" errors when uploading. I found a number of post on the subject and have since moved from using an...
4
by: Dave | last post by:
If you had a FileUpload control inside of a FormView...how would you use FindControl to access the FileUpload properties? Let me just say that...
3
by: rn5a | last post by:
The ASPX FileUpload control displays a TextBox along with a 'Browse...' Button. Setting the different properties of this control just reflects the changes in the TextBox but not the Button. For...
2
by: Toni | last post by:
I have ImageButton array. I have defined onClick event and it works. But in this function I can not use control propetries. I want to use index of ImageButton which is clicked and ImageURL...
5
by: =?Utf-8?B?QmVydA==?= | last post by:
Hi How can you set the filename property in the asp:fileupload control? How can you persist the value of the chosen filename between postbacks? thanks B
2
by: =?Utf-8?B?UGF1bA==?= | last post by:
I have a gridview with 2 columns. One column is a BoundColumn to a part number (string). One column is an ItemTemplate with a FileUpload control. There can be multiple rows (i.e. part numbers)...
3
by: skcsknathan001 | last post by:
I have 2 projects, and accessing a custom control , fron another project. Inside the custom control, it calls a function It compiles and when it runs I get a NullReference error message on the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

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.