[CLOSED] Can i develop DeskTop sample in Razor Web View?

Page 1 of 2 12 LastLast
  1. #1

    [CLOSED] Can i develop DeskTop sample in Razor Web View?

    hi.

    I develop Desktop Sample in Razor.
    But i can`t.

    My Source is

    @(Html.X().Desktop()
                .ID("Desktop1")
                .DesktopConfig(desktopConfig => desktopConfig.Wallpaper = Url.Content("~/Content/image/Blue.jpg")))
    But this source have Error.

    Error:

    [NullReferenceException: 개체 참조가 개체의 인스턴스로 설정되지 않았습니다.]
    Is it possible to develop in Razor.
    If possible Give me sample source, please.

    ^^

    I'm sorry I could not not speak English well.
    Last edited by Daniil; Apr 16, 2012 at 11:56 AM. Reason: Please use [CODE] tags, [CLOSED]
  2. #2
    Hi,

    It should look like this.

    Example
    @{
        Layout = "";    
    }
    
    <!DOCTYPE html>
    <html>
    <head>
        <title>Ext.Net.MVC v2 Example</title>    
    </head>
    <body>
        @Html.X().ResourceManager()
    
        @(Html.X().Desktop()
            .DesktopConfig(Html.X().DesktopConfig()
                .Wallpaper("resources/images/blue.jpg")
            )
            .Modules(modules =>
                modules.Add(Html.X().DesktopModule()
                    .ModuleID("Module1")
                    .AutoRun(true)
                    .Shortcut(Html.X().DesktopShortcut() 
                        .Name("Hello")
                    )
                    .Window(window =>
                        window.Add(Html.X().Window()
                            .Title("Hello")
                            .Html("Hello World!")
                        )    
                    )
                )
            )
        )
    </body>
    </html>
    But there is a problem with registering the Desktop resources, so the example above won't work at the moment.

    We will notice you when it will be fixed.
    Last edited by Daniil; Apr 03, 2012 at 9:10 AM.
  3. #3
    Hi,

    Resources are rendered correctly now. Please update from SVN
  4. #4
    Quote Originally Posted by Vladimir View Post
    Hi,

    Resources are rendered correctly now. Please update from SVN

    Was updated from SVN

    But, There are still errors

    컴파일러 오류 메시지: CS1502: 'Ext.Net.Desktop.Builder.DesktopConfig(System.Acti on<Ext.Net.DesktopConfig>)'에 가장 일치하는 오버로드된 메서드에 잘못된 인수가 있습니다.

    @(Html.X().Desktop()
    .DesktopConfig(Html.X().DesktopConfig()
    .Wallpaper("resources/images/blue.jpg"))
  5. #5
    I've just checked it up on my side - no errors.

    What link did you update?

    You should update from
    http://svn.ext.net/premium/branches/2.0/Ext.Net/
  6. #6
    Quote Originally Posted by Daniil View Post
    I've just checked it up on my side - no errors.

    What link did you update?

    You should update from
    http://svn.ext.net/premium/branches/2.0/Ext.Net/

    Daniil,

    Thank you very much for your kindness.

    I tried to approach SVN

    but just One problems. I can not approach .

    this error messege :
    Command: Checkout from http://svn.ext.net/premium/branches/2.0/Ext.Net, revision HEAD, Fully recursive, Externals included
    Error: Unable to connect to a repository at URL
    Error: 'http://svn.ext.net/premium/branches/2.0/Ext.Net'
    Error: OPTIONS of 'http://svn.ext.net/premium/branches/2.0/Ext.Net': authorization
    Error: failed: Could not authenticate to server: rejected Basic challenge
    Error: (http://svn.ext.net)
    Completed!:

    help me Daniil.
  7. #7
    I would suggest to make a new checkout.
  8. #8
    Quote Originally Posted by Daniil View Post
    I would suggest to make a new checkout.
    same error.

    Checking the permissions of my ID, Please.
  9. #9
    Please send a request of the credentials to
    support@object.net

    Please include your forum name.
  10. #10
    Quote Originally Posted by Daniil View Post
    Please send a request of the credentials to
    support@object.net

    Please include your forum name.

    Daniil,

    Thank for your help.

    I want to Ext.Net in Razor refrence as soon as possible.

    Thanks, Daniil.
Page 1 of 2 12 LastLast

Similar Threads

  1. [Razor] Porting the Bar Chart Sample
    By Stijn in forum 2.x Help
    Replies: 1
    Last Post: Nov 26, 2012, 11:48 AM
  2. EXT.NET 2.0 RAZOR and ASP.NET MVC 3 Sample Demo App
    By michael_aj in forum Open Discussions
    Replies: 2
    Last Post: Jul 31, 2012, 12:06 PM
  3. [CLOSED] Calendar View in Razor
    By MTSI in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Jul 05, 2012, 9:04 AM
  4. [CLOSED] [Razor] Using Model in MVC View
    By UnifyEducation in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: May 02, 2012, 4:38 PM
  5. [CLOSED] Problems with desktop sample
    By sbg in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Apr 28, 2012, 5:20 AM

Tags for this Thread

Posting Permissions