Skip to content

Commit 2436f68

Browse files
authored
Update using-in-razor-pages-app.md (#1875)
1 parent 360747a commit 2436f68

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

embedding-reports/display-reports-in-applications/web-application/html5-report-viewer/using-in-razor-pages-app.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,14 @@ public class ReportSourceModel : PageModel
7777
7878
1. In the razor page's `.cshtml` file, initialize the HTML5 Report Viewer and pass the `ReportSourceModel` from the `@model`:
7979
80-
````HTML
80+
````CSHTML
8181
@page
8282
@model ReportSourceModel
8383
@{
8484
ViewData["Title"] = "Telerik HTML5 Report Viewer Demo";
8585
Model.Report = "Barcodes Report.trdp";
8686
//Model.Parameters.Add("ParameterName", ParameterValue);
8787
}
88-
8988
@section Scripts {
9089
<head>
9190
<title>Teleirk HTML5 Report Viewer in ASP.NET Core Razor Pages App</title>
@@ -97,7 +96,6 @@ public class ReportSourceModel : PageModel
9796
font-family: Verdana, Arial, sans-serif;
9897
margin: 5px;
9998
}
100-
10199
#reportViewer1 {
102100
position: absolute;
103101
left: 5px;
@@ -113,11 +111,9 @@ public class ReportSourceModel : PageModel
113111
<div id="reportViewer1">
114112
loading...
115113
</div>
116-
117114
@{
118115
var reportSourceModel = Html.Raw(Model.Serialize());
119116
}
120-
121117
<script type="text/javascript">
122118
$(document).ready(function () {
123119
$("#reportViewer1")

0 commit comments

Comments
 (0)