471,315 Members | 2,241 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,315 software developers and data experts.

best way to proceed

Hello all
I need to build a web form that will allow user to enter database
table column definitions. Each row on the form would contain column
name, data type (chosen from a drop down list), size (if applicable)
and other wonderful attributes. I will then take this input and build
a CREATE table statement.

I am using C# in vs2003, .net 1.1

I have been reading through several groups here to get ideas, but
really dont know what would be best.

One idea is to use a datagrid, that would initially have one empty row
with blanks or drop down lists as needed in each field (of grid). User
would fill in each field in grid then start a new (dynamically added)
row in the grid.

or another idea is
present 1 textbox, dropdownlist,etc as needed for describing one table
column and then when finished filling those in, generate an HTML table
display showing the new row of information that was just added
(representing 1 table column), while displaying new empty text
boxes,etc again to begin creating the next column definition.

Should be able to have a check box or delte button on each row to
delete an entry if desired.
Of course I want it to do everything but not be complicated ;o)

Any ideas, input, links, (already written code :o) )
is appreciated.
Jeff

Dec 7 '05 #1
1 1116
Hi,

Is this a web app?

You can use any list control as long as it allows you to make changes to
the rows (or place any kind of control you want) a datagrid may be useful.

you then have to iterate in the control to each row and see if any change
was done.

you can add a button "Add Column" to add a new row.
cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Jeff User" <je*******@hotmail.com> wrote in message
news:ff********************************@4ax.com...
Hello all
I need to build a web form that will allow user to enter database
table column definitions. Each row on the form would contain column
name, data type (chosen from a drop down list), size (if applicable)
and other wonderful attributes. I will then take this input and build
a CREATE table statement.

I am using C# in vs2003, .net 1.1

I have been reading through several groups here to get ideas, but
really dont know what would be best.

One idea is to use a datagrid, that would initially have one empty row
with blanks or drop down lists as needed in each field (of grid). User
would fill in each field in grid then start a new (dynamically added)
row in the grid.

or another idea is
present 1 textbox, dropdownlist,etc as needed for describing one table
column and then when finished filling those in, generate an HTML table
display showing the new row of information that was just added
(representing 1 table column), while displaying new empty text
boxes,etc again to begin creating the next column definition.

Should be able to have a check box or delte button on each row to
delete an entry if desired.
Of course I want it to do everything but not be complicated ;o)

Any ideas, input, links, (already written code :o) )
is appreciated.
Jeff

Dec 7 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by MickeyBob | last post: by
8 posts views Thread by Ian Davies | last post: by
10 posts views Thread by jaYPee | last post: by
2 posts views Thread by Jeff User | last post: by
10 posts views Thread by rAinDeEr | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.