Solved

Using access as an asp.net application database

Posted on 2013-01-04
3
233 Views
Last Modified: 2013-01-06
I have access as a database for an asp.net application.  When I try to submit data I get a error that I cannot submit null values. The access required field is set to no on all fields in the table.

Configuration:
2 asp.net - access data provider
   one for a filtered DDL
   one for the formview
1 form view control
1 DDL drop down list


the form view is filtered by the DDL
the form view is configure to allow update, delete and new records

no code behind all code is declarative code

I have an access data provider connected to a form view control. The data provide is using a wild card and filtering off a second data source attached to a drop down list with a filtered filed. The app works as plan but when I try to insert a record the page blows up and indicates that I cannot us null values
Error.PNG
0
Comment
Question by:Tec-Futures
3 Comments
 
LVL 52

Expert Comment

by:Scott Fell, EE MVE
ID: 38746163
By any chance are you trying to insert data into your auto number field?  I would also try and handle the data prior to insert.
0
 
LVL 19

Accepted Solution

by:
Manoj Patil earned 245 total points
ID: 38749029
Have a look at the soure of the aspx page and the sqldatasource should be there. It will have various settings and you can edit them. Inset parameters should be there somewhere. If you like post up what is there and I'll have a look.
There must be the Insert parameters, delete unwanted one like ID. And see result.
Let me know.
0
 
LVL 1

Author Comment

by:Tec-Futures
ID: 38749323
Both answers were correct.

Tech your information was a little more detailed which led me to solving the problem.

padas your response was correct as well but it left me trying to figure out where and what to remove.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

708 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now