Hi,
I am using an iPaq running Windows Mobile 2003 to contact a laptop (acting a
s a web server). I am writing an app in VS .NET 2003 (VB.NET).
I wish to open a url without using a built-in hyperlink data-type as I need
to crunch some code to determine how to populate the page (on load) I wish t
o open.
I have tried this;
page.Controls.Add(New LiteralControl("<script
language=javascript>window.open
(""http://www.microsoft.com"",""PageName"",""width=424,height=768,top=0,left
=525,toolbar=yes,location=yes,directorie
s=yes,status=no,menubar=yes,scrollba
rs=yes,resizable=yes"")</script>"))
which works locally on the laptop, but not on the iPAQ.
I have tried;
system.diagnostics.process.start("IEXPLORE.EXE", "http://myurl")
which compiles, but does nothing.
Am I missing something?
Most grateful for any help, thanks,
JohnAFAIR the System.Diagnostics.Process class is not supported in the compact
framework, and that would be why the last method you tried is not working.
I did find this on Google groups though
http://groups.google.com/groups?q=L...tngxa08&rnum=10
Basically it walks through using the CreateProcess API call to run a process
withina C# app on a PocketPC.
Hope that helps,
---
Peter Wright (www.petewright.org)
Author of ADO.NET Novice To Pro
From Apress. www.apress.com (and 10
other doorstops from Wrox)
"JohnG" <anonymous@.discussions.microsoft.com> wrote in message
news:18DE7ABD-57E4-478D-AC65-4C727889226C@.microsoft.com...
> Hi,
> I am using an iPaq running Windows Mobile 2003 to contact a laptop (acting
as a web server). I am writing an app in VS .NET 2003 (VB.NET).
> I wish to open a url without using a built-in hyperlink data-type as I
need to crunch some code to determine how to populate the page (on load) I
wish to open.
> I have tried this;
> page.Controls.Add(New LiteralControl("<script
> language=javascript>window.open
>
(""http://www.microsoft.com"",""PageName"","" width=424,height=768,top=0,leftrkred">
>
=525,toolbar=yes,location=yes,directorie
s=yes,status=no,menubar=yes,scrollba[col
or=darkred]
> rs=yes,resizable=yes"")</script>"))
> which works locally on the laptop, but not on the iPAQ.
> I have tried;
> system.diagnostics.process.start("IEXPLORE.EXE", "http://myurl")
> which compiles, but does nothing.
> Am I missing something?
> Most grateful for any help, thanks,
> John
>[/color]
Pete,
Thanks for your suggestion, but it's all gobbldygook to me.
I only really understand VB.
John
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment