forms

How do I access a remote form in php?

I want to gather info from a user on a local php page (that I control), and use that info to query a form on another site (that I don't control) - how do I do that?...

WinForms ComboBox data binding gotcha

Ok, I'm a web developer, but I find myself dabbling in windows forms projects every now and then. One thing that confounds me to this day is the following. Assume you are doing something like the following List<string> myitems = new List<string> { "Item 1", "Item 2", "Item 3" }; ComboBox box = new ComboBox(); box.DataSourc...

Is a "Confirm Email" input good practice when user changes email address?

My organization has a form to allow users to update their email address with us. It's suggested that we have two input boxes for email: the second as an email confirmation. I always copy/paste my email address when faced with the confirmation. I'm assuming most of our users are not so savvy. Regardless, is this considered a good practi...

How Do I Post and then redirect to an external URL from ASP.Net?

ASP.Net server side controls postback to their own page. This makes cases where you want to redirect a user to an external page, but need to Post to that page for some reason (for authentication, for instance) a pain. An HttpWebRequest works great if you don't want to redirect, and Javascript is fine in some cases, but can get tricky i...

Use the routing engine for form submissions in ASP.NET MVC Preview 4

Hi, I'm using ASP.NET MVC Preview 4 and would like to know how to use the routing engine for form submissions. For example, I have a route like this: routes.MapRoute( "TestController-TestAction", "TestController.mvc/TestAction/{paramName}", new { controller = "TestController", action = "TestAction",...

Delphi MDI Application and the titlebar of the MDI Children

I've got an MDI application written in Delphi 2006 which runs XP with the default theme. Is there a way of controlling the appearance of the MDI Children to avoid the large XP-style title bar on each window? I've tried setting the BorderStyle of the MDIChildren to bsSizeToolWin but they are still rendered as normal Forms. ...

What is the best way to upload a file via an HTTP POST with a web form?

Basically, something better than this: <input type="file" name="myfile" size="50"> First of all, the "browse" button looks different on every browser. Unlike the "submit" button on a form, you have to come up with some hack-y way to style it. Secondly, there's no progress indicator showing you how much of the file has uploaded. ...

Windows Forms Threading and Events - ListBox updates promptly but progressbar experiences huge delay

Our team is creating a new recruitment workflow system to replace an old one. I have been tasked with migrating the old data into the new schema. I have decided to do this by creating a small Windows Forms project as the schema are radically different and straight TSQL scripts are not an adequate solution. The main sealed class 'ImportC...

MVC .Net - The best way to write a form?

What is the the best way to write a form to submit some data in asp.net MVC? Is it as Scott Gu demonstrates here? Are there better approches? Perhaps with less using of strings? ...

Offline forms

Anyone doing any work using "offline" forms? We have an application that requires inputting data from outside our company. I was thinking about sending a form out via email, allowing the form to be filled out then sent back. Obviously a web application would be the best solution, but management doesn't seem ready to build the infrastr...

MVC - where to implement form validation (server-side)?

In coding a traditional MVC application, what is the best practice for coding server-side form validations? Does the code belong in the controller, or the model layer? And why? ...

.Net Compact Framework scrollbars - horizontal always show when vertical shows

I am new to the .Net Compact Framework and have been unable to find an answer via Google. Gasp! Yes, it's true, but that is part of why stackoverflow is here, right? I have a form that is longer than the screen, so a vertical scrollbar appears as expected. However, this appears to force a horizontal scrollbar to appear as well. (If I sc...

Data model for a extensible web form

Suppose that I have a form that contains three 10 fields: field1..field10. I store the form data in one or more database tables, probably using 10 database columns. Now suppose a few months later that I want to add 3 more fields. And in the future I may add/delete fields from this form based on changing requirements. If I have a d...

Retrieving HTTP status code from loaded iframe with Javascript

I used the jQuery Form plugin for asynchronous form submission. For forms that contain files, it copies the form to a hidden iframe, submits it, and copies back the iframe's contents. The problem is that I can't figure out how to find what HTTP status code was returned by the server. For example, if the server returns 404, the data from ...

InfoPath 2003 and the xs:any type

I am implementing exception handling for our BizTalk services, and have run into a fairly major stumbling block. In order to make the exception processing as generic as possible, and therefore to allow us to use it for any BizTalk application, our XML error schema includes an xs:any node, into which we can place a variety of data, depen...

HTTP POST question - I'm stuck

I have to POST some parameters to a URL outside my network, and the developers on the other side asked me to not use HTTP Parameters: instead I have to post my key-values in HTTP Headers. The fact is that I don't really understand what they mean: I tried to use a ajax-like post, with XmlHttp objects, and also I tried to write in the hea...

ASP.NET MVC Preview 4 - Stop Url.RouteUrl() etc. using existing parameters

Hi, I have an action like this: public class News : System.Web.Mvc.Controller { public ActionResult Archive(int year) { / *** / } } With a route like this: routes.MapRoute( "News-Archive", "News.mvc/Archive/{year}", ...

What's the state of play with "Visual Inheritance"

Hi, We have an application that has to be flexible in how it displays it's main form to the user - depending on the user, the form should be slightly different, maybe an extra button here or there, or some other nuance. In order to stop writing code to explicitly remove or add controls etc, I turned to visual inheritance to solve the p...

In HTML, what should happen to a selected, disabled option element?

In my specific example, I'm dealing with a drop-down, e.g.: <select name="foo" id="bar"> <option disabled="disabled" selected="selected">Select an item:</option> <option>an item</option> <option>another item</option> </select> Of course, that's pretty nonsensical, but I'm wondering whether any strict behaviour is defined. ...

How to best merge information, at a server, into a "form", a PDF being generated as the final output

Background: I have a VB6 application I've "inherited" that generates a PDF for the user to review using unsupported Acrobat Reader OCX integration. The program generates an FDF file with the data, then renders the merged result when the FDF is merged with a PDF. It only works correctly with Acrobat Reader 4 :-(. Installing a newer ver...