Click here to Skip to main content
16,018,534 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
However, since I've put the gride view in the AJAX.Net update panel, The picture FileUpload.PostedFile and picture FileUpload.Filename properties are blank. :(( plz help me



Help
Posted

FileUpload and HtmlInputFile controls when they are used to upload files as part of an asynchronous postback are Not Compatible with UpdatePanel Controls.
Read here: UpdatePanel Control [^]

Possible alternatives:
1. Use postback trigger in case of fileupload. Since your fileupload is a part og grid, you have to either put whole grid outside update panel or have a postback trigger for it's operations

2. Replace your fileupload with new AsyncFileUpload control released as a part of Ajax XontrolToolkit lately. Look here: AsyncFileUpload Demonstration[^]
 
Share this answer
 
Hi ..
Use the GridView in the Update panel and use the triigger for that ... it will work...

<pre lang="xml"><asp:UpdatePanel ID="upviewalbum" runat="server">
    <Triggers>
        <asp:PostBackTrigger ControlID="btnuploadphoto" />
    </Triggers>



In the above code snippet btnuploadphoto is the button to save the image that is taken by fileupload control..thats it now you can use the gridview in the content template of updatepanel.

HappyCoding:cool:
 
Share this answer
 
Comments
Sandeep Mewara 1-Jul-10 5:36am    
Reason for my vote of 1
The same was explained to OP earlier.
Fileupload control in updatepanel is not supported. see msdn for further reference.
 
Share this answer
 
Comments
Sandeep Mewara 1-Jul-10 5:02am    
Reason for my vote of 1
Already replied the same thing with links! You can support the previous answer instead of repeating it after a gap of time.
there is now way!!!!!!!
any one can help me in this plz help :confused::confused::confused:
 
Share this answer
 
Comments
Sandeep Mewara 3-Jul-10 8:46am    
Reason for my vote of 1
1. This is not an answer
2. What do you mean by 'there is no way'?
3. You were told why the issue rose and the ways you can handle it.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900