Last post Aug 23, 2013 12:19 AM by Rion Williams
Aug 22, 2013 07:21 PM|psmcintyre|LINK
I am remakeing this program in asp.net c# using visual stuido .net. I just need some genral advice about it. The program tracks the progress of characters and monsters as they progress through rounds in a game. I have all these text boxes.. What is better
to do? is it better to make these textboxes server side as needed as the user adds more monsters or players. Or is it better to make a set amount of text boxes. Previously I saved the data by sterlizing my varibles to a raw data file. Would it be bettter to
make new xml files for each save file or a new data base table? In my windows program I had all the text boxes prenamed and pre placed and simply kept them invisible until more were needed. I am unsure how to best make a table of textboxes on the fly... OR
is there some other way to have a table of inputs .. besides using textboxes. For instance would it be better to have some sort of databound data grid using a data base? If the textboxes are made server side will there be a problem with them dissapearing every
time someone hits a button?
EDIT. I have already made this program in windows .. now I am remaking it as a web app as some people who are intrested in using do not use Windows.
Aug 23, 2013 12:19 AM|Rion Williams|LINK
Regarding the actual grid issue itself, you'll likely want to use an array to handle each of the "tiles" within the grid accordingly and use the tiles to determine the specific positions of each of your objects / characters etc.
Within a Windows Application, like you have demonstrated, this wouldn't be terribly difficult as you could simply "draw" the necessary elements on your application and name them accordingly to coorespond to specific array values within your code-behind.
Within a Web-based environment, you'll likely want to use HTML to handle this or at least organize it. You may want to consider using a table to actually plot out the sections of your "grid" and placing a textbox or another Control of your choosing within
each of the cells of the table to effectively create your Grid :
(If you are actually working on a Windows Application, you are going to find much better assistance over on the
MSDN Desktop Applications Forum)