changing part of URL PATH

Please support our VB.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Aug 2007
Posts: 63
Reputation: bcm is an unknown quantity at this point 
Solved Threads: 0
bcm's Avatar
bcm bcm is offline Offline
Junior Poster in Training

changing part of URL PATH

 
0
  #1
Sep 14th, 2007
I am doing a project where I am retriving data from a table minicard of a site.
I am using path http://www.cric8.com/od_minicard2.htm
The table has a number od_minicard2_1355
The problem is that when there are two table it pull data of only one table.
how can I get data of both tables say od_minicard2_1355 & od_minicard2_1356
The name of table always increases by one 1355,13356,1357,etc.
BCM
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 85
Reputation: williamrojas78 is an unknown quantity at this point 
Solved Threads: 4
williamrojas78's Avatar
williamrojas78 williamrojas78 is offline Offline
Junior Poster in Training

Re: changing part of URL PATH

 
0
  #2
Sep 14th, 2007
Hi

You probably will have to find the number of tables in the dataset, and then go into a loop to retrieve the data. If the tables always start with the "od_minicard2_xxxx" then it is probably a good idea to check the name of the table to make sure you are reding the correct data.

Somthing like this:

  1.  
  2. Dim i As Integer
  3. Dim iNumTables As Integer = dstVeh.Tables.Count
  4.  
  5. For i = 0 To iNumTables - 1
  6. Dim strTableName As String = dstVeh.Tables(i).TableName
  7.  
  8. ' here you have the table name, so now compare it to "od_minicard2_..."
  9. ' to make sure it is the right table.
  10.  
  11. 'if it is the right table, then get the data from dstVeh.Tables(i)
  12.  
  13. Next

Regards
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC