new to web design, how do i go about this?
I have been using visual basic 6.0 for about a year now, and i thought i'd try my hand at asp.net. so i have decided to do a site for my local oztag competition.
and ill probably be asking a trillion msg's on here.
At the moment im trying to make a 'team registration' page, basically you enter in a team name and how ever many Player id's into a web form. because i dont know how many players a new team will have i thought i would have something at the top of the page like this
"How many Players will be in the team"
[textbox] [button]
and once clicked, the page will reload with the form, and x amount of textboxes (repeating down the page) for each player in the team.
So how do i go about this?
i was thinking, test if the page is being loaded for the first time (using that ispostback thing) and if it is, pop the question and hide anything else on the page?)
and once the user enters the amount of players, and presses the enter button, the page will reload, and reveal the form below with x amount of player boxes. should i use a repeater for this? if so, what do i bind to!?
or should i try and dynamically create player boxes using code, but how do i do that, while also dynamically creating the table, (sounds hard!)
i initially tried to use the repeater, and perhaps just bind to an array with x amount of spots. but that seems kinda dodgy.
heck the whole set up is kinda dodgy, do i need 2 seperate pages? what should i do!?
haha i cant believe i got stuck on the very first page i try and make.