or
Public
Sub
New
(employee
As
Data.Employee)
Me
.Id = employee.Id
Me
.FirstName = employee.FirstName
Me
.LastName = employee.LastName
Me
.Title = employee.Title
Me
.BirthDate = employee.BirthDate
Me
.City = employee.City
End
Sub
<
script
type
=
"text/javascript"
src
=
"//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"
></
script
>
<
script
type
=
"text/javascript"
src
=
"/js/vendor/kendo-ui/kendo.all.min.js"
></
script
>
<
div
class
=
"k-content"
>
<
textarea
id
=
"KEditor"
rows
=
"10"
cols
=
"30"
placeholder
=
"@GetText("
Content")"
maxlength
=
"255"
style
=
"height: 500px"
></
textarea
>
</
div
>
$(document).ready(
function
() {
$(
"#KEditor"
).kendoEditor({
tools: [
"fontName"
,
"fontSize"
,
"foreColor"
,
"backColor"
,
"bold"
,
"italic"
,
"underline"
,
"justifyLeft"
,
"justifyCenter"
,
"justifyRight"
,
"justifyFull"
,
"insertUnorderedList"
,
"insertOrderedList"
,
"indent"
,
"outdent"
,
"createLink"
,
"unlink"
,
"insertImage"
,
"viewHtml"
],
imageBrowser: {
transport: {
read: {
type:
"GET"
,
url:
"/api/sites/user-gallery"
,
},
destroy:
"/api/sites/user-gallery?action=delete"
,
thumbnailUrl:
function
(path, name) {
var
pictureUrl = decodeURIComponent(name);
return
pictureUrl;
},
uploadUrl:
"/api/sites/user-gallery?action=upload"
,
//work if this line is commented
imageUrl:
function
(name) {
var
pictureUrl = decodeURIComponent(name);
return
pictureUrl;
},
}
}
//, messages: { viewHtml: '@GetText("ViewHtml")'}
});
});
{
"pictureId"
:1369437,
"type"
:
"f"
,
"size"
:1024,
}