473,406 Members | 2,620 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 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
2 1001
I would use a datagrid and an in memory collection of custom objects
(that have col name, data type, size etc properties).

Then bind the in memory collection on each post back, doing this allows
you to use the add, delete, edit command of the datagrid, of course you
still have to write the logic

Using the datagrid gives you a structured way of presenting, adding,
deleting and editing the data, you don't need to think about this your
self then

I'm guessing this is for an intranet so I won't go on about security
issues of this

Dec 7 '05 #2
Why not just buy a web based tool like
http://www.mylittletools.net/scripts/en/home/

You could surely tweak the display of
some of the pages to suite your needs.

--
Robbe Morris - 2004/2005 Microsoft MVP C#
http://robbemorris.blogspot.com

"Jeff User" <je*******@hotmail.com> wrote in message
news:76********************************@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 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: MickeyBob | last post by:
I want to develop a web application that displays real- time data. I'm thinking that a typical web form would have between 25 to 75 values that needed to be updated every second or so. The...
8
by: Ian Davies | last post by:
Hello I am trying to run a few INSERT queries only if the user clicks 'continue' in a <a href> The queries takes variables created from SELECT queries. I have tried to acheive this by putting The...
10
by: jaYPee | last post by:
I have a function that call a stored procedure which performs an insert command. now i want to refresh the dataset so that the newly inserted data will be available to my datagrid I have tried...
2
by: dbuchanan | last post by:
Hello, Windows forms & database What are the considerations when choosing how to display reference information from the calling form? What is recommended? Table1 is the parent of Table2. ...
1
by: Jeff User | last post by:
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...
10
by: rAinDeEr | last post by:
Hi, I am trying to create around 70 tablespaces for around 100 tables.. Am using DB2 UDB 8.2 in Linux environment... This is one i generated through Control centre.... CREATE REGULAR...
9
by: raylopez99 | last post by:
What's the best way of implementing a multi-node tree in C++? What I'm trying to do is traverse a tree of possible chess moves given an intial position (at the root of the tree). Since every...
3
by: venujune6 | last post by:
Hi All, I have a C++ on windows code with no underlying documents. I need to produce the Technical specification for this code, explaining each and every function in the program in terms of both...
6
by: jeddiki | last post by:
I am writing a little script that will improve authors writing skills by finding repeated phrases in the text. The text of a chapter will average about 10,000 words, however, I could reduce the...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.