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
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
0 Sergey Alexandrovich Kryukov 853
1 OriginalGriff 410
2 CPallini 275
3 George Jonsson 226
4 Richard Deeming 145
0 OriginalGriff 5,450
1 CPallini 4,500
2 Sergey Alexandrovich Kryukov 4,482
3 George Jonsson 3,057
4 Gihan Liyanage 2,445


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

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100