Mobile web server with ASP - mobile

Does anyone know of any embeddable Software/libraries for android/ios/etc that will provide web server capabilities for rendering ASP pages?
I'm looking for a solution where you can build an app with the library, point it to an asp page and have it run like it would on IIS.
to be clear, I'm just looking at asp, not necessarily asp.net (although if it did both, great).

Windows CE provides an embedded web server that supports classic ASP.
Quote from MSDN:
Windows CE supports a subset of the ASP-page functionality that IIS
supports.

Related

To what extent is a possible to write a web application with WPF and are there any advantages of doing so over using ASP.NET / MVC?

I know that it's possible to use WPF for web development but are there any circumstances in which it would be better to use WPF? Or is it more common practice to ASP.NET Forms/MVC?
I know that it's possible to use WPF for web development
Wrong. WPF is part of the .Net Framework. It is a Windows Client technology that requires the target computer to have the .Net Framework installed in order to run.
Web applications consist of a Web Server delivering Web Content (HTML [+Javascript+CSS]) to a Web Client (Browser).
WPF has nothing to do with that. It does not produce HTML or any other Web content and it is not a Server Side technology.
Bottom line:
Use Web technologies (A server side technology that outputs HTML (such as ASP.Net MVC)) if you need to create a Web Application.
Use WPF if you need to create a rich, highly interactive Windows Desktop application.
Use WinRT XAML (similar to WPF) if you need to create a rich, highly interactive Windows "Metro Style" application.
In addition to what #HighCore said, it's possible to use technology similar to WPF in a web environment. For example, Silverlight uses XAML markup. It's kind of similar to a Java applet if you're familiar with those. Silverlight is particularly handy for doing something that requires a lot of graphics or media in the browser, but it's not as full featured as WPF. In addition, you have to hope that the user has a Silverlight plugin which isn't available on all platforms. For example, Linux and mobile have limited or no Silverlight capability.
You could develop a WPF application and deliver it as a ClickOnce application. You're pretty much limited to Windows targets.
If you're trying to develop a website, then stick to ASP.NET Web Forms or MVC or some other server side technology that serves HTML to browsers, as HighCore said.

Writing a website with VB.NET back-end, no ASP.NET

