473,406 Members | 2,336 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

how to store and retrieve image using session?

i am having image in one page and i need to retrieve it on another page. how can i do tat? pls anyone help me... its urgent!!! thanks in advance.
Feb 20 '13 #1
2 2214
Rabbit
12,516 Expert Mod 8TB
This is not a code writing service but if you post the code you tried along with a description of the problem with the code, we can help guide you to an answer.

As a hint, store the path to the image in a session variable and then retrieve it on the other page.
Feb 20 '13 #2
i have written this code where i have the image(first page):

Protected Sub Button17_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button17.Click
path = "~/proj pics 527/congratulations/imagesCA3HVJ8Y.jpg"
Session("name") = path
Server.Transfer("send.aspx")
End Sub

And in the retrieving page i have given this code:

Partial Class send
Inherits System.Web.UI.Page

Protected Sub Page_LoadComplete(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.LoadComplete
Image1.ImageUrl = Session("name")
End Sub
End Class


but nothing is working and it is not showing any error also. can you please help me?
Feb 21 '13 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Jenn | last post by:
I have done alot of web work in all sorts of languages but I have never used the simple cookie. Question is How does one set and retrieve a simple session cookie. All it will do is have an image...
2
by: angus | last post by:
Dear all, how to retrieve and store an image in MS SQL and asp.net? Thank you
6
by: Rudy | last post by:
Hello all! I am amazed how many posts I have read to store an image in SQL, and just as many against it. So I learned how to store an image in a SQL db and retrieve the image. A little tricky,...
2
by: dana lees | last post by:
Hello, I am using session variables in a cs class file. I am inserting a sortedList to a session variable like this: System.Web.HttpContext.Current.Session = EventsSortedList; Later on,...
0
by: PROGRAMMINGMAESTO | last post by:
How to Fetch and Retrieve image in ASP using MS Access. -------------------------------------------------------------------------------- Hello Friends, Can Anybody guide about how should i...
1
by: awburns | last post by:
Hi, A friend of mine has written a C# Assembly to get some data. To do so, though, involves creating an object ( a 'Login' object, containing the user's credentials) and then running a "login()"...
5
by: jcage | last post by:
Hello, I have a form that uses a basic passphrase to ensure an employee user is who they say they are. One field uses 'text' as the input type and the other uses 'password'. When a query has...
4
by: k1d0 | last post by:
Hello all, im very newbie in asp code and now im having a project which needed to use ASP code, as for now i get the upload code from freaspupload website while it only upload to folder and im not...
1
by: Mirazul Hasan | last post by:
I can store and retrieve image reference or location such as "E:\\New Folder\\Multipurpose\\image\\"+ txtname.Text + txtaccnumber.Text +".JPG"; . But I want to store original image and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.