How to unregister an event handler in Internet Explorer 6?
I am registering a function with the onload method of a html form, I need to unregister this event hander function on unload of the form. How do I do it in Internet Explorer 6? ...
I am registering a function with the onload method of a html form, I need to unregister this event hander function on unload of the form. How do I do it in Internet Explorer 6? ...
I am writing an application where by someone can edit paragraphs on a web page. jQuery is used to send and receive the edited paragraph data to a handler, which saves it or reads it from a database. The problem is that if the forms authentication has timed out, I get the login page back from my handler. Is there any way I can detect a...
When I add an HTTP handler: <add verb="*" path="*test.aspx" type="Handler"/> With the class: using System; using System.Web; public class Handler : IHttpHandler { public void ProcessRequest(HttpContext context) { context.Response.ContentType = "text/plain"; context.Response.Write("Hello World"); } public ...
I've downloaded an HttpHandler class that concatenates JS files into one file and it keeps appending the  characters at the start of each file it concatenates. Any ideas on what is causing this? Could it be that onces the files processed they are written to the cache and that's how the cache is storing/rendering it? Any inputs would...
I am so frustrated. I have godaddy and I built a Sitemap class to use for my site drinkingfor.com. But the httphandler doesn't seem to be picked up under GoDaddy servers. Need some help. The code works on my Dev machine, but once I move it over to Godaddy it shows up as NOT Found. I swear this is like my last straw with Godaddy. Th...
Hi, I use an HttpHandler to dynamically serve images in a ASP.Net web application. I am having a performance issue (Firfox/Firebug/YSlow reports there are too many HttpRequests) I have between 50-100 images per page in some instances.. 3 treeviews (business units/categories/objects) with each node having its own image ;) Each item's i...
What is the fastest way to execute a method on an ASP.NET website? The scenario is pretty simple: I have a method which should be executed when a web page is hit. Nothing else is happening on the page, the only rendered output is a "done" message. I want the processing to be as fast as possible. Every single hit is unique, so caching i...
Hi, After reading Jeff's article about the importance of sitemaps, so I decided to generate one for my dynamic website. I saw some articles about how to implement it with ASP.NET but every solution I saw showed how to generate it on the fly with an HTTP Handler. But that solution means that every time someone asks for the file, my cod...
When writing a http handler/module, there is an interface member to implement called - bool Reusable. What is the significance of this member? If I set it to false (or true), what does this mean for the rest of the web app? Thanks ...
I am setting up a 3rd party website which makes heavy use of httpHandlers. When configured as a virtual directory under Default Site on a 2003/IIS6 machine, everything works as expected. When configured as a standalone site on the same machine, pointing to the same directory and web.config however, httpHandlers do not work (404). I have...
I've got an HTTP handler set up in the web.config file: <add verb="*" path="*_*.aspx" type="SeoHandler"/> And have a file SeoHandler.ashx in the root of my web site that points to a SeoHandler.ashx.cs in the App_Code folder (the web site isn't a Web Application project). When I run the site locally and type in a URL like "dor...
The Scenario I am building a custom CMS for a communications application. The users can upload images to the server and then later reference them in posts they write using markdown. Images are stored in a database and referenced with a url of the form images/{id}. A custom image handler retrieves these and sets a far future expires h...
In our asp.net 2.0 app we are using httpmodule and httphandler to calculate some metrics via cookies. To calculate network transfer time, httpmodule:EndRequest stores Transferstart in the cookie and httphandler:Processrequest uses datetime.now to subtract the transferstart to determine overall network time. Is this correct? I am also unc...
In our asp.net 2.0 application we have the an HttpModule and HttpHandler. They are registered in web.config to handle requests for certain file types. The request is initiated asynchronously from client side using MS AJAX. I noticed something strange: HttpHandler:ProcessRequest is not entered on every HttpModule:EndRequest which seems l...
We have a performance measurement module that relies on HttpModule and HttpHandlers and works like this: Request comes in to server for a page. HttpModule_Begin writes start time in the cookie. HttpModule_End writes end time in the cookie. On client, when page load is finished, fire off a special request via AJAX that is handled by Htt...
I've got a grid which provides some links for users to download files. Files are stored outside of the application, the path references are read from the database and a HTTP handler (*.ashx) is used to serve each requested file. It is, however, possible that there could be a database entry pointing to a non existent file. I catch the Fil...
This is a multi-part question. I have a process that can take several minutes to complete, it is ran by a calling a HTTPHandler using a asynchronous javascript request. Question 1: How can I ensure that this request does not time out on both the server and the client? Question 2: Is it possible to emit data from the HTTPHandler while ...
I need a image generator in my ASP.NET MVC application, but I don't know if it is possible to use ASHX in ASP.NET MVC. If there is an class similar to IHttpHandler that inherits IViewDataContainer, then I could use ViewData.Model on my ASHX. I read a blog post about it but it seem outdated from the info I got in the ASP.NET forum Any ...
I'm doing something stupid, I suppose. I swear I've done this before without issues but right now I can't get it to work. I have an HTTP handler written in ASP.NET that I want to invoke via AJAX (using jQuery). In my web.config, I register the handler like this... <httpHandlers> <add verb="GET" path="~/getPage.axd" type="Handle...
Is there a way for a Http Handler to pass a request back up the pipeline to IIS 6 and let it handle the request? For example, if I have a Http Handler set for verb="(wildcard)" path="(wildcard).txt" I have a file called myunformated.txt, I would like IIS 6 to send it to the user if it doesn't have querystring params attached. Any Idea...