Go Back   AnandTech Forums > Software > Programming

Forums
· Hardware and Technology
· CPUs and Overclocking
· Motherboards
· Video Cards and Graphics
· Memory and Storage
· Power Supplies
· Cases & Cooling
· SFF, Notebooks, Pre-Built/Barebones PCs
· Networking
· Peripherals
· General Hardware
· Highly Technical
· Computer Help
· Home Theater PCs
· Consumer Electronics
· Digital and Video Cameras
· Mobile Devices & Gadgets
· Audio/Video & Home Theater
· Software
· Software for Windows
· All Things Apple
· *nix Software
· Operating Systems
· Programming
· PC Gaming
· Console Gaming
· Distributed Computing
· Security
· Social
· Off Topic
· Politics and News
· Discussion Club
· Love and Relationships
· The Garage
· Health and Fitness
· Merchandise and Shopping
· For Sale/Trade
· Hot Deals
· Free Stuff
· Contests and Sweepstakes
· Black Friday 2013
· Forum Issues
· Technical Forum Issues
· Personal Forum Issues
· Suggestion Box
· Moderator Resources
· Moderator Discussions
   

Reply
 
Thread Tools
Old 11-03-2012, 07:22 PM   #1
EagleKeeper
Discussion Club Moderator
Elite Member
 
EagleKeeper's Avatar
 
Join Date: Oct 2000
Location: Bumps west of Denver
Posts: 42,600
Question ASP fileupload - event detection

Time find out what I am missing

Intent is to open the equivalent of FileOpen dialog
User selects the file name
Selects the Open button on the file dialog
Dialog closes

Here is the issue

At present, there is a pre-rendering event that happens when an additional control is selected. At this point, I know the dialog is closed because the pre-render has taken place.

However, I want to know when the dialog is closed. I need to run some code and enable/setup additional controls on the web page at that point that were not exposed until the File selection has been made.

Issue is mainly cosmetic formatting, but there should be some answer to this.

TIA
__________________
F15 Air Superiority Fighter - Never has one been lost in aerial combat (104 kills)
EagleKeeper is offline   Reply With Quote
Old 11-03-2012, 08:11 PM   #2
Train
Lifer
 
Join Date: Jun 2000
Posts: 12,705
Default

You want a server side or client side event?

Are you still using Web Forms? I havent used them in a few years. It seems the .Net community has moved away from the concept of "events" on the server side, it was kind of a klunky mental model. Are you working on a legacy app? If not I would recommend using any of the dozen or so MVC styled frameworks. Makes it so mch easier to keep cleaner, seperated code.
__________________
.
Train is offline   Reply With Quote
Old 11-10-2012, 06:36 PM   #3
Markbnj
Moderator
Programming
 
Markbnj's Avatar
 
Join Date: Sep 2005
Posts: 10,516
Default

The whole idea of knowing when the dialog is closed is meaningless on the server-side. Webforms or MVC, you are getting a POST or GET from the browser, and sometime before that the user did or didn't open the dialog and specify a value for the file type input element in the form . On the client-side the file open dialog is handled by the browser when the user clicks the "browse" button next to a file type input element. If you want to know when the user closes the resulting dialog there is probably a way to catch that in javascript.
__________________
Everytime I try to tell you, the words just come out wrong

**
Some meaningless scribbling of no account

The 4th Realm

Arts and Letters Daily - Get some culture
Markbnj is offline   Reply With Quote
Reply

Tags
close, dialog, upload file

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 05:37 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.