Search - Articles
DevASP.NET for ASP.NET, VB.NET, XML and C# (C-Sharp) Developers Tuesday, March 03, 2009
Dev Articles
Search Directory
SQL Server

Home >Search > Articles & Samples > ASP.Net
What's New - What's Hot
More Categories for Application Making Application Making (56)
Listings for ASP.NET Administration ASP.NET Administration (37)
Listings for ASP.Net Sites ASP.Net Sites (10)
Listings for Assembly Assembly (77)
Listings for Browsers Browsers (90)
Listings for Business & Enterprise Business & Enterprise (12)
Listings for Caching Caching (349)
Listings for Class Libraries Class Libraries (101)
More Categories for Code Management Code Management (191)
Listings for Compiler Compiler (11)
Listings for Component Component (144)
More Categories for Configuration Configuration (178)
Listings for Cookies Cookies (86)
Listings for Custom Controls Custom Controls (816)
Listings for Data Binding Data Binding (176)
More Categories for Database Database (3770)
Listings for Date & Time Date & Time (56)
Listings for Debugging Debugging (144)
Listings for Deployment Deployment (110)
Listings for Directory Listing Directory Listing (47)
Listings for DNS Functions DNS Functions (3)
Listings for Documentation Documentation (4)
Listings for Domain Controller Domain Controller (4)
Listings for E-Commerce E-Commerce (8)
Listings for Email Email (283)
Listings for Error Handling Error Handling (161)
Listings for Event Handling Event Handling (94)
Listings for Exception Handling Exception Handling (69)
Listings for FAQ FAQ (122)
More Categories for File Management File Management (259)
Listings for Flash Flash (3)
More Categories for Form Handling Form Handling (152)
More Categories for Function Function (10)
Listings for Globalization Globalization (92)
More Categories for Graphics & Charts Graphics & Charts (353)
Listings for Image manipulation Image manipulation (96)
Listings for Introduction Introduction (113)
More Categories for Language Reference Language Reference (110)
Listings for Master Pages Master Pages (139)
Listings for Migration to ASP.Net Migration to ASP.Net (221)
More Categories for Miscellaneous Miscellaneous (1)
Listings for Mobile Mobile (83)
Listings for Namespace Namespace (18)
Listings for Object Oriented Object Oriented (159)
More Categories for Office Documents Office Documents (71)
Listings for Performance Tuning Performance Tuning (207)
Listings for Popup Calendar Popup Calendar (17)
Listings for Popup Window Popup Window (47)
Listings for Reflection Reflection (21)
Listings for Regular Expressions Regular Expressions (78)
Listings for Remoting Remoting (57)
Listings for Request Request (30)
Listings for ResourceManager ResourceManager (6)
Listings for Response Response (12)
Listings for RichTextBox RichTextBox (30)
Listings for RSS RSS (141)
Listings for Sample Chapters Sample Chapters (2315)
More Categories for Scripting Scripting (967)
Listings for Search engine Search engine (17)
More Categories for Security & Encryption Security & Encryption (248)
Listings for Serialization Serialization (41)
More Categories for Server Application Server Application (15)
More Categories for Server Controls Server Controls (4208)
Listings for Server Variables Server Variables (37)
Listings for Session State Session State (186)
Listings for Site Performance Site Performance (28)
Listings for SQLXML SQLXML (16)
Listings for State Management State Management (82)
More Categories for Strings & Variables Strings & Variables (8)
Listings for System.drawing System.drawing (3)
Listings for System.Web System.Web (28)
Listings for Threading Threading (69)
Listings for Tips & Tricks Tips & Tricks (1574)
Listings for Title & tags Title & tags (9)
Listings for Tracing Tracing (63)
More Categories for User Management User Management (402)
Listings for View State View State (143)
Listings for Visual Studio.Net Visual Studio.Net (14)
More Categories for Web Application Web Application (27)
Listings for Web Development Web Development (255)
Listings for Web Forms Web Forms (481)
More Categories for Web Services Web Services (744)
Listings for XML and ASP.NET XML and ASP.NET (307)

ASP.NET MVC 2 Preview 2: Client-Side Validation     
Total Hits: 97  |  Today: 0Author: pietrobr      Rating:  
Read Reviews | Write Review |  Your Rating: 

Client-side validation enable your application to perform client-side validation based on model’s validation by JQuery validation library. Ok, it’s simpler than it sounds. The client-side validation framework is even extensible, but for now it suits my simple needs. In my post on ASP.NET MVC 2.0 Preview 1 I’ve added server-side validation to my application model using metadata as ASP.NET Dynamic Data does. So, for example, in the the picture below I’ve added a partial class to my model and a cla...

