Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. how can i create security image

how can i create security image

Scheduled Pinned Locked Moved ASP.NET
securityquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Abolfazl Sheikhloo
    wrote on last edited by
    #1

    i want to create security image and use it in my website registration. i create that image on fly but cant place it in the part of page. i can use response.binarywrite(imagestream) but in this method, all of controls will be lost and only image is visible i want insert the created image in between DIV tag in part of page

    We Can Do Anything, If We Want It

    J P 2 Replies Last reply
    0
    • A Abolfazl Sheikhloo

      i want to create security image and use it in my website registration. i create that image on fly but cant place it in the part of page. i can use response.binarywrite(imagestream) but in this method, all of controls will be lost and only image is visible i want insert the created image in between DIV tag in part of page

      We Can Do Anything, If We Want It

      J Offline
      J Offline
      John ph
      wrote on last edited by
      #2

      Abolfazl Sheikhloo wrote:

      response.binarywrite(imagestream) but in this method, all of controls will be lost and only image is visible

      Response.Binarywrite(imagestream) will write the imagestream contents to the client. Obviously other controls in the page will be lost and Image will be dispalyed.

      Abolfazl Sheikhloo wrote:

      i want insert the created image in between DIV tag in part of page

      If you want the Image to be dispalyed in the page along with the page contents then create a seperate page to display the Image, put all your Image display code in that page and then as per your requriement add a Image control Inside the DIV tag in your actual page and then set the ImageUrl property of the Image control to ImageDisplay Page. something like this.... <-asp:Image id="Image1" runat="server" ImageUrl="ImageDisplay.aspx">

      Regards
      J O H N :rose:
      "Even eagles need a push." David McNally


      1 Reply Last reply
      0
      • A Abolfazl Sheikhloo

        i want to create security image and use it in my website registration. i create that image on fly but cant place it in the part of page. i can use response.binarywrite(imagestream) but in this method, all of controls will be lost and only image is visible i want insert the created image in between DIV tag in part of page

        We Can Do Anything, If We Want It

        P Offline
        P Offline
        pmarfleet
        wrote on last edited by
        #3

        Point the URL of your image tag at another ASPX page. For this new ASPX page, set the content type of the Response to be one of the MIME image content types e.g. image/jpeg and use Response.BinaryWrite to stream back the data for the image as you are already doing.

        Paul Marfleet

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups