ASP Code
  Home arrow ASP Code arrow Page 2 - 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 - Let’s Code


    (Page 2 of 5 )

    What we need to do first is retrieve and parse the request from the query string. Then you can add in whatever simple or complex license checking algorithm you want in the indicated space. Then we call the subroutine - called PerformUpate() - that creates XML to return to the client.

    Dim sGenKey, sCurrentVersion, fsoFileObject, objStream, xmlDOMDocument

    If ( Request.ServerVariables("HTTP_METHOD") = "GET" ) Then

          sGenKey           = Trim(Request.QueryString("sGenKey"))

          sCurrentVersion   = Trim(Request.QueryString("sCurrentVersion"))

         

          ' do processing here to validate the License Key

         

          Set fsoFileObject = CreateObject("Scripting.FileSystemObject")

          Set objStream     = Server.CreateObject("ADODB.Stream")

          Set xmlDOMDocument= Server.CreateObject("Msxml2.DOMDocument.4.0")

          Call PerformUpdate()

         

          Set fsoFileObject = Nothing

          Set objStream     = Nothing

          Set xmlDOMDocument= Nothing

    End If

    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 3 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek