Click here to Skip to main content
15,888,269 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I Used Update Panels to avoid post backs. within page i used grid and one column of grid contains file upload control.

If i am not using update panel then my code runs fine. but when i used update panel my file uploader gets nothing from control.

Dim uploadControl As FileUpload = CType(gvOrderList.Rows(index).FindControl("fileUpdNm"), FileUpload)
Posted

1 solution

check out this article
Simple AJAX File Upload[^]
 
Share this answer
 
Comments
TrushnaK 12-Apr-13 4:26am    
i already done that. problem just for file uploading. otherwise my insert,update,delete works fine...
r u have another solution
Pallavi Waikar 12-Apr-13 4:57am    
along with file uploader add button of name upload and use answer 2 from link http://stackoverflow.com/questions/11026908/i-am-unable-to-use-file-upload-which-is-in-gridview-in-the-update-panel-have-al...try this example
TrushnaK 12-Apr-13 5:31am    
with trigger i get problem that it can not find the control of edit the row.

i used Page.Form.Attributes.Add("enctype", "multipart/form-data") but not working.
Pallavi Waikar 12-Apr-13 10:10am    
have added EnableEventValidation="false" on page directive and
<Triggers>

<asp:PostBackTrigger ControlID="GridView1" />

</Triggers>
on update panel

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

  Print Answers RSS


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