PDA

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



hrc
Apr 02, 2012, 2:55 AM
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.

Daniil
Apr 02, 2012, 12:49 PM
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.

Vladimir
Apr 02, 2012, 5:12 PM
Hi,

Resources are rendered correctly now. Please update from SVN

hrc
Apr 03, 2012, 5:37 AM
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"))

Daniil
Apr 03, 2012, 10:04 AM
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/

hrc
Apr 03, 2012, 12:37 PM
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.

Daniil
Apr 03, 2012, 12:40 PM
I would suggest to make a new checkout.

hrc
Apr 03, 2012, 12:56 PM
I would suggest to make a new checkout.

same error.

Checking the permissions of my ID, Please.

Daniil
Apr 03, 2012, 12:59 PM
Please send a request of the credentials to
support@object.net

Please include your forum name.

hrc
Apr 05, 2012, 4:03 PM
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.

Daniil
Apr 05, 2012, 5:08 PM
Please clarify did you sent a request on e-mail?