Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

C# check record set for null values

Posted on 2013-01-10
1
Medium Priority
?
577 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 2000 total points
ID: 38764557
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
High user turnover can cause old/redundant user data to consume valuable space. UserResourceCleanup was developed to address this by automatically deleting user folders when the user account is deleted.
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Suggested Courses

927 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