image disappear after uploading when navigate to another page..

Posted by Ankitsrist under ASP.NET on 1/11/2013 | Points: 10 | Views : 1321 | Status : [Member] | Replies : 5
hello,
i have used fileuploader to upload image into my application folder and image displays into image control its working fine, but it disappear when i navigate to different page of my application nd when i returned to that same page actualy i wanted to display image in each page of my application...please help
thanks




Responses

Posted by: Shubham on: 1/11/2013 [Member] Starter | Points: 25

Up
0
Down
Hi!!! Ankitsrist

If u save image on folder and show image on image control on each page so u can use master page and show image on that only and make other page attach to master page it show image in only one page but due to master page attachment shown on all page...

Thanks&Regards:-
Shubham Choudhary
Software Engineer
www.facebook.com/shubham.kunar

Ankitsrist, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Ankitsrist on: 1/11/2013 [Member] Starter | Points: 25

Up
0
Down
thanks for ur reply, yes sir i have a master page, nd i have one content page upload.aspx from where i upload image nd image control is on upload.aspx page, nd when i use image control on master page it shows an error in upload.aspx page that image control not found on current context...so wat to do sir

Ankitsrist, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Ankitsrist on: 1/11/2013 [Member] Starter | Points: 25

Up
0
Down
need help

Ankitsrist, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Shubham on: 1/11/2013 [Member] Starter | Points: 25

Up
0
Down
Hello!!!!Ankitsrist

for this you have to do
set image control and imageuploader control on upload.aspx page and upload image from their....
but show image from master page on page load event.
how to do simply pass the image path on it....
and i will suggest u to make custom name for image and save only image name on database its helpful for u









Thanks&Regards:-
Shubham Choudhary
Software Engineer
www.facebook.com/shubham.kunar

Ankitsrist, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Ankitsrist on: 1/11/2013 [Member] Starter | Points: 25

Up
0
Down
sir if u have any sample application regarding my query please provide.....

Ankitsrist, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response