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. General Programming
  3. Visual Basic
  4. Hyperlink

Hyperlink

Scheduled Pinned Locked Moved Visual Basic
databasesysadminhelptutoriallearning
2 Posts 2 Posters 1 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.
  • H Offline
    H Offline
    hsuresh
    wrote on last edited by
    #1

    Hi i am attaching one file that saves in server, i m storing tht path in DB Ex: ../../Attachment/ & strfile i when i downloading tht file using hyperlink first i am doing like this CType(infTabReqTrans.Tabs.FromKeyTab("GeneralDetails"). _ FindControl("hprAtt"), HyperLink).Text = _ IIf(dsFillReq.Tables(0).Rows(0).Item("Attament") Is DBNull.Value, "No File", _ "Download") CType(infTabReqTrans.Tabs.FromKeyTab("GeneralDetails"). _ FindControl("hprAtt"), HyperLink).NavigateUrl = _ IIf(dsFillReq.Tables(0).Rows(0).Item("Attament") Is DBNull.Value, "No File", _ dsFillReq.Tables(0).Rows(0).Item("Attament")) its telling that 404 error resource can't find if i attach with pull path it open like Ex localhost/st/fg/txt.open How to open using vitual path can any one Reply to this Quation Advance Thanks Shrikant

    C 1 Reply Last reply
    0
    • H hsuresh

      Hi i am attaching one file that saves in server, i m storing tht path in DB Ex: ../../Attachment/ & strfile i when i downloading tht file using hyperlink first i am doing like this CType(infTabReqTrans.Tabs.FromKeyTab("GeneralDetails"). _ FindControl("hprAtt"), HyperLink).Text = _ IIf(dsFillReq.Tables(0).Rows(0).Item("Attament") Is DBNull.Value, "No File", _ "Download") CType(infTabReqTrans.Tabs.FromKeyTab("GeneralDetails"). _ FindControl("hprAtt"), HyperLink).NavigateUrl = _ IIf(dsFillReq.Tables(0).Rows(0).Item("Attament") Is DBNull.Value, "No File", _ dsFillReq.Tables(0).Rows(0).Item("Attament")) its telling that 404 error resource can't find if i attach with pull path it open like Ex localhost/st/fg/txt.open How to open using vitual path can any one Reply to this Quation Advance Thanks Shrikant

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      If this is ASP.NET, don't use IIf, it's nasty and hacky VB6 rubbish. You can't give a full file system path in a hyperlink, is this what you're doing ? You need to use the MapServerPath methods to get a URL that is valid for your server.

      Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

      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