Click here to Skip to main content
15,169,249 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm using file upload in datalist

and save button outside datalist.

i have to save upload files using file upload when user clicks save.

but if i check file in save event its always showing no file

my datalist is in update panel

and my save is also in the same update panel and also wrapped with one more update panel like shown below

save button code :
<asp:UpdatePanel runat="server" ID="updtsave"  EnableViewState="true">
                              <asp:Button runat="server" ID="btnsave" OnClientClick="return ele()" Text="Save"
                                  CssClass="button" OnClick="btnsave_Click" />
                              <asp:PostBackTrigger ControlID="btnsave" />
Updated 4-Jun-14 2:04am
Ajith K Gatty 4-Jun-14 2:56am
Add ;.ie;
OnClientClick="return ele();" It may not trigger without proper syntax.
Member 10843538 4-Jun-14 3:10am
added but still not triggered

1 solution


Place your file upload control within update panel(updtsave).

Definitely it will work.

Let me know what happened :)

Member 10843538 5-Jun-14 1:30am
Sir, My file Upload is in DataList . So its not Possible for me to move
Shrikant Mhaske 6-Jun-14 2:15am
Then move your whole DataList control in update panel(updtsave).
Member 10843538 6-Jun-14 9:55am
thats what i had done it worked

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