how to store and retrieve image using session?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • selas monika
    New Member
    • Feb 2013
    • 2

    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.
  • Rabbit
    Recognized Expert MVP
    • Jan 2007
    • 12517

    #2
    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.

    Comment

    • selas monika
      New Member
      • Feb 2013
      • 2

      #3
      i have written this code where i have the image(first page):

      Protected Sub Button17_Click( ByVal sender As Object, ByVal e As System.EventArg s) 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.P age

      Protected Sub Page_LoadComple te(ByVal sender As Object, ByVal e As System.EventArg s) 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?

      Comment

      Working...