I've taken a gridview and replaced several of the fields with dropdownlists.
The Gridview is bound to a SQLDataSource and the dropdownlists are bound to a different SQLDataSource. Generally I autoload all of the lookup table values into a dataset on page_load and bind my controls to the specific tables in the dataset. The problem I'm having is because the ddls are inside of the gridview and I can't figure out why the selectedvalue isn't being saved when I click on the UPDATE button. It's wasn't originally throwing an exception it's just wasn't saving. Now it's throwing an exception stating it "Cannot insert the value NULL". Column does not allow nulls.
Ideally, you should have placed the ddls for editing the data inside an EditTemplateItem inside a template field in the Gridview.
This is a good walkthrough of implementing ddls in a gridview for editing
More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.
Today is the age of broadband. More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.
If your ASP.NET page …
Need to grow your business through quality cloud solutions? With everything required to build a cloud platform and solution, you may feel like the distance between you and the cloud is quite long. Help is here. Spend some time learning about the Con…