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. Newbie - 2 questions

Newbie - 2 questions

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

    Hey I wanted to pose a couple of newbie questions. Sorry in advanced if they have already been asked in this forum, and thanks in advanced for those who volunteer or otherwise answer these types of questions. I know how the answer people can sometimes feel like their answers and efforts aren't appreciated by dummies, and can get jaded as a result. Anyway, here are my questions: 1. I have a design or achitecture question. I want users to upload files to a shared mapped file drive, call it the "z:" drive where they can upload images or videos. I already have the code that will upload the images and such. But now I want serve those images or videos without physically moving/copying them to my server directory...I can't figure out how to do that as the absolute or relative path. Can anyone help me by providing a download url that has sample code that can do this? or point me in the right direction with some tutorial urls of what I'm looking for? 2. Last question (do I need to post this in a separate post? - that's not the question :)). I would like have one .aspx affect a different .aspx page for seo reasons. Is there any way to do it programmatically? So I don't have to keep changing the page and then republishing to the web server? If so, any tutorials with sample code to do so? Thanks!

    D N 2 Replies Last reply
    0
    • M Mike654321

      Hey I wanted to pose a couple of newbie questions. Sorry in advanced if they have already been asked in this forum, and thanks in advanced for those who volunteer or otherwise answer these types of questions. I know how the answer people can sometimes feel like their answers and efforts aren't appreciated by dummies, and can get jaded as a result. Anyway, here are my questions: 1. I have a design or achitecture question. I want users to upload files to a shared mapped file drive, call it the "z:" drive where they can upload images or videos. I already have the code that will upload the images and such. But now I want serve those images or videos without physically moving/copying them to my server directory...I can't figure out how to do that as the absolute or relative path. Can anyone help me by providing a download url that has sample code that can do this? or point me in the right direction with some tutorial urls of what I'm looking for? 2. Last question (do I need to post this in a separate post? - that's not the question :)). I would like have one .aspx affect a different .aspx page for seo reasons. Is there any way to do it programmatically? So I don't have to keep changing the page and then republishing to the web server? If so, any tutorials with sample code to do so? Thanks!

      D Offline
      D Offline
      David Mujica
      wrote on last edited by
      #2
      1. You should be able to access your uploaded images (etc), by referencing them like "\\myimageserver\images\Photo1.jpg". You would just need to setup the necessary file sharing security for the IIS process to be able to read the file share and NTFS permissions. If anyone knows differently, please correct me ... I'm just thinking out loud. 2) So are you telling us that you have a page1.aspx actually modifying the contents of page2.aspx ? Wow, I've never done that ... I guess it's possible. Can you describe the actual situation with a bit more detail ? Maybe I could get a better understanding. Always good to ask questions, how else are you going to learn ? I ask plenty of them. :)
      M 1 Reply Last reply
      0
      • D David Mujica
        1. You should be able to access your uploaded images (etc), by referencing them like "\\myimageserver\images\Photo1.jpg". You would just need to setup the necessary file sharing security for the IIS process to be able to read the file share and NTFS permissions. If anyone knows differently, please correct me ... I'm just thinking out loud. 2) So are you telling us that you have a page1.aspx actually modifying the contents of page2.aspx ? Wow, I've never done that ... I guess it's possible. Can you describe the actual situation with a bit more detail ? Maybe I could get a better understanding. Always good to ask questions, how else are you going to learn ? I ask plenty of them. :)
        M Offline
        M Offline
        Mike654321
        wrote on last edited by
        #3

        clarification for #2: yes that's exactly what I want to do. I don't think it's possible though, just not sure. on point #1, I don't think that works as I have tried that already, but if you get it to work, I'd love to see some code examples. Thanks!

        1 Reply Last reply
        0
        • M Mike654321

          Hey I wanted to pose a couple of newbie questions. Sorry in advanced if they have already been asked in this forum, and thanks in advanced for those who volunteer or otherwise answer these types of questions. I know how the answer people can sometimes feel like their answers and efforts aren't appreciated by dummies, and can get jaded as a result. Anyway, here are my questions: 1. I have a design or achitecture question. I want users to upload files to a shared mapped file drive, call it the "z:" drive where they can upload images or videos. I already have the code that will upload the images and such. But now I want serve those images or videos without physically moving/copying them to my server directory...I can't figure out how to do that as the absolute or relative path. Can anyone help me by providing a download url that has sample code that can do this? or point me in the right direction with some tutorial urls of what I'm looking for? 2. Last question (do I need to post this in a separate post? - that's not the question :)). I would like have one .aspx affect a different .aspx page for seo reasons. Is there any way to do it programmatically? So I don't have to keep changing the page and then republishing to the web server? If so, any tutorials with sample code to do so? Thanks!

          N Offline
          N Offline
          Not Active
          wrote on last edited by
          #4
          1. As long as the proper permissions have been applied to the folder I don't see why it shouldn't work 2) You could use some inline script within the head element

            <%= InsertMeta() %>

            protected string InsertMeta()
            {
            return @"";
            }


          I know the language. I've read a book. - _Madmatt

          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