Click here to Skip to main content
15,913,758 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Session Variables Mysteriously Go Null Pin
PDTUM26-Jul-09 4:20
PDTUM26-Jul-09 4:20 
AnswerRe: Session Variables Mysteriously Go Null Pin
Abhishek Sur25-Jul-09 21:31
professionalAbhishek Sur25-Jul-09 21:31 
AnswerRe: Session Variables Mysteriously Go Null Pin
Manas Bhardwaj25-Jul-09 22:58
professionalManas Bhardwaj25-Jul-09 22:58 
QuestionOpen PDF from Gridview Link Pin
PDTUM25-Jul-09 10:16
PDTUM25-Jul-09 10:16 
AnswerRe: Open PDF from Gridview Link Pin
Abhijit Jana25-Jul-09 10:29
professionalAbhijit Jana25-Jul-09 10:29 
GeneralRe: Open PDF from Gridview Link Pin
PDTUM25-Jul-09 12:03
PDTUM25-Jul-09 12:03 
GeneralRe: Open PDF from Gridview Link Pin
Abhijit Jana25-Jul-09 12:25
professionalAbhijit Jana25-Jul-09 12:25 
GeneralRe: Open PDF from Gridview Link Pin
PDTUM25-Jul-09 12:43
PDTUM25-Jul-09 12:43 
Hello Abhijit,

The path is not part of the returned string. The permanenet path to all the pdf's will always be

(App_Data/Pdfs/pdf001.pdf) WHERE pdf001.pdf is the name of the selected pdf. The returned string value will always look like (pdf001.pdf).

So....I need to know how to pass this to a link in code. In C#, I do it like this:

System.Diagnostics.Process.Start(Application.StartupPath + @"\PDFs\" + pdf);

Obviously, this will not work in ASP.net. All that should be necessary is to be able to create a link when the grid link is clicked on that uses the value of the pdf string variable as returned from the GridView so that when the line is selected from the GridView, it automatically creates the link and deploys it so that the client's PDF reader will launch and load the pdf. However, I do not know how to accomplish this.

If there another or better way, do let me know and supply me an example using the code sample that I submitted as a starting point....Thank You

Best Regards, Pat
GeneralRe: Open PDF from Gridview Link Pin
Abhijit Jana25-Jul-09 20:50
professionalAbhijit Jana25-Jul-09 20:50 
GeneralRe: Open PDF from Gridview Link Pin
PDTUM26-Jul-09 4:13
PDTUM26-Jul-09 4:13 
GeneralRe: Open PDF from Gridview Link Pin
Abhijit Jana26-Jul-09 7:22
professionalAbhijit Jana26-Jul-09 7:22 
AnswerRe: Open PDF from Gridview Link Pin
PDTUM26-Jul-09 12:47
PDTUM26-Jul-09 12:47 
GeneralRe: Open PDF from Gridview Link Pin
Abhijit Jana26-Jul-09 13:20
professionalAbhijit Jana26-Jul-09 13:20 
Questioni facing problom to run asp.net3.5 block book sample projects. the error message is Pin
Ramesh Reddy1111125-Jul-09 8:01
Ramesh Reddy1111125-Jul-09 8:01 
AnswerRe: i facing problom to run asp.net3.5 block book sample projects. the error message is Pin
Abhijit Jana25-Jul-09 8:45
professionalAbhijit Jana25-Jul-09 8:45 
AnswerRe: i facing problom to run asp.net3.5 block book sample projects. the error message is Pin
Manas Bhardwaj25-Jul-09 11:04
professionalManas Bhardwaj25-Jul-09 11:04 
GeneralRe: i facing problom to run asp.net3.5 block book sample projects. the error message is Pin
Ramesh Reddy1111125-Jul-09 15:59
Ramesh Reddy1111125-Jul-09 15:59 
GeneralRe: i facing problom to run asp.net3.5 block book sample projects. the error message is Pin
Abhijit Jana25-Jul-09 21:21
professionalAbhijit Jana25-Jul-09 21:21 
GeneralRe: i facing problom to run asp.net3.5 block book sample projects. the error message is Pin
Ramesh Reddy1111125-Jul-09 21:43
Ramesh Reddy1111125-Jul-09 21:43 
GeneralRe: i facing problom to run asp.net3.5 block book sample projects. the error message is Pin
Manas Bhardwaj25-Jul-09 22:11
professionalManas Bhardwaj25-Jul-09 22:11 
GeneralRe: i facing problom to run asp.net3.5 block book sample projects. the error message is Pin
Abhijit Jana25-Jul-09 22:24
professionalAbhijit Jana25-Jul-09 22:24 
QuestionCommandName Pin
arkiboys25-Jul-09 5:36
arkiboys25-Jul-09 5:36 
AnswerRe: CommandName Pin
Abhijit Jana25-Jul-09 5:49
professionalAbhijit Jana25-Jul-09 5:49 
GeneralRe: CommandName Pin
arkiboys25-Jul-09 5:52
arkiboys25-Jul-09 5:52 
GeneralRe: CommandName Pin
Mike Ellison25-Jul-09 8:34
Mike Ellison25-Jul-09 8:34 

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.