| | |
changing part of URL PATH
Please support our VB.NET advertiser: $4.95 a Month - ASP.NET Web Hosting – Click Here!
![]() |
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.
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
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:
Regards
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:
VB.NET Syntax (Toggle Plain Text)
Dim i As Integer Dim iNumTables As Integer = dstVeh.Tables.Count For i = 0 To iNumTables - 1 Dim strTableName As String = dstVeh.Tables(i).TableName ' here you have the table name, so now compare it to "od_minicard2_..." ' to make sure it is the right table. 'if it is the right table, then get the data from dstVeh.Tables(i) Next
Regards
![]() |
Similar Threads
- Downloading a file (ASP.NET)
- Variables in the URL - and how to get them (HTML and CSS)
- LWP HTML ::TokeParser - running against a bulletin board (Perl)
- Get listed on google (Growing an Online Community)
- Script for have different radio button take you to different page (Existing Scripts)
- Problems with Windows Script Encoder & #include directive (ASP)
- Need Desperate help against trojan (Windows NT / 2000 / XP)
Other Threads in the VB.NET Forum
- Previous Thread: vb or vb.net help please
- Next Thread: Going Insane!!!
| Thread Tools | Search this Thread |
.net .net2008 2005 2008 access account arithmetic array basic beginner browser button buttons center check code combo component crystalreport cuesent data database datagrid datagridview date datetimepicker design designer dissertation dissertations dissertationtopic dropdownlist excel fade file-dialog filter folder forms ftp generatetags hardcopy html images input insert intel listview monitor net networking number open output panel passingparameters picturebox picturebox1 picturebox2 port print printing problem problemwithinstallation project searchvb.net select serial settings shutdown socket sqlserver survey tcp temperature text textbox timespan toolbox transparency trim txttoxmlconverter updown user usercontol vb vb.net vb.netformclosing()eventpictureboxmessagebox vb2008 vbnet view visual visualbasic.net visualstudio visualstudio.net visualstudio2008 web winforms wpf wrapingcode year





