Product Bundles
DevCraft
All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
Web
Mobile
Document Management
Desktop
Reporting
Testing & Mocking
CMS
UI/UX Tools
Debugging
Free Tools
Support and Learning
Productivity and Design Tools
Hi,
For native ASP.Net checkbox de default cheked is False.
For radcheckbox I get an error EG this line:
pnl_AfwijkendAfleveradres.Visible = chk_othershipping.Checked
ERROR
Nullable object must have a value.
Marc
Hi Marc,
You can achieve the requested functionality and avoid the error by modifying your code to:
pnl_AfwijkendAfleveradres.Visible = chk_othershipping.Checked == true;
Hi Rumen,
I am programing VB here, not c#
Im setting the panel's visiblity directly from the checkbox checked property.
You can implement a solution based on the HasValue property pnl_AfwijkendAfleveradres.Visible = chk_othershipping.Checked.HasValue