Solved

Using access as an asp.net application database

Posted on 2013-01-04
3
234 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
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…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

770 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