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. [Message Deleted]

[Message Deleted]

Scheduled Pinned Locked Moved ASP.NET
7 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.
  • M Offline
    M Offline
    mr_muskurahat
    wrote on last edited by
    #1

    [Message Deleted]

    L A 2 Replies Last reply
    0
    • M mr_muskurahat

      [Message Deleted]

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Can u post a sample code.

      M 1 Reply Last reply
      0
      • L Lost User

        Can u post a sample code.

        M Offline
        M Offline
        mr_muskurahat
        wrote on last edited by
        #3

        string url = Server.MapPath("~/IDS/" + dr["RmtMLRAddressImg"].ToString()); image1.imageurl= url;

        umerumerumer

        A N L 3 Replies Last reply
        0
        • M mr_muskurahat

          string url = Server.MapPath("~/IDS/" + dr["RmtMLRAddressImg"].ToString()); image1.imageurl= url;

          umerumerumer

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

          what is coming on that page ? Try to check From View Source and check the image path on source file.

          cheers, Abhijit

          1 Reply Last reply
          0
          • M mr_muskurahat

            [Message Deleted]

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

            It's Very Bad to delete Messages !!! X|

            cheers, Abhijit

            1 Reply Last reply
            0
            • M mr_muskurahat

              string url = Server.MapPath("~/IDS/" + dr["RmtMLRAddressImg"].ToString()); image1.imageurl= url;

              umerumerumer

              N Offline
              N Offline
              naveedmazhar
              wrote on last edited by
              #6

              mr_muskurahat wrote:

              string url = Server.MapPath("~/IDS/" + dr["RmtMLRAddressImg"].ToString()); image1.imageurl= url;

              Try to use this: string url = "~/IDS/" + dr["RmtMLRAddressImg"].ToString(); image1.imageurl = url; Hope this helps.

              1 Reply Last reply
              0
              • M mr_muskurahat

                string url = Server.MapPath("~/IDS/" + dr["RmtMLRAddressImg"].ToString()); image1.imageurl= url;

                umerumerumer

                L Offline
                L Offline
                Lost User
                wrote on last edited by
                #7

                mr_muskurahat wrote:

                string url = Server.MapPath("~/IDS/" + dr["RmtMLRAddressImg"].ToString());

                Will return you string like D:\abc\IDS\123.jpg This is not a valid path for web app. Try Using string url = "IDS/" + dr["RmtMLRAddressImg"].ToString(); image1.imageurl= url; It will assign the relative path to image.

                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