ASP Code
  Home arrow ASP Code arrow Getting Remote Files With ASP Continued
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Silverlight  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
ASP Web Hosting  
ASP.NET Web Hosting 
Windows Web Hosting
 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
ASP CODE

Getting Remote Files With ASP Continued
By: Justin Cook
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 150
    2005-08-16

    Table of Contents:
  • Getting Remote Files With ASP Continued
  • Let’s Code
  • PerformUpdate() Explained
  • ProcessFile() Explained
  • Conclusion

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Getting Remote Files With ASP Continued


    (Page 1 of 5 )

    This second article will show how to send remote binary files, multiple files, and additional information with only ASP and XML. This is an incredibly powerful technique, and the implementation in this two part series will deal with automatically updating a deployed ASP web application.


    There is a file available for download for this article here.

    Introduction

    The first article in this two-part series handled the client portion of transmitting files – even binary files – using only XML and ASP. This is a very powerful extension to my previous tutorial on how to retrieve remote pages and save them locally. Of course all the work we discussed in the last article is no good on the client side, without a server to process the request and encode the files to send back to the client.

    Once again, this article is derived from code used for an impressive ‘auto-update’ feature to a popular e-commerce solution, Mall23 (http://www.mall23.com/store/Default.asp?vf=14). The deployed versions of the application can query the master server for updated versions, and download and install any modified files. Make sure you’ve read the previous article on how to send the request, process the response, and save the files.

    But how does the server actually encode and send the files? Well, the first thing we start with is a query from the client application. As I mentioned previously, the ‘client’ is technically a server-based web application, but it is referred to as a client of the master application. This query can be any data you’d like to send the server, but in our example, the client is sending the sGenKey (license key) and the sCurrentVersion (the version the client is currently running).

    It is advantageous to transmit a license key, as it can be checked against your database to validate it. This way you can ensure that the license accompanies software that has been paid for, and that the client’s auto-update subscription hasn’t expired. You could even match this to server names, to ensure that pirated versions of your application aren’t being leaked out. I’ll leave that up to your creative mind!

    More ASP Code Articles
    More By Justin Cook


       · Hi, this is just a note to all readers: hope you enjoy my article!
       · I need to be able to browse images at the computer and uplodade to the web page, can...
       · no, i would just use ASPupload for that
       · I love the article and it was very informing. Is there a way to accomplish the same...
     

    ASP CODE ARTICLES

    - ASP Forms
    - ASP: The Beginning
    - Getting Remote Files With ASP Continued
    - Inbox and Outbox Manipulation in ASP
    - Relational DropDownList Using VB.NET
    - Ad Tracking URL Hits
    - Use ViewState to display one record per page...
    - Send Email using ASP.NET formatted in HTML
    - ASP File Explorer
    - ASP/XML Interview questions by Srivatsan Sri...
    - Various methods of setting Date values to a ...
    - Conditional DataGrid Item and using checkbox...
    - Fill .NET Listbox with SQL DataReader
    - Filling Dropdown box using Code-Behinds in C#
    - FLAMES code sample written in .NET What is F...





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 4 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek