[thelist] Re: CGI.pm for ASP?

Andy Waite Andy.Waite at company-net.com
Fri May 4 11:01:16 CDT 2001


>> Does any know if there a ASP (VBScript) equivalent (or anything
>> similar) to the Perl CGI.pm function library?
>
>What features are you looking for? As Steve pointed out, some of it is
>implemented in the build-in objects. Other things might be available as
>third-party components or just plain code snippets.

I'm mainly looking for the functionality for writing out HTML. I've actually
written a sort of function/class library for the things I need, but I was
just wondering if I was duplicating something that's already been done.

For example, to display a listbox to choose a month (with the current month
selected by default), I can use code something like this:

Dim objMonth
Dim intMonthCount
Set objSelMonth = New HTMLSelect ' the class i've written #included
elsewhere
With objSelMonth 
   .Name
   .Selected = Month(Now)
   For intMonthCount= 1 To 12
      .Add intMonthCount, MonthName(intMonthCount)
   Next
   Response.Write .Draw
End With
Set objSelMonth = Nothing



--
Andy Waite <andy.waite at company-net.com>
Database Web Developer
Company Net <http://www.company-net.com>
Tel: +44 (0)131 559 7500 Fax: +44 (0)131 559 7501
>




More information about the thelist mailing list