PDA

View Full Version : [OPEN] [#1797] Razor syntax mvc error



elbetbirgun
Jul 13, 2020, 6:32 PM
I get an error. Where am I making an error?

2538925390

fabricio.murta
Jul 14, 2020, 3:05 PM
Hello @elbetbirgun!

Before we can take a look on your code can you please, instead of screenshot, copy and paste the code within
blocks?

elbetbirgun
Jul 14, 2020, 6:34 PM
@using Ext.Net
@using Ext.Net.Core
@using Ext.Net.Core.HtmlHelpers
@using Microsoft.AspNetCore.Server.Kestrel.Core.Internal. Http

@{
Layout = null;
var x = Html.X();
}

<!DOCTYPE html>

<html lang="tr">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Ext.NET web application</title>
</head>
<body>
@{
x.Viewport()
.Id("viewPort")
.RenderTo("body")
.Layout(LayoutKind.Border)
.Items(x.Panel()
.BodyPadding(10)
.Collapsible(true)
.Width(500)
.Height(350)
.Id("west")
.Region(RegionKind.West)
.Title("Sol")
.Collapsed(true)
.Layout(LayoutKind.Fit)
.Html("qwe")
.Buttons(x.Button()
.Text("tıkla")));

}

@*
<ext-viewport id="viewPort" renderTo="body" layout="Border">
<items>
<ext-panel bodyPadding=10 collapsible=true width=500 height=350 id="west" region=West title="Sol" collapsed=true layout=Fit html="qwe">
<buttons>
<ext-button text="tıkla"></ext-button>
</buttons>
</ext-panel>

</items>

</ext-viewport>
*@

</body>
</html>

geoffrey.mcgill
Jul 14, 2020, 10:32 PM
Thanks for the report and code sample. I was able to reproduce the issue and we are investigating. We will fix this issue right away and include in the upcoming 7.00-preview4 release.

fabricio.murta
Jul 16, 2020, 3:23 PM
Hello, elbetbirgun!

I have just created issue #1797 (https://github.com/extnet/Ext.NET/issues/1797) to track this defect. We will post a follow-up
as soon as we confirm the issue has been fixed.