Mobile Link vs. Command Objects
Messages   Related Types
This message was discovered on ASPFriends.com 'aspngmob' list.


Thomas L. Evans
I have a Mobile Internet Toolkit (MIT) web that currently uses a Link to
reference a file to be downloaded (PDF, MS Word document or MS Excel
Spreadsheet). This all work great on my IPAQ Pocket PC 2002 including
features to Open after download and redirection of storage location.

However, I need to place some addition security and audit logic around the
request. I have changed the Link to a Command object. I have tried
everything that I can think of to get the same functionality (i.e.:
Response.Redirect, WriteFile) and nothing works. In some cases the file is
simply listed in the browser, in other cases the IPAQ hangs.

In my desktop oriented version, I have used WriteFile and by setting the
Content-Type and Content-Disposition and achieved the desired results.

Any Ideas?

Thanks in advance!
--
Thomas L. Evans

TLEvans Consulting
Click here to reveal e-mail address

Reply to this message...
 
    
Anil John
Thomas,

Why don't you try something along the lines of...

Anil

=============
<%@ Page Inherits="System.Web.UI.MobileControls.MobilePage" %>
<%@ Register TagPrefix="Mobile" Namespace="System.Web.UI.MobileControls"
Assembly="System.Web.Mobile" %>

<script runat="server">
void cmdDownload_Activate(Object sender, EventArgs e) {
// Your logic here...
ActiveForm = form2;
}
</script>

//Mobile Page
<Mobile:Form runat="server" id="form1">
<Mobile:Command runat="server"
Text="Download"
OnClick="cmdDownload_Activate" />

</Mobile:Form>

<Mobile:Form runat="server" id="form2">
<Mobile:Link runat="server"
NavigateURL="YourPDF.pdf">
Your PDF Here
</Mobile:Link>
</Mobile:Form>
===================

-----Original Message-----
From: Thomas L. Evans [mailto:Click here to reveal e-mail address]
Sent: Saturday, February 16, 2002 7:10 AM
To: aspngmob
Subject: [aspngmob] Mobile Link vs. Command Objects

I have a Mobile Internet Toolkit (MIT) web that currently uses a Link to
reference a file to be downloaded (PDF, MS Word document or MS Excel
Spreadsheet). This all work great on my IPAQ Pocket PC 2002 including
features to Open after download and redirection of storage location.

However, I need to place some addition security and audit logic around the
request. I have changed the Link to a Command object. I have tried
everything that I can think of to get the same functionality (i.e.:
Response.Redirect, WriteFile) and nothing works. In some cases the file is
simply listed in the browser, in other cases the IPAQ hangs.

In my desktop oriented version, I have used WriteFile and by setting the
Content-Type and Content-Disposition and achieved the desired results.

Any Ideas?

Thanks in advance!
--
Thomas L. Evans

TLEvans Consulting
Click here to reveal e-mail address

| [aspngmob] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngmob.asp = JOIN/QUIT
| http://www.asplists.com/search = SEARCH Archives

Reply to this message...
 
 
System.EventArgs
System.Web.UI.MobileControls.MobilePage




Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com