Author Topic: ASP.NET MVC with J9  (Read 2584 times)

diginerve

  • Jr. Member
  • **
  • Posts: 80
    • View Profile
ASP.NET MVC with J9
« on: December 30, 2010, 04:27:43 pm »
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

  • Administrator
  • Hero Member
  • *****
  • Posts: 2851
    • View Profile
    • Codecore Technologies
Re: ASP.NET MVC with J9
« Reply #1 on: December 30, 2010, 06:05:31 pm »
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
Codecore Technologies

John Hughes

  • Administrator
  • Hero Member
  • *****
  • Posts: 2851
    • View Profile
    • Codecore Technologies
Re: ASP.NET MVC with J9
« Reply #2 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.
« Last Edit: December 30, 2010, 07:44:11 pm by John Hughes »
John Hughes
Codecore Technologies

diginerve

  • Jr. Member
  • **
  • Posts: 80
    • View Profile
Re: ASP.NET MVC with J9
« Reply #3 on: December 31, 2010, 03:04:52 am »
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.


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

  • Administrator
  • Hero Member
  • *****
  • Posts: 2851
    • View Profile
    • Codecore Technologies
Re: ASP.NET MVC with J9
« Reply #4 on: December 31, 2010, 10:14:44 am »
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

John Hughes
Codecore Technologies

John Hughes

  • Administrator
  • Hero Member
  • *****
  • Posts: 2851
    • View Profile
    • Codecore Technologies
Re: ASP.NET MVC with J9
« Reply #5 on: December 31, 2010, 01:22:22 pm »
I sent you a PM with a new version.
John Hughes
Codecore Technologies

John Hughes

  • Administrator
  • Hero Member
  • *****
  • Posts: 2851
    • View Profile
    • Codecore Technologies
ASP.NET MVC with J9
« Reply #6 on: January 09, 2011, 10:12:49 pm »
Have you had a chance to try it out?
John Hughes
Codecore Technologies