Configuration > Web Browser Interface

ASP.NET MVC with J9

(1/2) > >>

diginerve:
Hi,

Have you any example on how we could utilize the J9 HTTP engine within the ASP.NET MVC framework, removing the requirement of the simpler extension mapper to handler function, where all pages using the HTTP handler need to have thier dedicated extenions.

I found two articales which suggest that this should not be impossible, but im not have a lot of success since!
http://forums.asp.net/t/1320309.aspx
http://blog.maartenballiauw.be/post/2008/05/ASPNET-MVC-custom-ActionResult.aspx

cheers
Damian

John Hughes:
What do you mean by "J9 HTTP engine"? Are you referring to the RESTful web service or the J9Script HTTP Handler?

ASP.NET MVC can use a variety of rendering engines and while we could implement a custom one for Elve I think it would be best to be able to use a library which allows you to access devices directly from .net code. We already have implemented something like this for adding and removing devices but it might be good to do the same thing for getting/setting device properties, calling methods and running scripts. Of course this would require an Elve username and password.

What are your thoughts.

John Hughes:
PS: I went ahead and added a new .NET API to allow access to getting/setting device properties, calling methods and running scripts via a .NET class.

This should allow you to do most anything with ASP.NET MVC or ASP.NET Forms without the need of the J9Script handler.

diginerve:

--- Quote from: John Hughes on December 30, 2010, 07:42:20 pm ---PS: I went ahead and added a new .NET API to allow access to getting/setting device properties, calling methods and running scripts via a .NET class.

This should allow you to do most anything with ASP.NET MVC or ASP.NET Forms without the need of the J9Script handler.


--- End quote ---

Party time!, thanks John, I am really looking forward to giving this a test and taking a look at the API and a Sample or 2 :)
This is Sweet!
-d

John Hughes:
I'll try to get you a version to try out today.

You can find the documentation here:

http://codecoretechnologies.com/content/Device-Control-API.ashx

Navigation

[0] Message Index

[#] Next page

Go to full version