Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Jumping to particular column in HTML table

Status
Not open for further replies.

DKL01

Programmer
Sep 14, 2000
233
US
Hi,

Is it possible to add data a to particular column (same row )in HTML table?

My asp page has HTML table with user names as column headers. If the backend doesn't return data for a particular user I need to skip that column in HTML table.

Thanks [sig][/sig]
 
Couldn't you simply skip over the user and not display anything for him/her if there aren't any associated records.

Barring that (all users are displayed) then
Code:
if recordforuser="" OR recordforuser=Null then
 response.write &quot;<td></td>&quot;
end if

or for a whole column (depends on how you're displaying the data)
Code:
if recordforuser=&quot;&quot; OR recordforuser=Null then
 response.write &quot;<tr rowspan=&quot; & numRows & &quot;></tr>&quot;
end if

Hope it helps, [sig]<p>Rob<br><a href=mailto:robschultz@yahoo.com>robschultz@yahoo.com</a><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
"Focus on the solution to the problem,<br>
not the obstacles in the way."<br>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~[/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top