Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#ASP.NET
I have created a user control, which uses ajax.
I want to add a file upload control and an image control, which displays the image by clicking submit button also in the user control.
 
How can I do it?
Please help.
Posted 12-Dec-12 20:39pm
Edited 13-Dec-12 1:02am
Tadit Dash83.2K
v2
Comments
VishwaKL at 13-Dec-12 2:50am
   
call that user control in aspx page by registering that control, here you can upload and use gridview/listview to show the images
Tadit Dash at 13-Dec-12 7:06am
   
Hi @VishwaKL, There is one question asked by @Ashit Mehra. "but how exactly do i show the image file that i am selecting in the upload control in the grid view?could u show the code please". Please help him. Thanks, Tadit
Nandakishorerao at 13-Dec-12 6:39am
   
what have you done so..far...paste it....
Tadit Dash at 13-Dec-12 7:12am
   
Hi @Ashit Mehra, You had added the comment in the answer box, which is not needed. If you want to reply to somebody, then just add your comment by clicking the reply button extreme right in the comment box of the user who is replying you. So, I just replied your comments to @VishwaKL. He will be answering your query. If any other help needed, please reply me here. Thanks, Tadit

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

Hi Ashit,
 
You have placed image upload control inside update panel, but image upload control requires complete postback, to display image either you have have to do complete postback or you can use asynchronous jquery image upload control.
 
Check this link http://www.dotnet-tricks.com/Tutorial/aspnet/R8SX290512-Asp.Net-asynchronous-file-upload-using-jquery.html[^]
  Permalink  
v2

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

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Sergey Alexandrovich Kryukov 462
1 sanket saxena 355
2 OriginalGriff 235
3 Abhinav S 233
4 CPallini 205
0 Sergey Alexandrovich Kryukov 8,784
1 OriginalGriff 5,025
2 Peter Leow 3,839
3 Maciej Los 3,535
4 Er. Puneet Goel 3,107


Advertise | Privacy | Mobile
Web03 | 2.8.140415.2 | Last Updated 13 Dec 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid