Using collection object in ASP

Posted on 2003-02-25
Medium Priority
Last Modified: 2010-04-07

I am trying to use collection class in my WindowsScripting Component to fetch the record set from the database, but it didnt work. Can any buddy tell me how to use collection class in ASP.

Question by:Chintapalli
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Accepted Solution

Sejka earned 200 total points
ID: 8025958
create class derived from "CollectionBase" class
and add your own methods for inserting/removing/serching items to collection
for ex. :
public class myCollection : CollectionBase
 public PTValueCollection()
 public myValue this[string Name]
   return FindVal(Name);
 private myValue FindVal(string Name)
  myValue  tmp;
  for(int i=0;i<List.Count ;i++)
  tmp = (myValue ) List[i];
  if(tmp.Name == Name)
    return tmp;
  return null;

public class myValue
  public PTValue()
  public string Name;
  public string Value;
LVL 53

Expert Comment

ID: 9305696
This question has been classified abandoned. I will make a recommendation to the
moderators on its resolution in a week or two. I appreciate any comments
that would help me to make a recommendation.

Unless it is clear to me that the question has been answered I will recommend delete.  It is possible that a Grade less than A will be given if no expert makes a case for an A grade. It is assumed that any participant not responding to this request is no longer interested in its final disposition.

If the user does not know how to close the question, the options are here:



Featured Post

Video: Liquid Web Managed WordPress Comparisons

If you run run a WordPress, you understand the potential headaches you may face when updating your plugins and themes. Do you choose to update on the fly and risk taking down your site; or do you set up a staging, keep it in sync with your live site and use that to test updates?

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this short web based tutorial, I wanted to show users how they can still use the powers of FrontPage in conjunction with Expression Web 3.  Even though Microsoft eliminated the use of Web components, we can still use them with FrontPage and edit …
Objective of This Article In 1990’s, when I was a budding software professional, I had a lot of confusion about which stream or technology, I had to choose to build my career. In those days, I had lot of confusion like whether to choose System so…
The purpose of this video is to demonstrate how to manually back up a WordPress Database. This will be demonstrated using a Windows 8 PC. The Host used will be IPage.com Log into your Hosting account. IPage will be used for demonstration : Locat…
The purpose of this video is to demonstrate how to reset a WordPress password if you are locked out and cannot reset the password. A typical use would be if you cannot access the email to which WordPress would send the password recovery email to…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question