Click here to Skip to main content
15,912,205 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralGRIDVIEW: make cell visible only when checkbox is checked Pin
allenpotter5-Dec-07 11:23
allenpotter5-Dec-07 11:23 
GeneralLogin control error Pin
solarthur015-Dec-07 7:22
solarthur015-Dec-07 7:22 
Generalnested grid Pin
wasimsharp5-Dec-07 6:55
wasimsharp5-Dec-07 6:55 
GeneralRe: nested grid Pin
Fred_Smith5-Dec-07 7:02
Fred_Smith5-Dec-07 7:02 
GeneralRe: nested grid Pin
Member 38798815-Dec-07 17:09
Member 38798815-Dec-07 17:09 
GeneralRe: nested grid Pin
Sathesh Sakthivel5-Dec-07 17:28
Sathesh Sakthivel5-Dec-07 17:28 
GeneralUser controls in IE - Runtime Security Policy / Code Groups Pin
RichardGrimmer5-Dec-07 5:46
RichardGrimmer5-Dec-07 5:46 
GeneralPerforming Calulations Upon Data Pin
Paul McGann5-Dec-07 5:37
professionalPaul McGann5-Dec-07 5:37 
I have a small problem that i can't figure out:

I have a for loop that looks something like the:

for i=0 to rs.rows.count - 1

sqlstring = "Select * From [User] Where Age=" & i &"
rs2.open sqlstring, conn

for each x in rs2
Height = Height + rs.rows(x).items("Height")
next
'This is the part i'm having now i need to divide the height by the total number of rows this will hopefully give me the average height for people in that age group. This will then be inserted into a new Table with all the average heights.
Next

If anyone can see where I'm going wrong please can you help. Any advice is most appreciated.
GeneralRe: Performing Calulations Upon Data Pin
J4amieC5-Dec-07 6:10
J4amieC5-Dec-07 6:10 
GeneralRe: Performing Calulations Upon Data Pin
Paul McGann5-Dec-07 7:46
professionalPaul McGann5-Dec-07 7:46 
GeneralRe: Performing Calulations Upon Data Pin
Pete O'Hanlon5-Dec-07 10:53
mvePete O'Hanlon5-Dec-07 10:53 
QuestionGridView - Urgent Pin
Kavita5-Dec-07 5:20
Kavita5-Dec-07 5:20 
GeneralRe: GridView - Urgent Pin
Paul McGann5-Dec-07 5:39
professionalPaul McGann5-Dec-07 5:39 
GeneralRe: GridView - Urgent Pin
cisco21035-Dec-07 5:42
cisco21035-Dec-07 5:42 
QuestionRe: GridView - Urgent Pin
Kavita5-Dec-07 22:43
Kavita5-Dec-07 22:43 
AnswerRe: GridView - Urgent Pin
sukkureddy27-May-08 20:32
sukkureddy27-May-08 20:32 
GeneralASP placeholder control: Spaces between divs Pin
edukulla5-Dec-07 5:19
edukulla5-Dec-07 5:19 
GeneralUpdatePanel issue Pin
cisco21035-Dec-07 4:38
cisco21035-Dec-07 4:38 
GeneralRe: UpdatePanel issue Pin
cisco21035-Dec-07 6:13
cisco21035-Dec-07 6:13 
GeneralAccessing other site from portal Pin
rp_suman5-Dec-07 4:34
rp_suman5-Dec-07 4:34 
GeneralCreate ASPX pages on the fly Pin
coolestCoder5-Dec-07 4:22
coolestCoder5-Dec-07 4:22 
GeneralRe: Create ASPX pages on the fly Pin
Ken Mazaika5-Dec-07 13:23
Ken Mazaika5-Dec-07 13:23 
GeneralIntegrating with Active Directory Pin
edukulla5-Dec-07 4:19
edukulla5-Dec-07 4:19 
Generalhi Crystal report Error Pin
wasimsharp5-Dec-07 4:19
wasimsharp5-Dec-07 4:19 
GeneralAccess EventArgs from PageLoad Pin
Mircea Grelus5-Dec-07 3:16
Mircea Grelus5-Dec-07 3:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.