ASP.NET Validation using Ajax     
Total Hits: 110  |  Today: 0Author: Uday Kosana      Rating:  
Read Reviews | Write Review |  Your Rating: 

Many times it is desirable to perform javascript validation before submitting a page to the web server. For simple validations client side javascript validation is sufficient. However, in complex scenarios, server side validation may be required and client side javascript will not suffice. In such scenarios, typically postbacks must be performed in order to do the server side validation. In many cases, the developer may not want the page to be posted back for vallidations, because the page state...

Performing Validations with ASP.NET - Part 2     
Total Hits: 38  |  Today: 0Author: learnxpress      Rating:  
Read Reviews | Write Review |  Your Rating: 

In the previous article, you learned how to perform validations using CompareValidator, CustomValidator and RangeValidator provided with the .NET Framework. In this second part, I will examine the applications of remaining three controls namely RegularExpressionValidator, RequiredFieldValidator and ValidationSummary. While the ValidationSummary control summarizes all the errors occurred, the remaining two controls are used in different circumstances in a project depending upon the requirements....

Performing Validations with ASP.NET - Part 1     
Total Hits: 39  |  Today: 0Author: Anand Narayanaswamy      Rating:  
Read Reviews | Write Review |  Your Rating: 

Imagine a user visits your site. Imagine also that your site sells books. The user first screens the available books on the site. While screening, they fill out a form, which would enable them to provide quantity details, address and other relevant information. Suppose, however, that your user submits the form without filling in the zip code. After submitting the form, the server returns an error indicating null field provided there is no proper error handling techniques employed on the server s...

Validating ASP.NET Query Strings     
Total Hits: 53  |  Today: 0Author: Dino Esposito      Rating:  
Read Reviews | Write Review |  Your Rating: 

For years, classic ASP developers implemented page authentication by inserting some generic code at the top of each page that would grab user credentials, attach a cookie, and redirect. All that repetitive code was swept away by the ASP.NET HTTP modules for authentication. As a result, ASP.NET applications don't have to link each and every page being secured to the authentication module of choice. Everything can be done declaratively through the web.config file and a bunch of external resources,...

Extend the ASP.NET WebMethod Framework by Adding XML Schema Validation     
Total Hits: 74  |  Today: 0Author: Aaron Skonnard,Dan Sullivan      Rating:  
Read Reviews | Write Review |  Your Rating: 

WebMethods make the development of XML Web Services easier by encapsulating a good deal of functionality, but there is still a lot of underlying XML processing that you have to be responsible for. For example, WebMethods do not validate messages against the implied schema. Because they are not validated, the response that's returned can result in unintended consequences. To address this, the authors extend the WebMethod framework by adding XML Schema validation through a custom SoapExtension cla...

ASP.NET Session State, Validation, DataGrids, and More     
Total Hits: 98  |  Today: 0Author: Nancy Michell      Rating:  
Read Reviews | Write Review |  Your Rating: 

Q If I have an ASP.NET application using session state and I launch a new browser window from one of my pages, is there a way to force a new session? I need to have two unique sessions for a user, one for the original browser window and one for the new browser window....

Validating ASP.NET Query Strings     
Total Hits: 109  |  Today: 0Author: Dino Esposito      Rating:  
Read Reviews | Write Review |  Your Rating: 

For years, classic ASP developers implemented page authentication by inserting some generic code at the top of each page that would grab user credentials, attach a cookie, and redirect. All that repetitive code was swept away by the ASP.NET HTTP modules for authentication. As a result, ASP.NET applications don't have to link each and every page being secured to the authentication module of choice. Everything can be done declaratively through the web.config file and a bunch of external resources,...

Taking Data Validation to a Dynamic Level     
Total Hits: 76  |  Today: 0Author: Kurt Cagle      Rating:  
Read Reviews | Write Review |  Your Rating: 

Although XML Schema was intended to be used to provide a better validation and definition layer for XML than Document Type Definitions (DTDs), certain underlying concepts were translated unintentionally. One concept was the notion that attributes could be set to enumerations (lists), but those enumerations needed to be specified within the schema itself. As XML becomes more distributed, as data structures become more complex and dependent on not just static but dynamic definitions, developers ar...

Servers-Side Validations on the Client Side     
Total Hits: 73  |  Today: 0Author: Pandurang Nayak      Rating:  
Read Reviews | Write Review |  Your Rating: 

A technique that can be used for executing server-side script from the client side and returning a JavaScript output from the server code is explained here.

Let us take an instance of where this can be used. Many sites have user registration forms where the user is asked to choose a username and password. Obviously this user login has to be unique and so the required validation has to be done to make sure that the user login is not already present in the database. This makes a server roun...

Creating Validation Images On-The-Fly with GDI+     
Total Hits: 30  |  Today: 0Author: Ben Hinton      Rating:  
Read Reviews | Write Review |  Your Rating: 

