handler

Event handler of Dropdownlist inside Gridview

I've added Dropdownlist in Gridview at RowDataBound event. The code is: if (e.Row.RowType == DataControlRowType.DataRow) { DropDownList ddlSeason = new DropDownList(); ddlSeason.DataSourceID = "odsRoomSeason"; ddlSeason.DataTextField = "SeasonTittle"; ddlSeason.DataValueField = "SeasonID"; ddlSeason.AutoPostBack = true; ddlSeason.Selec...

jquery event clean implementation

hi im not sure where to start on this as events and their handlers is my weakest point in programming. ... setInterval(function(){ //code goes here },1000); as we know this runs in an infinite/loop my question is if the code inside the function takes longer than one second (e.g: 5 seconds) to finish does the interval on the 2nd,3r...

SWFUpload: how do I implement an upload handler in ASP.NET?

i'm a novice-to-intermediate .NET developer and I don't quite understand how an upload handler for SWFUpload is supposed to work. Am I supposed to read it from the http stream? I haven't been able to find any examples or explanation of this in the documentation nor from extensive googling. Thanks in advance ...

How to avoid calling a ajax method more than once?

Hi! I have a .NET application that access methods located on handlers through AJAX calls. This AJAX calls are fired, generally, when the user clicks on certain buttons. My problem happens when the user clicks the buttons more than once. It messes up with all my object´s state. How do u take care of it? I know I can block the user click...

Review my Paypal IPN Handler Please

Hey guys! I wrote an automated donations system for someone, so that people who play on his game servers can enter their information, donate, and automatically be added to a database. Its working great, but im not very php saavy, so I am hoping you guys can take a look and tell me what else I should add. I need to remove them when the s...

Detecting Paypal Subscription Cancellation

Hi, I have written a simple paypal subscription system, where a user can enter their information, click the button, and start a subscription. Im wondering how I can find out when the user cancels the subscription though? I have seen $txn_type subscr_cancel but I have no idea how to use that, since paypal doesn't call my handler again. ...

Adobe Flex HTTPService AsyncResponder onResult handler fires twice?

My HTTPService resultHandler is firing twice. Is that normal? The messageId and token# are the same. StatusCode=200 both times. I've examined the traffic in Fiddler and only one request is being submitted. Here's a code snippet; I've put a breakpoint on the service send() method and it is happening only once. var token: AsyncToke...

JQuery load event on images

I want to resize an image parent to the same size of the image, when the images are loaded. At this time i'm using this code: $(window).load(function(){ $('.image-principale').each(function(){ $(this).parent().css('height', $(this).height()); }); }); It work, except than it runs only when every image has loaded. I tri...

FileSystemWatcher remove event handler

For some reason I can not remove an event handler from the FileSystemWatcher. This is what I have void Start() { ivFileSystemWatcher = new FileSystemWatcher(); ivFileSystemWatcher.Changed += new FileSystemEventHandler(ivFileSystemWatcher_Changed); } void Stop() { ivFileSystemWatcher.Changed -= new File...

I don't know when to use a Service or AsyncTask or Handler

Can someone tell me the TRUE difference? ...

C++ Exception Handler problem ...

Hi, I written an exception handler routine that helps us catch problems with our software. I use SetUnhandledExceptionFilter(); to catch any uncaught exceptions, and it works very well. However my handler pop's up a dialog asking the user to detail what they were doing at the time of the crash. This is where the problem comes, becau...

Using a Regex in the URI of a Mongrel Handler

Hi all, I'm currently using Mongrel to develop a custom web application project. I would like Mongrel to use a defined Http Handler based on a regular expression. For example, everytime someone calls a url like http://test/bla1.js or http://test/bla2.js the same Http handler is called to manage the request. My code so far looks a like...

How to get Solr Extraction Handler to extract multiple META tags with the same name?

I am uploading some HTML documents to the SOLR extraction handler (Solr-Cell), which have META elements in the head in this form: <meta name="product" content="firstproduct" /> <meta name="product" content="anotherproduct" /> My schema has product defined as a multi-valued field: <field name="product" type="string" indexed="true" sto...

MouseWheel, determining up and down scrolling events

Is there any way to determine if the mouse scrolls up or down using the Mousewheel handler on a sub? eg Private Sub PictureBox1_MouseWheel(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Me.MouseWheel if mousewheel.scrollup then UserZoom = UserZoom + 0.05 Me.Refresh() end if End Sub I w...

Android: Progress bar that shows a countdown?

I a currently using a new thread to create a UI thread and then displaying a progress bar. Can someone tell me how to do the same for a thirty second progress dialog (should do some work and disappear after this duration) that can be done using a handler instead? ...

OSX : Defining a new URL handler that points straight at a Python script

Hi, I'm trying to define a new URL handler under OSX that will point at a python script. I've wrapped the Python script up into an applet (right-clicked on the .py, and gone Open With -> Build Applet) I've added the following into the applet's Info.plist: <key>CFBundleURLTypes</key> <array> <dict> <key>CFBundleURLName</ke...

ASP.NET How to process only 1 HTTP handler at a time from a specified user?

Hi. I have the next problem: I need to process only 1 request at a time from each user. Lets assume that server identifies each user be UserID, sent in query string. How can make the server work the way like FIFO (do not start processing next request until the previous is fully processed)? Should I use the named mutexes inside HTTP handl...

Java: how can I react to computer shutdown in windows xp?

Hi! Is it possible make some handler that will do something when user shutdown computer with Java on Windows XP (optional, win7)? How? Thanks. ...

Asp.NET Handler and Generic Handler

In Visual Studio 2010, when you say new Item, you can see Asp.NET Handler and Generic Handler. Can you tell me what's the difference, I think it came with .NET 4.0 because I couldn't find related thins on Google. Thanks. ...

Can an AIR app be programmed to handle a URL protocol?

I'm writing what is essentially a browser in Adobe AIR (ActionScript, not AJAX). A great bit of functionality to implement would be protocol handling. iTunes, for instance, handles itms protocols; when your friend sends you a link beginning with "itms://", it's going to launch iTunes as long as it's installed. Is there a way to write an ...