Click here to Skip to main content
11,412,345 members (67,113 online)
Rate this: bad
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 21:39pm
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.

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.


1 solution

Rate this: bad
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[^]

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

  Print Answers RSS
0 OriginalGriff 332
1 Sascha Lefévre 200
2 Sergey Alexandrovich Kryukov 140
3 Maciej Los 135
4 ProgramFOX 130
0 Sergey Alexandrovich Kryukov 9,025
1 OriginalGriff 7,247
2 Maciej Los 3,525
3 Abhinav S 3,248
4 Peter Leow 3,059

Advertise | Privacy | Mobile
Web01 | 2.8.150414.5 | Last Updated 13 Dec 2012
Copyright © CodeProject, 1999-2015
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