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


Home >Search > ASP.Net
Search:
What's New - What's Hot
Listings for Applications Applications (528)
Listings for Articles & Samples Articles & Samples (22022)
Listings for ASP.Net Sites ASP.Net Sites (42)
Listings for Assembly & Controls Assembly & Controls (1473)
Listings for Downloads Downloads (21)
Listings for Errors and Bugs Errors and Bugs (41)
Listings for Introduction Introduction (113)
Listings for Knowledge Base Knowledge Base (385)
Listings for WebCasts WebCasts (28)
 


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 DevASP.net