handler

What is a handler

Hi I am trying to learn some programing related terms, and I often comes over the word handler. Can anyone pleas explain what handler means and when to use the term. Thanks in advance t ...

Can callback methods in PHP's session_set_save_handler be private?

I am writing a custom session handler in PHP and trying to make the methods defined in session_set_save_handler private. session_set_save_handler( array('Session','open'), array('Session','close'), array('Session','read'), array('Session','write'), array('Session','destroy'), array('Session','gc') ); For exampl...

Changing the name in the header for a resource handler in C#

I have a resource handler that is Response.WriteFile(fileName) based on a parameter passed through the querystring. I am handling the mimetype correctly, but the issue is in some browsers, the filename comes up as Res.ashx (The name of the handler) instead of MyPdf.pdf (the file I am outputting). Can someone inform me how to change the n...

How do I unregister all handlers for a form event?

I have 2 handlers using the same form. How do I remove the handlers before adding the new one (C#)? ...

WebService - Soap message Handler problem, websphere

**I have two webservice, say A and B. I have created a handler for WS-A, as I want to modify the SOAP msg before it reaches to WS-B. For this, I have created a handler using javax.xml.rpc.handler.GenericHandler and implemented the method public boolean handleRequest(MessageContext arg0){} and configured this handler with proxy applicatio...

How to get environment specific detail in a program running in websphere

Can any body tell me How to get environment specific details (like the host name where the server is running, application context or webcontext) from a program executing in Websphere. I mean I have a simple java program (client proxy code for calling remote WebService) running with a WebService deployed locally on Websphere. Now when I ...

Trouble adding onclick handler to hyperlink tag inside listitem

Trying to add an onclick handler to my tabs, and can't seem to get the DOM selection right. Can you guys help? <div id="tabstrip"> <ul> <li id="a" class="selected"><a href="#">A</a></li> <li id="b"><a href="#">B</a></li> <li id="b"><a href="#">C</a></li> </ul> </div> function initTabStrip() { var lis = d...

WCF service settings problem. I added .svc handler in IIS but it keeps disappearing

Hi, my web service was working, then suddenly it stopped. After debugging I realized that there might be a problem in the config, and for some reason the .svc mapping was gone in IIS (Handler Mappings). I added the .svc mapping, and it is now updating my web.config and adding a node to the web.config (my previous web.config's didn't h...

Help in FileNotFoundException -Python

This is my code: try: import clr, sys from xml.dom.minidom import parse import datetime sys.path.append("C:\\teest") clr.AddReference("TCdll") from ClassLibrary1 import Class1 cl = Class1() except ( ImportError ) : print "Module may not be existing " My TCdll is in C:\test.I just gave it as C:\teest to ...

using event handler

is there a way to use mouse as an event handler in c/c++ im a student and got a mini project to do, im making a game on snakes and ladder (the famous board game) and trying to make it with basic borland c++ compiler working with a header file called graphics.h, which is very basic and gives output of 640 X 480 res, so I was wondering if ...

What Happened to Handlers (ASHX) in ASP.NET 3.5

Why does the default "generic handler" code in an ASP.NET 3.5 web application add attributes to the class but not the correct namespace references. This is the template they give you out-of-the-box: using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace Handler1 { /// <summary> /// Summar...

Is Sharepoint service pack 1 required for a custom protocol handler?

Is Sharepoint service pack 1 required for a custom protocol handler? ...

Is there any way to determine if a connection has been broken when using YAHOO.util.Connect.asyncRequest?

I connect to a .NET handler to upload an image using YAHOO.util.Connect.asyncRequest. The handler then throws an exception because the file is too big. When the exception is thrown, the request connection is immediately cut meaning that the javascript callback for asyncRequest is not called and the user is not notified that the image u...

C# app.config format issue

Hello everyone, If the app.config format is wrong, for example, not a correct format XML file, application will fail from loading. Are there any ways to let me know such issue -- for example, receiving some events (so that I could write file log and event log to record this issue) if app.config loads error because of a mal-formatted XML...

No http handler was found for request type 'POST'

This error comes up when I submit a page to load up a .net chart control. I have the http handler in my web.config below. FOr whateve reason it doesnt seem to work. <httpHandlers> <remove verb="*" path="*.asmx"/> <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions...

What are the benefits of an ASHX handler file in asp.net?

Hi, What are the benefits of using an ashx, or handler? Also, do I need them if I use MVC (and why not)? Does the framework matter (2.0+)? Why would I want to use a handler? I was recently recommended to use one for retrieving an image but I don't know why. Thank you for your time. Edit - is a handler faster? ...

How do I add additional parameters to an ExtJS handler?

I am using the ExtJS framework and I have the following handler that is used solely as a handler for a button: var myButtonHandler = function(button, event){ //code goes here }; My button definition looks like this: var myButton = new Ext.Button({ id : 'myButton', renderTo : 'mybutton', text : 'Save', h...

On Change event for dynamically created Drop dow list VB.NET

Hi, I have a website where the user requires to add and remove Headlines from the main page. The headlines are stored in a database with a column titled 'Display' (true or false) which decides if the headlines appear. I want the user to have the ability to add or remove headlines from the main page, so have created another page which cre...

I can't understand how to use SendMessage or PostMessage calls :(

Hi guys, I need to simulate a keypress in a third party application. Let's say I have a C# application that needs to send an "8" to the Calculator application. I can't use the SendKeys of .Net or the keybd_event of win32 api because they both require the window to be the top active one, which is not case in my situation. So that leaves...

Registering custom url protocl handler that Outlook recognizes?

Good morning, I've successfully created a little app that registers itself under a custom uri protocol ('irma:') following the msdn entry at http://msdn.microsoft.com/en-us/library/aa767914(VS.85).aspx This works perfectly fine when opening such a link manually via the shell/cmd etc, but when sending out links like that, outlook does n...