Windows CE Networking Team WebLog

Windows CE Networking - from NDIS to TCP to SOAP to VOIP and everything in between.

Windows CE ASP Pages and System Access

I've been asked many times on the newsgroups how to access files from an ASP page running on Windows CE. Or how to create a process, or get at the registry, or any other of a bunch of system level actions. The answer to these questions is that you can't unless you do some work.

On desktop Windows IIS, there are a bunch of ActiveX objects that let you access the system directly. Unfortunately Windows CE does not have any of them. We do not foresee implementing them in a future release, either. That's not much consolation if you're writing an ASP page that needs low level access, so what can you do?  I see 2 options.

(1) Implement the parts of the Windows Script object(s) yourself that you need as ActiveX controls. There's nothing preventing you from doing this on CE. If you know COM already it shouldn't be that hard to implement just the portions you need.

(2) Don't access files "directly" from your ASP script. Instead, put much more of the system interaction logic into your ActiveX object. So rather than having ASP page do "var fooBarFile = FileSystem.Open("\foobar.txt"); fooBarFile.Read(); process fooBarData() in JScript") have your ActiveX control be called from ASP as "ReadAndProcessFile("\foobar.txt") and have the C++ code do *all* the work; not just reading in the file but also the processing.

[Author: John Spaith]

Published Monday, August 15, 2005 5:19 PM by cenet
Filed under:

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

 

David Kesselring said:

I apologize that this is not in the proper place but do any of you know where I can find a sample WIfi driver for CE5? I cannot seem to find one on the ms site or the web.

Thank you,
David Kesselring
dkesselring@taprootsystems.com
August 16, 2005 2:15 PM
 

cenet said:

David - the newsgroups are a better option for questions like this. You may try microsoft.public.pocketpc.developer.networking and/or microsoft.public.windowsce.platbuilder. John
August 17, 2005 7:02 PM
 

ASP website on WinCE device to upload files | keyongtech said:

January 22, 2009 12:28 AM

Leave a Comment

(required) 
(optional)
(required) 

  
Enter Code Here: Required
Submit

© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Microsoft
Page view tracker