User Profile

Collapse

Profile Sidebar

Collapse
ftech
ftech
Last Activity: Jun 18 '07, 10:05 PM
Joined: Nov 14 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • ftech
    started a topic Access client folder
    in .NET

    Access client folder

    Hi,
    I have to upload files from a client folder to the server. The user may select any folder and the folder may contain any number of files. I provide the users with a text box to enter the file name. I m itereation thru the files in the folder and saving them in a folder on the server. The problem is that this works on the localhost. However, when I upload the prog on the server, the program does not trace the folder typed in the text...
    See more | Go to post

  • PDF displays blank aspx page with content-disposition:inline

    I am saving PDF files in SQL Server 2005 as an image and retrieve them back by their document ids. I use the following code:

    byte

    [] buffer = (byte[])dtDoc.Rows[0]["document_conte nt"];

    if(buffer != null)
    {

    Response.Conten tType =

    "applicatio n/pdf";
    Response.AddHea der(

    "Content-Type", "applicatio n/pdf");...
    See more | Go to post

  • ftech
    replied to C#-WEB:Open a PDF saved in the database
    in .NET
    I figured out that the above code works fine if I change the content-disposition to 'attachment' . But I don't know why it does not work when I change it to 'inline'
    See more | Go to post

    Leave a comment:


  • ftech
    replied to C#-WEB:Open a PDF saved in the database
    in .NET
    yeah it looks fine ... all I am doing is grabbing the file content from the database (SQL Server). I then cast it as a byte array and use the above code to display it. Path is certainly not the issue here.
    See more | Go to post

    Leave a comment:


  • ftech
    replied to C#-WEB:Open a PDF saved in the database
    in .NET
    yeah ... it just works on one of by colleague's machine ... I tried it on a few other folks machine but it does not work on theirs.
    See more | Go to post

    Leave a comment:


  • ftech
    replied to C#-WEB:Open a PDF saved in the database
    in .NET
    What I am doing is that I am displaying the name of the pdf files in a gridview. When the user clicks on a particular name, I grab the document's id and get the document (which was originally a pdf doc) from the database and display it to the user. But when I do this using the above code, I get a blank IE screen. I tried to debug this and it does not result in any errors. so i don't know whats wrong?
    See more | Go to post

    Leave a comment:


  • ftech
    replied to C#-WEB:Open a PDF saved in the database
    in .NET
    the blank screen is IE
    See more | Go to post

    Leave a comment:


  • ftech
    replied to C#-WEB:Open a PDF saved in the database
    in .NET
    No ... all I get is a blank screen
    See more | Go to post

    Leave a comment:


  • ftech
    started a topic C#-WEB:Open a PDF saved in the database
    in .NET

    C#-WEB:Open a PDF saved in the database

    In my progr, users can upload PDF files which are saved in SQL Server. But when I try to retrieve the file, it just won't open. I am using the following code:

    _ObjUC = new UserControls();
    DataTable dt = new DataTable();

    _ObjUC.Document ID = Request.QuerySt ring["id"].ToString().Tri m();
    dt = _ObjUC.getPDFdo cument(_ObjUC.D ocumentID);
    ...
    See more | Go to post

  • ftech
    started a topic .htm file inside Iframe

    .htm file inside Iframe

    I have a blank .htm file inside my Iframe. I can write into this file. But the problem is that every time I hit the enter key, it creates a paragraph instead on line break. Could someone pls help? I am new to Iframes .... My Iframe is as follows:
    <IFRAME id="NewsBody_ri ch" src="MsgBody.ht m" width="100%" height="100%" style="font-family:Verdana" ></IFRAME>

    MsgBody.htm...
    See more | Go to post
No activity results to display
Show More
Working...