[OPEN] [#1797] Razor syntax mvc error

  1. #1

    [OPEN] [#1797] Razor syntax mvc error

    I get an error. Where am I making an error?

    Click image for larger version. 

Name:	Capture.PNG 
Views:	114 
Size:	17.6 KB 
ID:	25389Click image for larger version. 

Name:	Capture1.PNG 
Views:	95 
Size:	32.8 KB 
ID:	25390
    Last edited by fabricio.murta; Jul 16, 2020 at 3:24 PM.
  2. #2
    Hello @elbetbirgun!

    Before we can take a look on your code can you please, instead of screenshot, copy and paste the code within [code][/code] blocks?
    Fabrício Murta
    Developer & Support Expert
  3. #3
    @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>
  4. #4
    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.
    Geoffrey McGill
    Founder
  5. #5
    Hello, elbetbirgun!

    I have just created issue #1797 to track this defect. We will post a follow-up
    as soon as we confirm the issue has been fixed.
    Fabrício Murta
    Developer & Support Expert

Similar Threads

  1. [OPEN] [#803] Three panels MVC Razor
    By ingbabic in forum Bugs
    Replies: 5
    Last Post: May 26, 2015, 4:13 PM
  2. Component Loader using MVC [Razor] error
    By dangerlinto in forum 2.x Help
    Replies: 2
    Last Post: Jan 21, 2014, 1:48 PM
  3. MVC 4 razor syntax and remotevalidation problem
    By ITReppert in forum 2.x Help
    Replies: 7
    Last Post: Sep 10, 2012, 3:05 PM
  4. MVC Razor - Windws authentication Error
    By Ishrath in forum 2.x Help
    Replies: 3
    Last Post: Sep 06, 2012, 10:54 AM
  5. Mvc razor desktop error
    By mobalick in forum 2.x Help
    Replies: 2
    Last Post: Jul 04, 2012, 10:48 PM

Posting Permissions