Win Surprise Gifts!!!
Top 5 Contributors of the Month
Post New Question
Subscribe to Forum
FileUpload issue with UpdatePanel
January 18, 2010
I have two scenarios
1. I have asp fileupload control in my form,and also I have button(1st), when I select a file and clicked on the button(1.e. 1stbutton) then I should open a modalPopup (the popup will open based on few condtions so I had to go with server side code), on that Popup there is a button(2nd) onclik of that button(i.e. 2nd button) I have to save the selected file.
2. On the other condition popup will not open at that Time I have to save the file onclick of 1st button itself at that time also am unable to read the filename.
I tried to keep the button and modalpopup inside one updatepanel the selected file is visible in the fileupload control but am unable to read the filename it is showing null in both the scenarios.
Posted Date: January 18, 2010 Points: 5
You can not assign the value in the fileupload control. So you can not that.
Hope this will give you an idea.
Mark As Answer
" if this post help you.
Posted Date: January 19, 2010 Points: 5
Yes we can do the way which u suggest but the situation here is that the popup has to open by running the server side code only because am running a procedure to check the condition for popup open.
And the other thing is I will not always save the selected file when the popup opens i.e. on Popup there is one more button called Cancel it just closes the popup at that time I should show the Selected file in the upload Control!!!
So I think that will not work out as we cant assign the value to upload as we know!!
To post reply
Related Questions Related Questions
security issue in web services
ASP.NET web application - WebResource.axd and ScriptResource.axd files - Loading time issue
Fileupload control event....
Web Service issue
Update panel - Fileupload problem
Visual Studio 2008 installation issue
Reg fileupload control
Is there any free Ajax FileUpload Control for ASP.Net 2.0 ?
ProgressBar with the FileUpload Control for ASP.Net 2.0 ?
Latest Forum Questions From The Same Category
How do i get payment status in redirect page using bitpay?
Login with Facebook and Save details in database
Login with facebook account in my website
How to make a nested datalist control?
What class does Icon derive from?
What are the validation controls?
What''s the difference between an interface and abstract class?
How to read Unicode form PDF File and Save into DataBase ?
How to identify the color format of eps/tiff using c#?
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more
Quick Links For Forum Categories:
Hall of Fame
Terms of Service
Tell A Friend