Solved

C# check record set for null values

Posted on 2013-01-10
1
569 Views
Last Modified: 2013-01-11
I have a form in ASP.Net (C# code behind, SQL Server 2005 database) that users use to enter data. Once done, they click a button to submit it to the next department. In this instance, when they click submit I would like to check and make sure that certain fields in a details forms are filled out. The details forms can have 1 or more records. Each of those records has required fields. When the submit button is clicked, I think I need to run a sql command to check the recordset fields for null values. If a field is null, the form does not get submitted and a message pops for the user notifying them. I also think it will take a for each loop to look through each record. Is there an example of this somewhere, or am I even on the right track? Thanks.
0
Comment
Question by:dodgerfan
1 Comment
 
LVL 20

Accepted Solution

by:
Daniel Van Der Werken earned 500 total points
ID: 38764557
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question