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. Instead of http://localhost:3112/ I need to use the Current servername

Instead of http://localhost:3112/ I need to use the Current servername

Scheduled Pinned Locked Moved ASP.NET
adobecomdesigntoolsquestion
5 Posts 4 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.
  • G Offline
    G Offline
    getaccessyr
    wrote on last edited by
    #1

    Hi All, In my Application we are using flash files,in that if we click on the flash image it should redirect to another page in new window,so to do that we are doing like this: string sFlashObject = "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,65,0\\" height=\"195\" width=\"220\"> " + "<param name=\"movie\" value=\"http://ebutler.be/erez/fsi/fsi.swf?autobooklet=true&amp;src=http://www.ebutler.be/erez&amp;pages\_dir=" + hfImageFilePath.Value + "&cfg=pages_presets/thumbnail.fsi&MouseModes_Mode2=0& pages_demourl=http://localhost:3112/UI/FSIViewer.aspx?FolderID%3D" + hfFolderId.Value + "&pages_demourltarget=_new\"> " + "<param name=\"wmode\" value=\"transparent\"> " + "<embed type=\"application/x-shockwave-flash\" pluginspage=\"http://www.adobe.com/shockwave/download/download.cgi?P1\_Prod\_Version=ShockwaveFlash\\" wmode=\"transparent\" src=\"http://ebutler.be/erez/fsi/fsi.swf?autobookletId=true&amp;src=http://www.ebutler.be/erez&amp;pages\_dir=" + hfImageFilePath.Value + "&cfg=pages_presets/thumbnail.fsi&MouseModes_Mode2=0& pages_demourl=http:///localhost:3112/UI/FSIViewer.aspx?FolderID%3d" + hfFolderId.Value + "&pages_demourltarget=_new\" height=\"195\" width=\"220\"> " + "</object>"; In the above script you can notice that i gave demourl as: "http:///localhost:3112 /UI/FSIViewer.aspx?FolderID%3d" Instead of this i need to show Servername where ever we open the application Thanks In Advance Yamuna

    N A 2 Replies Last reply
    0
    • G getaccessyr

      Hi All, In my Application we are using flash files,in that if we click on the flash image it should redirect to another page in new window,so to do that we are doing like this: string sFlashObject = "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,65,0\\" height=\"195\" width=\"220\"> " + "<param name=\"movie\" value=\"http://ebutler.be/erez/fsi/fsi.swf?autobooklet=true&amp;src=http://www.ebutler.be/erez&amp;pages\_dir=" + hfImageFilePath.Value + "&cfg=pages_presets/thumbnail.fsi&MouseModes_Mode2=0& pages_demourl=http://localhost:3112/UI/FSIViewer.aspx?FolderID%3D" + hfFolderId.Value + "&pages_demourltarget=_new\"> " + "<param name=\"wmode\" value=\"transparent\"> " + "<embed type=\"application/x-shockwave-flash\" pluginspage=\"http://www.adobe.com/shockwave/download/download.cgi?P1\_Prod\_Version=ShockwaveFlash\\" wmode=\"transparent\" src=\"http://ebutler.be/erez/fsi/fsi.swf?autobookletId=true&amp;src=http://www.ebutler.be/erez&amp;pages\_dir=" + hfImageFilePath.Value + "&cfg=pages_presets/thumbnail.fsi&MouseModes_Mode2=0& pages_demourl=http:///localhost:3112/UI/FSIViewer.aspx?FolderID%3d" + hfFolderId.Value + "&pages_demourltarget=_new\" height=\"195\" width=\"220\"> " + "</object>"; In the above script you can notice that i gave demourl as: "http:///localhost:3112 /UI/FSIViewer.aspx?FolderID%3d" Instead of this i need to show Servername where ever we open the application Thanks In Advance Yamuna

      N Offline
      N Offline
      Nisha Agrawal
      wrote on last edited by
      #2

      you can get the value of Current Server via Request.Url after some string manipulations. Request.Url.toString() will give you the URl of the current webpage request so via string manipulations you can get the name of the server.

      1 Reply Last reply
      0
      • G getaccessyr

        Hi All, In my Application we are using flash files,in that if we click on the flash image it should redirect to another page in new window,so to do that we are doing like this: string sFlashObject = "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,65,0\\" height=\"195\" width=\"220\"> " + "<param name=\"movie\" value=\"http://ebutler.be/erez/fsi/fsi.swf?autobooklet=true&amp;src=http://www.ebutler.be/erez&amp;pages\_dir=" + hfImageFilePath.Value + "&cfg=pages_presets/thumbnail.fsi&MouseModes_Mode2=0& pages_demourl=http://localhost:3112/UI/FSIViewer.aspx?FolderID%3D" + hfFolderId.Value + "&pages_demourltarget=_new\"> " + "<param name=\"wmode\" value=\"transparent\"> " + "<embed type=\"application/x-shockwave-flash\" pluginspage=\"http://www.adobe.com/shockwave/download/download.cgi?P1\_Prod\_Version=ShockwaveFlash\\" wmode=\"transparent\" src=\"http://ebutler.be/erez/fsi/fsi.swf?autobookletId=true&amp;src=http://www.ebutler.be/erez&amp;pages\_dir=" + hfImageFilePath.Value + "&cfg=pages_presets/thumbnail.fsi&MouseModes_Mode2=0& pages_demourl=http:///localhost:3112/UI/FSIViewer.aspx?FolderID%3d" + hfFolderId.Value + "&pages_demourltarget=_new\" height=\"195\" width=\"220\"> " + "</object>"; In the above script you can notice that i gave demourl as: "http:///localhost:3112 /UI/FSIViewer.aspx?FolderID%3d" Instead of this i need to show Servername where ever we open the application Thanks In Advance Yamuna

        A Offline
        A Offline
        Abhijit Jana
        wrote on last edited by
        #3

        First of all, you code is nota understandable at all.

        yamunarani wrote:

        pages_demourl=http://localhost:3112/UI/FSIViewer.aspx?FolderID%3D" + hfFolderId.Value +

        What about this one,

        pages_demourl="/UI/FSIViewer.aspx?FolderID%3d" + hfFolderId.Value +;

        Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

        G 1 Reply Last reply
        0
        • A Abhijit Jana

          First of all, you code is nota understandable at all.

          yamunarani wrote:

          pages_demourl=http://localhost:3112/UI/FSIViewer.aspx?FolderID%3D" + hfFolderId.Value +

          What about this one,

          pages_demourl="/UI/FSIViewer.aspx?FolderID%3d" + hfFolderId.Value +;

          Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

          G Offline
          G Offline
          getaccessyr
          wrote on last edited by
          #4

          Hi Abhijit, Thanks for your reply We are using FSI viewer in Our application so we are using the Code which i posted in the message if you want you can view the Message again.To bind the image dynamically we have to use that code. If u want explanation about FSI viewer i will give you not understood. Instead of http://localhost:3112/ this i need to use that too dynamically i have to get. regards, Yamuna

          A 1 Reply Last reply
          0
          • G getaccessyr

            Hi Abhijit, Thanks for your reply We are using FSI viewer in Our application so we are using the Code which i posted in the message if you want you can view the Message again.To bind the image dynamically we have to use that code. If u want explanation about FSI viewer i will give you not understood. Instead of http://localhost:3112/ this i need to use that too dynamically i have to get. regards, Yamuna

            A Offline
            A Offline
            Abhishek Sur
            wrote on last edited by
            #5

            Is http://localhost:3112 is the same site from which you are... If it is .. you can only use Relative path, rather than absolute. :-D

            Abhishek Sur


            My Latest Articles **Create CLR objects in SQL Server 2005 C# Uncommon Keywords Read/Write Excel using OleDB

            **Don't forget to click "Good Answer" if you like to.

            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