I've been asked to make a website with VB.NET server-side code, and I cannot use ASP.NET or any client-side scripting. The pages need to interact with a Microsoft SQL Server database hosted on a Windows 2003 server (which has IIS and the .NET framework installed). I've been googling for examples, but all the ones I find seem to be about ASP.
I have some basic PHP experience, and can program in VB.NET, but I've never had to do anything like this before. Can anyone give me a reference or basic example that I could play with that will help me connect an html webpage to the SQL database with VB.NET as my server-side code, without using ASP.NET?
Edit and clarification: I know ASP.NET is server-side - what I have been specifically banned from using is any tag starting <asp: or containing runat=server. If there are other features of ASP.NET that I can/need to use, then that's fine.
More specifically, I've been told I can't use any tags starting "<asp:" or containing "runat=server"
You can at least use IIS, and the .Net tools within IIS, right? You're not completely re-implementing a web server?
Just make a handler (*.ashx), and use Response.Write() ,<%=, and <%: for everything.
You should also look into whether you can use ASP.Net MVC (it doesn't need server controls at all). Otherwise you're essentially back in the dark days of classic asp.
ASP.NET is not client side.
ASP.NET is a web development framework which uses a server side language like C#/ Vb.NET. So what you are going to create is going to be an ASP.NET app with VB.NET as your codebehind language.
If you still do not want to use ASP.NET webforms framework to create a website but still like to use Vb.NET as the language, you may think about creating a WCF Service using VB.NET and Let your client non-asp.net web app consume it.
EDIT: After seeing your comment
I have been specifically banned from using is any tag starting
Consider ASP.NET MVC. There is no Server controls like what you have in webforms which has runat=server. You will be writing PURE HTML code and bind with some data as needed.
Well I suppose you could write a web server in VB.net that doesn't use ASP.net, but why?
Given you haven't had a specific restriction against using MVC, I'd look into that.
You don't necessarily have to use controls to make the website with ASP.NET. Use plain HTML and have your server side code just output text. Something like this:
<table>
<%= tableRow.toString() %>
</table>
You'll use a lot of string builders but it should accomplish what you're looking for.
MVC might be another alternative if you can persuade them that it's not actually doing any client side code. You're separating the HTML View (and any javascript if they're letting you use that) from the business logic and database logic.
Hope that helps some.

Sharing SQL CE 4.0 db and Entity Framework 4.0 between web project and winforms project

I have a web based application developed using MVC 3, Entity Framework 4.0 and SQL CE 4.0. It is used for showing off analysis results and data in charts on a web site. There is little to no data additions from web users in any way.
My second project is part of the same solution and is a basic Win Forms application in C#. Its main purpose is to analyse raw data and update the database for the web site. When I am happy with the system I am likely to automate this part.
I wanted to have a process where I ran the Win Forms based tools to update the database, then deployed the web project to the server, effectively updating the DB on the server.
The problem begins with referencing the Entity Framework objects in the Web App from the Win Forms project. The SQL CE db and Code First implementation of EF 4.0 resides inside the web project. I reference that project from the Win Forms project and for a short time I can use it for development. When I try to build the project and use the Win Forms app the reference goes away and everything fails. I have no idea why this is happening.
Any insight would be helpful.
Doug

Out of browser silverlight 4 application with local database that will run and install on windows or mac?

I am researching using silverlight 4 to develop a desktop application that can be installed from a browser window, now the tricky part is that I want a lightweight database embedded into the application. The database should install with the rest of the application and it should ideally work on both windows and mac systems. Originally I was thinking sqlite would be suitable for this but I have learned that it is not compatible with silverlight. Does anyone know of a solution for this?
There are some available silverlight databases such as:
siaqodb - uses LINQ, available for WP7 - commercial.
effiproz - available for WP7 - commercial.
Perst - open source.
These utilizes silverlight local storage, comes with their own database engine.
There is also Ninja Database Pro that works for Silverlight and Windows Phone 7:
http://www.kellermansoftware.com/p-43-ninja-database-pro.aspx
Nowadays SQL Lite is a viable option for SL4 / SL5.
You could also team that up with DevArt LinqConnect product (http://www.devart.com/linqconnect/) that is an EF / Linq-to-SQL like wrapper over SQL Lite.
I've also looked at alternatives Siaqo DB and Ninja DB (as mentioned by others).
While not exactly a database, the upcoming release of the Sync Framework will support offline caching for Silverlight 4 on the desktop/browser, and Silverlight on Windows Phone 7. As Liam Cavanagh mentions in this blog post before TechEd:
I have a TechEd session this week where I will be demonstrating all of this as well as how we will be extending the capabilities of the sync framework for creating offline applications, specifically allowing Silverlight, Windows Phone 7 and even non-MSFT platforms to be used for the clients.
Link

Handheld Development, Lazarus or Turbo Delphi.Net

I begin to program some handheld program as hobby, right now i currently have knowledge on Blackberry App (Java), Symbian S60 (PyS60) and J2ME
Something that i wanna learn was Windows Mobile/Pocket PC and iPhone development, but since i don't use Mac so i step to Windows Mobile/Pocket PC development
Here some question:
1. Which is better Lazarus or Turbo Delphi.Net?
2. Do both have some kind support of network access (GPRS, Wi-Fi, HSDPA, etc)?
3. Do both have database access, both remote database and standalone/embed database? like SQL Server 2005 CE?
4. Do i need some driver installed on Windows Mobile/Pocket PC to be able to work with SQL Server 2005 Developer on server i already have?
If possible answer point-by-point
Thanks
Lazarus has form designer built in for WinCE applications, Delphi 4.Net doesn't has one, also CG has stopped developing the Turbo Delphi line, and it's support .Net CF 1.1 only.
Maybe using Delphi Prism will be better option, because it's support the latest .net framework, and with the new MonoTouch it could be better option for future development with IPhone too.
Point 2 & 3, I don't have information about them, you could visit Lazarus forums and wiki to have more information, but for Delphi 4.Net it has support for all classes on the .Net framework CF.
4.If I remember correctly, the .Net CF has drivers for SqlServer Mobile edition and Sql Server, for example it has SqlCEConnection for mobile and SqlConnection for Regular Sql server edition.
I never tried Turbo Delphi .NET, but afaik CodeGear stopped that line, so I wouldn't start new development in it. I also heard that CF.NET was not officially supported and a bit ackward. As said I never used it, I hope that others will comment.
Lazarus core functionality works, but many more "outer" parts are not always tested on CE, and you will have to find stuff out yourself.
Roughly the same as under normal delphi/win23. Can access TCP/IP with Indy10 afaik, but to work with network connections you need api calls
sqlite is sometimes used. In theory all the db drivers should run if their client libraries are available to arm. The DB support should mostly be endian clean. However I don't know which ones are supported.
Sql Server variants are generally not supported by FPC, except via ODBC. And I don't know if CE has that.
Usually you need to have some client lib or a generalized DB connectivity lib ADO/ODBC/JDBC.
Browsing the lazarus/fpc wiki for CE topics could be a good next step. If you persist in CF.NET, I would migrate to VS, and not work with TD.NET.
If I would develop something for a handheld, I would create a webapplication. Only if you need to access the handheld data (pim, gps, ...) it makes sense to create a local running application.
But if you want to create something to run on the device, I would go for FPC / Lazarus as well.
Your questions has been answered so I'll reply with my opinions;
Lazarus: It gives you power of
native application, but it's not used
widely. Give it a try, see if it fits
your needs on the mobile device.
Perhaps report bugs and help its
development.
Delphi Prism + .NET
CF: Object-pascal alike .NET syntax
-which I do not like but that's just my opinion-. Here's a sample video
to get started. It lacks form
designer for .NET CF so if you stick
with it you'll use WinForms designer.
C# + .NET CF. It has really good
IDE for .NET CF development. This is
how I rolled for mobile device
development and I'm happy with it.
ie, if I have a problem the huge .NET
userbase most likely has the
solution.

Resources