C Board  

Go Back   C Board > General Programming Boards > C# Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 03-06-2008, 03:10 PM   #1
Registered User
 
Join Date: Nov 2007
Posts: 14
ASP.NET question (looping inside a table)

I know it's a C# forum,
but i have a problem making a ASP.NET website using C#

i have a SqlConnection in C#,
and i want to make a table using the data from that connection,

(i know php) so i created a table and inside that table i wrote
Code:
<% for (int i = 1; i < 10;i++)
          { %>

asp html script for row and cell comes here
then - <% data to import from the connection using "i" as reference %>
close row 

then ending the for loop - <% } %>
looping like this worked outside a table...but inside a table VS2005 says i cant use code...

so if i cant use code - how can i insert data from tables or datatables into the table rows?
(that's how it's done in php.....)

Thanks
Roy
Rainbowinblack is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Frames in ASP.net Web Form (I'm using Visual C# .net) Grayson_Peddie Networking/Device Communication 0 09-20-2003 01:57 PM
HELP:Hasing Table Amber_liam C++ Programming 2 06-20-2002 04:25 AM
what does this warningmean??? kreyes C Programming 5 03-04-2002 07:53 AM
C++ looping question deepthought C++ Programming 2 11-18-2001 01:33 PM
just a question this time korbitz C Programming 13 11-18-2001 06:21 AM


All times are GMT -6. The time now is 01:57 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22