Developers, like myself, can spend many hours with a graphics tool trying to design graphical buttons for a Web site. However, there is a technique that enables you to specify things like, font, size, colour etc and create buttons/labels on-the-fly! Were going to look at an example where creating dynamic images can prove very useful and is in use by many sites already....

Validation in ASP.NET     
Total Hits: 34  |  Today: 0Author: Philip Q      Rating:  
Read Reviews | Write Review |  Your Rating: 

When you have a form that user's submit data, its important that they don't mess it up and enter weird stuff. Validation stops this but in ASP it was a tedious job of If statements to work out. I myself had a simple form that added users to a database, it had a heck of a lot of if statements. ASP.NET introduces - Validation Controls. These controls are just like Web Controls and can do many things like - Check if a field is filled out, Compare a field to something (or another), Use regular expre...

Displaying Custom Message in Validation Summary     
Total Hits: 675  |  Today: 0Author: extremeexperts      Rating:  
Read Reviews | Write Review |  Your Rating: 

Most of us would have come across a situation where we need to display a custom message other than the error message from validators in the validation summary. For example, based on business logic check you need to display a message to the user. Already you have a validation summary in the page where you are displaying error message to the user, you might prefer to add your message to that validation summary. There are multiple ways to achieve this, here I am going to explain one of the ways to ...

Application Domains in .NET     
Total Hits: 477  |  Today: 0Author: Joydip Kanjilal      Rating:  
Read Reviews | Write Review |  Your Rating: 

An Application Domain is a light-weight process. It is a logical and physical unit of isolation built around every .NET application by the Common Language Runtime (CLR) and contains its own set of code, data and configuration settings. Multiple application domains can exist simultaneously in the same process. The default application domain is created when the Common Language Runtime is first loaded into a process. From then on, the CLR loads an assembly implicitly into an Application Domain ...

WDX C# Creditcard Validation Functions     
Total Hits: 241  |  Today: 0Author: Anthony Main.      Rating:  
Read Reviews | Write Review |  Your Rating: 

Here is my Payment class for doing basic credit/debit card validation checks in c#. Includes the following functions:...

SSN Validation Web Service     
Total Hits: 207  |  Today: 0Author: tupacs01      Rating:  
Read Reviews | Write Review |  Your Rating: 

This article describes the implementation of an ASP.NET Web Service which can be used for SSN format validation. Being a big advocate of learning by doing, I decided to teach myself ASP.NET and ASP.NET Web Services by writing a simple application. This article walks through the process of designing a simple ASP.NET Web Service to address a business need....

Custom Validation Summary in ASP.NET     
Total Hits: 165  |  Today: 0Author: jeffshantz      Rating:  
Read Reviews | Write Review |  Your Rating: 

Validation is an extremely useful feature in ASP.NET. The powerful validation controls provided by Microsoft allow developers to easily validate form data with a minimal amount of code. More specifically, the ValidationSummary control provides an easy method of displaying a summarized list of all validation errors on a page. However, this control often presents errors in a fashion that is aesthetically incompatible with the rest of the page. It would be useful to be able to popup all validation ...

Reuse in ASP.NET Across Domain     
Total Hits: 584  |  Today: 0      Rating:  
Read Reviews | Write Review |  Your Rating: 

ASP.NET offers a wide array of advantages over Classic ASP, which will compel the millions of ASP developers to move to ASP.NET in a hurry. However, as with any new technology, there are tradeoffs....

FIX: ASP.NET Does Not Work with the Default ASPNET Account on a Domain Controller     
Total Hits: 683  |  Today: 0      Rating:  
Read Reviews | Write Review |  Your Rating: 

By default, ASP.NET runs its worker process (Aspnet_wp.exe) with a weak account (the local machine account, which is named ASPNET) to provide a more secure environment. On a domain controller or on a backup domain controller, all user accounts are domain accounts and are not local machine accounts. Therefore, Aspnet_wp.exe fails to start because it cannot find a local account named "localmachinename\ASPNET". To provide a valid user account on the domain controller, you must specify an explicit a...

How to validate an XML file with an XSD file     
Total Hits: 1168  |  Today: 0      Rating:  
Read Reviews | Write Review |  Your Rating: 

Utlimately I want to be able to parse an xml STRING with an xsd STRING but this is the best I could do: parsing an xml FILE with an xsd FILE. I basically reworked a console application example in the MSDN help file into a nicer looking ASP.NET Web form example. It tells you if your file is not well-formed and then if it is not valid it lists out the specific reason (like in XMLSpy), quite helpful to find an error in a large XML file as it returns the line number on which the error occurred as we...

Disclaimer - Privacy
© 2002-2017