.NET news » Search results

Search results for query "form" (46):

Prevent Users from Submitting a Form Twice

When a user clicks a submit button in a form, their browser makes a request back to the web server for the specified URL. On the web server, the user's input is processed and some action is taken based on the input. A database record might be added, an email might be sent, and so on. One potential issue that can arise is if a user submits a form, but there is a delay in getting back a response from the server. A user may think that the button click didn't "take", so they click it again. This can lead to two form submissions, resulting in two database records being added, two emails being sent, or whatever. Two possible methods to prevent it described in the atricle.

2006-10-03 19:00:00   Source: Prevent Users from Submitting a Form...   Tags: ASP.NET

Wizard Form Implementation

Create a dynamically resizable wizard form
2010-06-24 06:46:00   Source: Wizard Form Implementation   Tags: Examples GUI

Creating Validator Controls for the CheckBox and CheckBoxList

ASP.NET provides a variety of validation Web controls that can be used to validate a user's form field inputs. Unfortunately, the validation Web controls do not work with the CheckBox or CheckBoxList Web controls. If you set a validation control's ControlToValidate property to the ID of a CheckBox or CheckBoxList, the page will throw an HttpException, stating: "Control 'controlID' referenced by the ControlToValidate property of 'validationControlID' cannot be validated."

There may be times, however, when you need to provide validation for a CheckBox or CheckBoxList. Many Web pages with Terms of Service include a CheckBox titled "I agree to the above terms" that must be checked before continuing. Likewise, a Web Form may contain a set of options in the form of a CheckBoxList. Perhaps the user is required to check at least one of these options before continuing.

In this article we'll create two custom server controls, CheckBoxValidator and CheckBoxListValidator. The download at the end of this article includes both the entire source code and a compiled assembly that you can drop into your ASP.NET 2.0 web applications..

2006-09-19 19:00:00   Source: Creating Validator Controls for the CheckBox and...   Tags: ASP.NET

Creating a Multi-Page Windows Forms Control with Design Time Support

Have you ever been faced with the task of displaying multiple pages on the same Windows Form? Most of us would certainly respond in the affirmative, and most of us have addressed this by using the good-old Tab Control. While tabs are undoubtedly a proven way of handling such cases, there are situations calling for a "less generic" approach. What if we need to make our form a bit more visually appealing and use icons or graphical buttons to flip through pages? What if we don't want to display tabs at all? Many familiar applications feature such graphical interfaces; however, the .NET framework offers no built-in tools to accomplish this, at least at the time of this writing.
2008-02-11 02:43:00   Source: Creating a Multi-Page Windows Forms...   Tags: Components GUI

Persisting Page State in ASP.NET 2.0

Page state, commonly referred to as view state, is persisted in a hidden form field, by default. When a page is being rendered, any programmatic changes to a control's state is saved to the page's overall view state. During the rendering stage, this view state is serialized into a base-64 encoded hidden form field and sent down to the client's browser. On postback, the view state data is sent back to the web server, where it is deserialized and returned to the appropriate Web controls in control hierarchy so that they may re-establish their state as it was prior to the postback.

View state provides a slick way to remember state in a stateless client-server model and it happens underneath the covers without any extra effort from page developers. The downside of view state, however, is that in certain situations the view state can grow to be exceedingly large. A large view state requires a longer page download time since it bloats the total web page size and also affects the postback time, since the entire view state content must be posted back to the web server along with the other form fields.

It is possible, however, to persist view state to an alternate medium. Such customizations were possible in ASP.NET 1.x by overriding a couple of methods in the Page class. ASP.NET 2.0 makes customizing page state persistence easier as this logic is handled through a separate class. In this article we'll explore the built-in page state persistence options in ASP.NET 2.0, which includes the ability to persist page state to session state rather than through a hidden form field.

2007-01-16 18:00:00   Source: Persisting Page State in ASP.NET 2.0   Tags: ASP.NET

Three Business Decisions for Mobile Application Development

Welcome to a series on three concepts decision makers must understand for their own mobile application development. Many companies are creating mobile applications for internal and external use. Some of these mobile apps are systems that exist in some other form, such as a traditional web application. Or, perhaps a company wants to speed up an old Microsoft Access database entry form and increase its accessibility. Some are pioneering new ways to utilize the mobile connectivity with applications that change the way we interact with our world around us. No matter what kind of mobile application development you are considering, there are several critical decisions you need to make based on your unique product and opportunity in order to create a successful mobile app and spur adoption and entanglement.

read more

2012-08-22 14:00:00   Source: Three Business Decisions for Mobile Application Development   Tags: Other

Filling in PDF Forms with ASP.NET and iTextSharp

The Portable Document Format (PDF) is a popular file format for documents. PDF files are a popular document format for two primary reasons: first, because the PDF standard is an open standard, there are many vendors that provide PDF readers across virtually all operating systems, and many proprietary programs, such as Microsoft Word, include a "Save as PDF" option. Consequently, PDFs server as a sort of common currency of exchange. A person writing a document using Microsoft Word for Windows can save the document as a PDF, which can then be read by others whether or not they are using Windows and whether or not they have Microsoft Word installed. Second, PDF files are self-contained. Each PDF file includes its complete text, fonts, images, input fields, and other content. This means that even complicated documents with many images, an intricate layout, and with user interface elements like textboxes and checkboxes can be encapsulated in a single PDF file.

Due to their ubiquity and layout capabilities, it's not uncommon for a websites to use PDF technology. For example, when purchasing goods at an online store you may be offered the ability to download an invoice as a PDF file. PDFs also support form fields, which are user interface elements like textboxes, checkboxes, comboboxes, and the like. These form fields can be entered by a user viewing the PDF or, with a bit of code, they can be entered programmatically.

This article is the first in a multi-part series that examines how to programmatically work with PDF files from an ASP.NET application using iTextSharp, a .NET open source library for PDF generation. This installment shows how to use iTextSharp to open an existing PDF document with form fields, fill those form fields with user-supplied values, and then save the combined output to a new PDF file.

2011-03-01 18:00:00   Source: Filling in PDF Forms with ASP.NET...   Tags: Internet

ASP.NET 4.0 potentially dangerous Request.Form value was detected

If anyone enter unencoded HTML content into a text box on a ASP.NET application

WinFormsX Part 1 of n

A look at some of the exciting methods of the Windows Forms Extension library, like animations, graphic helpers, and a modern UI form.
2012-08-18 01:32:00   Source: WinFormsX Part 1 of n   Tags: GUI

TransparentSplash Control

A non rectangular/transparent splash screen control that starts life before the Application Form.
2010-07-05 14:39:00   Source: TransparentSplash Control   Tags: Components
1235Next ›