Click here to Skip to main content
13,045,566 members (70,935 online)
Rate this:
Please Sign up or sign in to vote.
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 12-Dec-12 20:39pm
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
Nandakishorerao 13-Dec-12 6:39am
what have you done so..far...paste it....
Tadit Dash 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.

Tadit Dash 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
Top Experts
Last 24hrsThis month

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