Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 16th, 2005, 11:14 AM
Authorized User
 
Join Date: Feb 2005
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default Scheduled task

I am trying to figure out how to call a page of code to update a datagrid on my site, using windows task manager. Can i schedule a page with an .asp extension or must i save it as an .exe?

I am using the code below to update the database at a certain time, but it wont add the record to the table. I have tried scheduling it as .asp and .exe but the table wont update. Would really appreciate any help, thanks in advance.



<%
  Dim rsUsers, strUserId
  Set rsUsers = Server.CreateObject("ADODB.Recordset")
  rsUsers.Open "Members", objConn, adOpenForwardOnly,adCmdTable

  rsUsers.AddNew
  rsUsers("TraderName") = "works"
  rsUsers("Password") = "works"
  rsUsers("Firstname") = "works"
  rsUsers("Surname") = "works"
  rsUsers("EmailAddress") = "works"
  rsUsers("MobileNumber") = 999
  rsUsers("EmailUpdates") =True
  rsUsers("SmsUpdates") = false
  rsUsers("CashBalance") = 100000
  rsUsers("PortfolioValue") = 100000
  rsUsers("Active") = false
  rsUsers.update
%>






Similar Threads
Thread Thread Starter Forum Replies Last Post
How to add task in Scheduled Task programatically amitjoshipune C# 2 July 31st, 2008 05:42 AM
Getting the "Last Result" from a Scheduled Task? janama .NET Framework 2.0 1 April 29th, 2008 12:37 AM
In program Scheduled Task ginoitalo Pro VB 6 4 August 31st, 2004 11:32 PM
[c#]scheduled task maddonuts General .NET 1 July 7th, 2004 11:53 AM
Scheduled Task Ben Access VBA 1 February 24th, 2004 02:05 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.