- Joined
- Jun 21, 2007
- Messages
- 2
- Reaction score
- 0
Hello,
Should first of all say I am very new to ASP.NET and i am currently working my way through several books however I have come accross a problem.
I am using Visual Studio Expression.
I have a SQLDatasource that has several Columns
Title, Author, LastRead, PageCount.
I have the Title set to not allow Nulls.
Now the issue I am having is that I have set up a GridView with edit enabled.
I have the title field set to ReadOnly so people cannot change the title however when updating it says cannot insert Null value.
I have therefore set the ConvertEmptyStringToNull="false" on the boundfield as well as the InsertParameter and UpdateParamter for 'Title'
Yet I am still getting the exception cannot insert Null Value into 'Title'
can anyone help? The book I am using tells me that it will work with the ConvertEmptyStringToNull will work yet it doesn't. Am I missing sumthin here?
Any help will be.... well.... Greatly appreciated!!! :cheers:
Should first of all say I am very new to ASP.NET and i am currently working my way through several books however I have come accross a problem.
I am using Visual Studio Expression.
I have a SQLDatasource that has several Columns
Title, Author, LastRead, PageCount.
I have the Title set to not allow Nulls.
Now the issue I am having is that I have set up a GridView with edit enabled.
I have the title field set to ReadOnly so people cannot change the title however when updating it says cannot insert Null value.
I have therefore set the ConvertEmptyStringToNull="false" on the boundfield as well as the InsertParameter and UpdateParamter for 'Title'
Yet I am still getting the exception cannot insert Null Value into 'Title'
can anyone help? The book I am using tells me that it will work with the ConvertEmptyStringToNull will work yet it doesn't. Am I missing sumthin here?
Any help will be.... well.... Greatly appreciated!!! :cheers: