Browse by Tags

Related Posts

  • Open file in a new tab (via WriteFile)

    Hello everyone. Here is my problem: I'm opening a .pdf file in the browser via Response.WriteFile. It works perfectly fine! But now I'd like to open that file in a new tab (a new window would work too, but I'd rather have it in a new tab). How can this be achieved? Here is my code snippet...
    Posted to Getting Started (Forum) by Hanfwurst on 04-29-2009, 12:00 AM
    Filed under: open, pdf, response, file, writefile
  • PNG Image to stream to HTTP Response problem

    Hi, I have an asp.net 3.5 page which depending on a string passed to it, retrieves an image from a URL. I then need to pass this image back via a HTTP Response. the code I have is: Dim wr As WebRequest = WebRequest.Create(URL) Dim wre As WebResponse = wr.GetResponse Dim ms As Stream = wre.GetResponseStream...
    Posted to Web Forms (Forum) by fraserhardy on 03-25-2009, 12:00 AM
    Filed under: .net framework 3.5, Response, Response.Write OutputCache
  • HttpContext.Current.ApplicationInstance.CompleteRequest() vs Response.End()

    Hi, I am confused as to the best way of ending requests. Two functions in my web application send content to the browser - PDF generation from database content and sending files on the server to the browser. I have read about the various options but am still not sure about which is best to use. The Response...
    Posted to Web Forms (Forum) by tomliversidge on 02-13-2009, 12:00 AM
    Filed under: threadexception, Response
  • Response.End causing user to sign out of website?

    Hi, I have an asp.net 2.0 website hosted at DiscountASp and I have this webpage that does the typical Response.WriteFile and Response.End to present the user with the download file dialog box. but sometimes it seems to be causing the user to be signed out of the application...with the whole "ReturnUrl"...
    Posted to Security (Forum) by silverCORE on 01-19-2009, 12:00 AM
    Filed under: response, asp .net 2.0
  • Excel as Response: getting page Exipred/page can't be displayed error

    Hi all, i am tring to send and excel as a response on a button click. the below is the code in the button click. Response.Clear(); Response.BufferOutput = true ; Response.ContentType = "application/vnd.ms-excel" ; Response.Charset = "" ; this .EnableViewState = false ; System.IO....
    Posted to Web Forms (Forum) by sudheeshwarrier on 10-25-2008, 12:00 AM
    Filed under: asp.NET.net 2.0 C#, excel, Response
  • Problem while applying two response filters

    I am using two response filters to change the response before sending to client. I am modifying response in the first filter and applying the GZip in the second filter. First i applied the Response.Filter = new CustomFilter (Response); after applying first filter i have applied the second filter, assuming...
    Posted to HttpHandlers and HttpModules (Forum) by ramnadh on 10-04-2008, 12:00 AM
    Filed under: Response, filter
  • response.redirect inside a Try Catch...

    I’ve come across a situation where I have a response.redirect inside a TRY Catch The redirect seams to trigger an exception. I found a work around but I’m scared it might cause other problems. Response.redirect(“blah blah”, False) ß the false seams to help … although I’m not 100% sure why … You guys...
    Posted to Getting Started (Forum) by xcopyASP on 09-15-2008, 12:00 AM
    Filed under: redirect, response, try catch, exception
  • post an XML file or Data to https:// URL suing httpwebrequest and httpwebresponse

    hello friends, i need your help for solve below problem please help me, thanks in advance i am trying to send an XML file to another http://localhost:1078/XML/Test.aspx using httpwebrequest and httpwebresponse but when i click on send button to send file to Test.aspx page than nothing done. in my code...
    Posted to Web Forms (Forum) by vipsha16 on 09-11-2008, 12:00 AM
    Filed under: request, asp.net 2.0, ASP.NET 2.0 HTTP Compression, ASP.NET 2.0 Request size, Asp.net 2.0 response filters, asp.net 2.0.net, Http Handler Worker Request cookies ProcessRequest, http Handlers httpmodule ispostback, HTTP Headers, http post, HttpModule redirect request 404 log, httpmodule source asp.net, HttpWebRequest over https, WebRequest, XML, HttpResponse, Response, ASP.net 2.0 pipeline, HTTPModules, HttpWebRequest
  • Re: hyperlink to a pdf file (save option)

    One way I have tackled this in the past is to use a LinkButton instead of a HyperLink and write the event handler code to look similar to the following: (I would normally not hard code the filenames etc in the path, but rather - determine them based on which link was clicked etc) protected void LinkButton_Click...
    Posted to Web Forms (Forum) by TonyMilne on 08-11-2008, 12:00 AM
    Filed under: Mime Type, Response
  • File upload and monitoring progress

    Hi everyone, i'm hoping this is the correct forum to post this topic in. I am a relatively new .NET developer and been trying to do develop a facility for a client which allows them to upload a file and monitor its progress as it's uploaded. I've been looking into the Webclient class with...
    Posted to ASP.NET AJAX UI (Forum) by mcai6in2 on 05-30-2008, 12:00 AM
    Filed under: VB.NET, WebRequest, upload file, response
Page 1 of 3 (29 items) 1 2 3 Next >