I've recently wrote a rather large custom configuration group. I'm curious if it is possible to move this configuration to a separate file via the following:
<configuration>
<configSections>
<sectionGroup name="MyCustomGroup">
<section name="MyCustomSection"/>
</sectionGroup>
</configSections>
<MyCustomGroup ...
Hello,
I'm facing the following situation (C#/.Net here, but I think it's a general problem):
Some of our object types (which are collections) are disposable types (IDisposable in C#, which allows clients to explicitly tell an object 'you are not needed anymore, free all of your resources')
These collections fire events ('oh my, look,...
Hi,
I have a strange problem.
I created an ASP.NET Handler (AccidentMap.ashx) that gets a bitmap and returns it.
Here is the handler:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.Drawing;
namespace BackOffice.Modules.Insurance_Company
{
/// <summary>...
Hi
Does anyone know what URL scheme Skype supports for making calls from other apps (that should launch Skype and place the call). Thanks
...
Given the following string: 's0\\8\\26\\29\\30\\32' or 's0\\8\\26\\' or 's0\\5', I need to return the last digits of the string.
Given:
function getFolderID(mystr) {
var reFolderID = /\bs0\\\\[0-9]+\b/g //regexp to return s0\\34
var retArr = [];
var retval = '';
retArr = mystr.match(reFolderID);
...
I have a handler that do some hard work under images.
It's look like http://example.com/webservice.ashx?imageparam1=100&imageparam2=200
Each request to this handler take about 2-3 seconds.
I need a way to abort image generation if client close connection(i.e. close page or send request for another image).
Is there is a way to do ...
Hi !
In C#, I can do (*):
Button b = new Button();
b.Click += ButtonOnClick;
:
void ButtonOnClick(object sender, RoutedEventArgs e)
{
// do something
}
But in C++/CLI I can't do:
Button ^ b = gcnew Button();
b->Click += ButtonOnClick;
:
void ButtonOnClick(Object ^ sender, RoutedEventAr...
Hi guys,
consider a signal handler that call exit() as last instruction:
is safe to call non-reentrant functions (e.g. free()) in that handler?
IMHO it would be legal due to the fact that the handler does not return
to the normal sequence of execution.
Thank you in advance.
...
if I have
$("a#foo").click();
$("a#bar").click();
dostuff();
and both have click handlers attached which do different things..is it guaranteed that bar's click handler will only execute after foo's completes? or are they dispatched asyncronously
similarly..will dostuff() only execute after foo and bar's click handlers complete?
...
I'm converting my code from using Handler to AsyncTask. The latter is great at what is does - async updates and handling of results in the main UI thread. What's unclear to me is how to handle exceptions if something goes haywire in AsyncTask#doInBackground? The way I do it is to leave error Handler and send message to it. It works fine ...
I've created an Extension of GenericHandler called SOAPHeaderHandler. I placed log4j statements in the handler and can see the constructor being built. When I generate a SOAP message, however, I don't see the message related to the handleRequest method. I've registered the Handler in the stub as follows:
if (service == null)...
I'd like to use routing from my app, so that TomTom or Navigon get opened with right "from" and "to" addresses. Does anybody know if TomTom or Navigon apps register a URL Handler on the iPhone?
...
Does the treatment of SA_ONESHOT in sys_signal() and get_signal_to_deliver() lead to a conflict ?
...
Greetings, all. Here is my situation. I am attempting to make an HttpWebRequest to a local handler file and I keep getting the following exception:
Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.
Now, I'm using a local handler file because I am writing some integration...
We use jQuery's global ajaxError() handler to alert the user of any AJAX failures:
$(document).ajaxError(function() {
$("There was a network or server error. Please try again later.").dialog({
title: "Error",
modal: true,
resizable: false,
buttons: { 'Ok': function() { (this).dialog("close")...
I want something like BaseHTTPRequestHandler, except that I don't want it to bind to any sockets; I want to handle the raw HTTP data to and from it myself. Is there a good way that I can do this in Python?
To Clarify, I want a class that receives raw TCP data from Python (NOT a socket), processes it and returns TCP data as a response (...
Background:
I'm writing a script (in VBA, if that matters) to input data into a web-based system. Some of the system's validation is only run when a field is focused, so I've been calling .Focus on the fields in VBA to force it to run. But that steals the systemwide focus; rather annoying if I am doing anything else while the job is run...
I have a module with custom ReleaseRequestState eventHandler. In this eventHandler i use HttpContext.Current.CurrentHandler, and just now revealed that in some situations (particularly - for *.css files) it can be NULL. How this can be, and how it can be correctly workarounded?
...
My Problem is that I need to send messages with a delay of 1 second. The handler then initiates some action, you're getting the picture.
There are nevertheless some conditions in which the already sent message should be deleted ( before the second elapsed ) to prevent the handler from doing anything. I couldn't figure out how to do thi...
I got this example code from a website, can I get the parameter input value and response return value from handleMessage also? in this example i can only get the method name. (Method being called)
public boolean handleMessage(SOAPMessageContext context) {
// get the SOAPMessageContext
SOAPMessageContext sctx = (SOAPMessageConte...