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
  1. Home
  2. Web Development
  3. ASP.NET
  4. How to display images .jpeg, .jpg, .bmp, .png, & .swf(Flash images) under one control ?

How to display images .jpeg, .jpg, .bmp, .png, & .swf(Flash images) under one control ?

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netadobehelptutorial
9 Posts 2 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.
  • K Offline
    K Offline
    K V Sekhar
    wrote on last edited by
    #1

    Hi all, I have to display all types of images including flash imges to user. I could able to display images of all formats except .swf(flash) files in Image Control of asp.net. For Displaying .swf(flash)images i used FlashConrol(from FlashControl.dll). This control is only displayinf images of type .swf, but i want to display all types of images under single control(asp.net control / third party control). Is it possible ? If yes!, How? Please help me. Thanks in advance.

    W 1 Reply Last reply
    0
    • K K V Sekhar

      Hi all, I have to display all types of images including flash imges to user. I could able to display images of all formats except .swf(flash) files in Image Control of asp.net. For Displaying .swf(flash)images i used FlashConrol(from FlashControl.dll). This control is only displayinf images of type .swf, but i want to display all types of images under single control(asp.net control / third party control). Is it possible ? If yes!, How? Please help me. Thanks in advance.

      W Offline
      W Offline
      windhopper
      wrote on last edited by
      #2

      Have you tried using a literal to display the images?

      "Sex is not the answer, it's the question and the answer is yes"

      K 1 Reply Last reply
      0
      • W windhopper

        Have you tried using a literal to display the images?

        "Sex is not the answer, it's the question and the answer is yes"

        K Offline
        K Offline
        K V Sekhar
        wrote on last edited by
        #3

        Hi, Thanks for your reply. Using a literal ? Do you mean Literal control ? If that, how can we display images in literal control.. Cheers, sekhar

        W 1 Reply Last reply
        0
        • K K V Sekhar

          Hi, Thanks for your reply. Using a literal ? Do you mean Literal control ? If that, how can we display images in literal control.. Cheers, sekhar

          W Offline
          W Offline
          windhopper
          wrote on last edited by
          #4

          Yup, a literal control. Here's an example:

          literal.Text = "<img src=\"picture.jpg "\" />";

          "Sex is not the answer, it's the question and the answer is yes"

          K 1 Reply Last reply
          0
          • W windhopper

            Yup, a literal control. Here's an example:

            literal.Text = "<img src=\"picture.jpg "\" />";

            "Sex is not the answer, it's the question and the answer is yes"

            K Offline
            K Offline
            K V Sekhar
            wrote on last edited by
            #5

            Hi, Thanks for your reply, But i have to assign the path at runtime. and there is a Previous & Next buttons in my page . i have to show the next image when user clicks on Next, previous image when user clicks on Previous buttons. I am storing image in diffrent folders, the path is stored in database table. So how can i use this literal control. Is literal control displays Flash images(.swf files). Please help me... Cheers, sekhar

            W 1 Reply Last reply
            0
            • K K V Sekhar

              Hi, Thanks for your reply, But i have to assign the path at runtime. and there is a Previous & Next buttons in my page . i have to show the next image when user clicks on Next, previous image when user clicks on Previous buttons. I am storing image in diffrent folders, the path is stored in database table. So how can i use this literal control. Is literal control displays Flash images(.swf files). Please help me... Cheers, sekhar

              W Offline
              W Offline
              windhopper
              wrote on last edited by
              #6

              That shouldn't be a problem. Just edit the code where needs be to allow for this. So just put the code in event handlers of the next buttons and use a count to increment and decrement clicks on the buttons so the events are registered. I'm not 100% sure if it displays flash images but it can be used as a container for the player you mentioned that you downloaded. I know it definately works for images and as a container for a mediaplayer to display videos. Here's code for the video:

              mplayer.Filename = "video.flv";
              mplayer.autoStart = false;
              ltlMplayer.Text = mplayer.getval();

              Hope that helps you

              "Sex is not the answer, it's the question and the answer is yes"

              K 1 Reply Last reply
              0
              • W windhopper

                That shouldn't be a problem. Just edit the code where needs be to allow for this. So just put the code in event handlers of the next buttons and use a count to increment and decrement clicks on the buttons so the events are registered. I'm not 100% sure if it displays flash images but it can be used as a container for the player you mentioned that you downloaded. I know it definately works for images and as a container for a mediaplayer to display videos. Here's code for the video:

                mplayer.Filename = "video.flv";
                mplayer.autoStart = false;
                ltlMplayer.Text = mplayer.getval();

                Hope that helps you

                "Sex is not the answer, it's the question and the answer is yes"

                K Offline
                K Offline
                K V Sekhar
                wrote on last edited by
                #7

                Hi, Thanks for your reply. I dont have any video files to display. I have to display images of different formats including Flash images(.swf files). In image control i could able to display all type of images except .swf(flash images). Here is my problem. I want to display all in single asp.net control. Cheers, sekhar

                W 1 Reply Last reply
                0
                • K K V Sekhar

                  Hi, Thanks for your reply. I dont have any video files to display. I have to display images of different formats including Flash images(.swf files). In image control i could able to display all type of images except .swf(flash images). Here is my problem. I want to display all in single asp.net control. Cheers, sekhar

                  W Offline
                  W Offline
                  windhopper
                  wrote on last edited by
                  #8

                  I realise this but Flash works similarily to videos when being displayed so try the example i gave you and modify the code so it works for you otherwise i'm sorry i don't know what else to suggest :)

                  "Sex is not the answer, it's the question and the answer is yes"

                  K 1 Reply Last reply
                  0
                  • W windhopper

                    I realise this but Flash works similarily to videos when being displayed so try the example i gave you and modify the code so it works for you otherwise i'm sorry i don't know what else to suggest :)

                    "Sex is not the answer, it's the question and the answer is yes"

                    K Offline
                    K Offline
                    K V Sekhar
                    wrote on last edited by
                    #9

                    Hi, Thanks for your help. Cheers, sekhar

                    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