Click here to Skip to main content
15,895,667 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionMessage Removed Pin
23-Dec-10 19:33
sheemap23-Dec-10 19:33 
AnswerRe: connection string Pin
Hiren solanki23-Dec-10 19:43
Hiren solanki23-Dec-10 19:43 
GeneralMessage Removed Pin
23-Dec-10 19:51
sheemap23-Dec-10 19:51 
GeneralRe: connection string Pin
TweakBird24-Dec-10 5:51
TweakBird24-Dec-10 5:51 
AnswerRe: connection string Pin
RaviRanjanKr24-Dec-10 1:30
professionalRaviRanjanKr24-Dec-10 1:30 
GeneralRe: connection string Pin
Hiren solanki24-Dec-10 3:25
Hiren solanki24-Dec-10 3:25 
GeneralRe: connection string Pin
RaviRanjanKr24-Dec-10 23:46
professionalRaviRanjanKr24-Dec-10 23:46 
QuestionServer.MapPath() Problem!!! Pin
Varun Sareen23-Dec-10 19:11
Varun Sareen23-Dec-10 19:11 
Dear Friends,

I want to open a file on the click of a link in the Grid named as VIEW. The path I am binding to is the local path i.e., ~/Documents/ScanDoc/[FileName] but when i am opening it on the local server; I am getting the error as follows:-

File does not exist.
System.Web.HttpException: File does not exist. at System.Web.StaticFileHandler.GetFileInfo(String virtualPathWithPathInfo, String physicalPath, HttpResponse response) at System.Web.StaticFileHandler.ProcessRequestInternal(HttpContext context) at System.Web.DefaultHttpHandler.BeginProcessRequest(HttpContext context, AsyncCallback callback, Object state) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)



But when I updated the PathColumn in database with this value:-"http://localhost:1383/~/Document/ScanDoc/[FileName]" which is actually being saved as "Documents/ScanDoc/[FileName]", the thing worked and i was able to see the file when i clicked on the link.

Now my problem is that how could i bind "http://localhost:1383/~" path to "Documents/ScanDoc/[FileName]" which is being saved in the database.

Thanks
Varun Sareen (Dot Net Developer)

AnswerRe: Server.MapPath() Problem!!! Pin
Hiren solanki23-Dec-10 19:40
Hiren solanki23-Dec-10 19:40 
GeneralRe: Server.MapPath() Problem!!! Pin
Varun Sareen23-Dec-10 22:13
Varun Sareen23-Dec-10 22:13 
GeneralRe: Server.MapPath() Problem!!! Pin
Hiren solanki23-Dec-10 23:07
Hiren solanki23-Dec-10 23:07 
QuestionExport data to Excel problem Pin
Asif Rehman23-Dec-10 0:45
Asif Rehman23-Dec-10 0:45 
AnswerRe: Export data to Excel problem Pin
Hiren solanki23-Dec-10 1:05
Hiren solanki23-Dec-10 1:05 
AnswerRe: Export data to Excel problem Pin
thatraja23-Dec-10 7:29
professionalthatraja23-Dec-10 7:29 
QuestionCustom Validation Pin
Jammer22-Dec-10 1:24
Jammer22-Dec-10 1:24 
AnswerRe: Custom Validation Pin
Hiren solanki22-Dec-10 1:40
Hiren solanki22-Dec-10 1:40 
GeneralRe: Custom Validation Pin
fjdiewornncalwe22-Dec-10 3:39
professionalfjdiewornncalwe22-Dec-10 3:39 
JokeRe: Custom Validation Pin
Hiren solanki22-Dec-10 3:41
Hiren solanki22-Dec-10 3:41 
GeneralRe: Custom Validation Pin
fjdiewornncalwe22-Dec-10 10:43
professionalfjdiewornncalwe22-Dec-10 10:43 
QuestionProblem with Security Information Message Pop Up Box Pin
AndyASPVB21-Dec-10 22:32
AndyASPVB21-Dec-10 22:32 
AnswerRe: Problem with Security Information Message Pop Up Box Pin
Brij22-Dec-10 0:34
mentorBrij22-Dec-10 0:34 
GeneralRe: Problem with Security Information Message Pop Up Box Pin
AndyASPVB23-Dec-10 0:01
AndyASPVB23-Dec-10 0:01 
Questionhow to put picture from dtatabase to pictureBox in asp.net ? Pin
Gali197821-Dec-10 9:38
Gali197821-Dec-10 9:38 
AnswerRe: how to put picture from dtatabase to pictureBox in asp.net ? Pin
Not Active21-Dec-10 9:56
mentorNot Active21-Dec-10 9:56 
AnswerRe: how to put picture from dtatabase to pictureBox in asp.net ? Pin
saman padidar22-Dec-10 0:51
saman padidar22-Dec-10 0:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.