G
Guest
I have a table with 2 keys, which are of course identified as not being
allowed to be null. I have created a screen in which has a number of fields
identified for selection criteria, and the user has the freedom to identify
which fields it will use to make their selection on. Sometimes they will
enter criteria for the key fields and sometimes they will not.
I have use VS2005 to generate my dataset and my dataAdapter. I have bound
the data adapter to a DataView and bound the selection criteria to the text
boxes on the web form. The problem is when the user does not specify any
criteria for the "key" fields which can not be null, an execption is thrown
for the key field which is blank telling me the key field can not be null.
How do I get around this?
allowed to be null. I have created a screen in which has a number of fields
identified for selection criteria, and the user has the freedom to identify
which fields it will use to make their selection on. Sometimes they will
enter criteria for the key fields and sometimes they will not.
I have use VS2005 to generate my dataset and my dataAdapter. I have bound
the data adapter to a DataView and bound the selection criteria to the text
boxes on the web form. The problem is when the user does not specify any
criteria for the "key" fields which can not be null, an execption is thrown
for the key field which is blank telling me the key field can not be null.
How do I get around this?