-
Dynamic Boxes
Hi im really new to VB.net and ASP.net and im not even sure if im posting in the right place.
I would like to know if the following can be done and if so, then how.
Currently, I am writing a program that creates a table (in visual.net in the web application mode, dont ask me why : )
I have given a default of 6 different columns that each table can have at most at the moment. Currently, my code works great but now I am trying to make my columns dynamic.
After 6 columns, the user has the option to add more columns if he/she wishes. I want to create a drop box (default value 0) where if a person chooses an integer greater than 1, a few more textbox fields open up so he may type in the names of additional columns.
Thanx
I hope someone can help me out. I'm very new to this.
-
not to be rude, but if your only new to VB then shouldn't you try something, a little...
granted I do jump in the deep end myself, but its always a struggle to get out.
have you tried to do this in VB6 with a control array?
you can't do this in .Net, but I think there is a way to make vb6 arrays in .net
-
im not offended ...
im not creating this out of fun really.
i work at a place where they are using Visual Studio .NET and they want me to find a way to do what i just asked for .. this isnt something im really doing out of choice cause id rather be learning the thing myself ..
anyway, so far ive managed to connect databases, make login pages with security, and learnt to do a whole bunch of different queries. Also managed to make an insert page as well as a create table page. Now i need to find a way in which i can let the user specify how many columns he wants in a way so he doesnt need to go to a second page nor have the page itself get refreshed.
-
Geez,
Nothing like dropping you at the deep end is there :)
anyway, I can't help you really, so good luck in your quest for the answer LOL :D
-
If you are wanting to use a control array. Like the guy before said you can not with VB.Net. But you can emmulate a control array. This Link might help.
http://www.planet-source-code.com/vb...1036&lngWId=10
This one might helpo also.
http://www.planet-source-code.com/vb...=880&lngWId=10
This one is straight from microsoft on how to get around the control array.
http://msdn.microsoft.com/library/de...albasicnet.asp
Hope these help