This question is locked. New answers and comments are not allowed.
HI,
I am using Ajax popup editing for Telerik Q2 grid. I have a byte[] as one of the hidden fields in my Model Editor Template coded like this - @Html.HiddenFor(m => m.Version). When posting back (ajax submit) the edit form, the byte[] array field is throwing the following error when trying to update model in my controller.
"The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or a non-white space character among the padding characters"
The problem does not occur when I use my own Edit Form using normal postback. So I decided to post the issue in this forum. I could see that the byte[] in view is not properly encoded when using telerik ajax edit. The value is displayed as "0,0,0,0,0,0,7,210" when it should be displayed as "AAAAAAAAB9I="
Why does editing through Telerik Grid not encode byte[] properly.
regards,
Nirvan.
I am using Ajax popup editing for Telerik Q2 grid. I have a byte[] as one of the hidden fields in my Model Editor Template coded like this - @Html.HiddenFor(m => m.Version). When posting back (ajax submit) the edit form, the byte[] array field is throwing the following error when trying to update model in my controller.
"The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or a non-white space character among the padding characters"
The problem does not occur when I use my own Edit Form using normal postback. So I decided to post the issue in this forum. I could see that the byte[] in view is not properly encoded when using telerik ajax edit. The value is displayed as "0,0,0,0,0,0,7,210" when it should be displayed as "AAAAAAAAB9I="
Why does editing through Telerik Grid not encode byte[] properly.
regards,
Nirvan.