Hey all,
I have an MVC app that lets the user use the RadDate and RadTime pickers to choose a date and time for an event (separate inputs). I read the documentation on how to extract the value... but having some problems when the page is submitted and there are errors. Namely I want to: A. Put the value back into the field from ViewData, B. Have a red border show up if the date is invalid (e.g. in the past, or is missing, etc.).
When I try to do a simple <% if (ViewData["regform.Birthdate"]) {%> etc. it says "Code blocks are not supported in this context".
Anyone able to help me figure out whats going on with this?
Thanks,
Robin
I have an MVC app that lets the user use the RadDate and RadTime pickers to choose a date and time for an event (separate inputs). I read the documentation on how to extract the value... but having some problems when the page is submitted and there are errors. Namely I want to: A. Put the value back into the field from ViewData, B. Have a red border show up if the date is invalid (e.g. in the past, or is missing, etc.).
When I try to do a simple <% if (ViewData["regform.Birthdate"]) {%> etc. it says "Code blocks are not supported in this context".
Anyone able to help me figure out whats going on with this?
Thanks,
Robin