Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional 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 August 18th, 2006, 05:20 AM
Registered User
 
Join Date: Aug 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Regarding loop statement

I need pass some names from database table to a webpage by using loop
 and while doing that i dont want to pass the first name to the page.
 Is there any condition statement i can use to do that?
  Thanx in advance........

With Regards
Kalepsh Mahajan
 
Old August 18th, 2006, 12:39 PM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Depending on how you return the data from the database will depend on how you display the data, below is how you would loop through the data in a datatable, selecting only the column of data that you want to display.

foreach(DataRow dr in dt.Rows)
{
 Response.Write(dr["PassValue"]);
}

"The one language all programmers understand is profanity."
 
Old August 30th, 2006, 04:55 AM
Authorized User
 
Join Date: Aug 2006
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to ADMystery Send a message via Yahoo to ADMystery
Default

Dear,
  It's not clear at all what you are exactly trying to do, are you displaying them using Response Object and constructing HTML Table for example or displaying them in a datagrid, what language are you using C# or Vb.NET, what Data access method you use Connected or Disconnected model (Command returning data in a DataReader or DataAdapter returning data in a DataSet).

please clarify this, to help me help you if I can :-)
Regards
Ahmad Mohsen





Similar Threads
Thread Thread Starter Forum Replies Last Post
Do while loop skrj02 Excel VBA 4 November 6th, 2006 11:30 PM
Do While loop within a Do While loop Sibrovvs Beginning PHP 0 October 15th, 2006 10:39 AM
loop crmpicco Classic ASP Basics 1 February 12th, 2005 09:12 PM
For....Loop kliu9 Excel VBA 5 February 10th, 2005 06:43 AM
nested while loop doesn't loop hosefo81 PHP Databases 5 November 12th, 2003 08:46 AM





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