Click here to Skip to main content
15,902,635 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Retaining the string entered in File Upload Control Pin
meeram39526-Jul-09 21:23
meeram39526-Jul-09 21:23 
GeneralRe: Retaining the string entered in File Upload Control Pin
Abhishek Sur26-Jul-09 21:54
professionalAbhishek Sur26-Jul-09 21:54 
QuestionSession Variables Mysteriously Go Null Pin
PDTUM25-Jul-09 16:27
PDTUM25-Jul-09 16:27 
AnswerRe: Session Variables Mysteriously Go Null Pin
Abhijit Jana25-Jul-09 20:45
professionalAbhijit Jana25-Jul-09 20:45 
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 
Hi,

I am using the following code to retrieve the file name of a pdf document stored in a database. Once I have the string, I have the PDF's stored in a folder under App_Data. I need it to load on the clients computer using their internal PDF reader (whatever that might be....usually Adobe Reader). I know that all I need to do is to point to the Pdf for it to open on the client side, but since it is different each time depending on the line that was selected from the grid, how do I pass the value? Or is there a better way to do this?

CS Code
//Define the row and cell
int theRow = Convert.ToInt32(e.CommandArgument);
int theCell = 6;

//Get the Row information
GridViewRow gvr = GridViewResults.Rows[theRow];

//Get the information from the cell
this.thePdf = gvr.Cells[theCell].Text;

//Call Clients PDF reader via a Hyperlink ?? OR ??

ASPX Code
<%--Gridview--%>
<asp:GridView ID="GridViewResults" runat="server" CssClass="gridViewSpecs"
HeaderStyle-Height="30px" Height="100px" Width="770px" BackColor="White"
RowStyle-Height="25px" EnableViewState="true"
onrowcommand="GridViewResults_RowCommand"
onselectedindexchanged="GridViewResults_SelectedIndexChanged" >
<RowStyle Height="25px" />
<HeaderStyle Height="30px"></HeaderStyle>
<HeaderStyle BackColor="#CCCCCC" />
<Columns >
<asp:CommandField HeaderImageUrl="~/Graphics/adobe2.PNG" ShowSelectButton="True" />
</Columns>
</asp:GridView>

Thank You, Pat
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 
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 

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.