Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics 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 September 3rd, 2010, 05:38 AM
Registered User
 
Join Date: Sep 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Filling a grid

Right then, hopefully I am posting this in the right place (using VB.NET 2003 mainly asp). I usually get by just googling my problem but not in this case ;)

I have user info from a database containing basic profile info. Name, address, hobbies etc. And a profile picture.

What I want is to make a little 'get to know each other game'. The idea is to separate the user info from the picture (on the html they get to see, as the data is already separate in the database). And post both randomly in two 3x3 grids. Also if there are more then 9 users, it needs to randomly select 9 from the entire list.

I am a beginning programmer and arrays have always confused me a bit and there is so much randomness in this little puzzle that I am getting swamped.

I can map it out in my head but putting it to code is eluding me.
What I have in my head btw: Get 9 out of x random users. Assign a random unique number (1-9 or 0-8 whatever) to them that corresponds with a place on the grid and fill the grid based on that.

Any help?

EDIT: Shuffling arrays seems to be popular but the picture still needs to be traceable to the info, taught I should mention that.

Last edited by Erik-Jan; September 3rd, 2010 at 05:59 AM..




Similar Threads
Thread Thread Starter Forum Replies Last Post
filling a textarea droidman Visual Basic 2008 Essentials 0 July 3rd, 2009 01:52 PM
filling the screen darkhalf CSS Cascading Style Sheets 0 September 26th, 2006 02:29 PM
filling of datagrid rahulyadav23 .NET Framework 2.0 2 June 29th, 2005 06:24 AM
filling in a buffer JLN VB.NET 2002/2003 Basics 2 July 8th, 2004 08:06 AM
filling of dataset abhimca_1 ADO.NET 1 August 6th, 2003 08:23 AM





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