Click here to Skip to main content
15,895,084 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
v2
Comments
VishwaKL 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
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
Nandakishore G N 13-Dec-12 6:39am    
what have you done so..far...paste it....
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

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[^]
 
Share this answer
 
v2

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