473,395 Members | 1,442 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,395 software developers and data experts.

Databases and Classes

I'm trying to write a database application from the ground up. To keep
this example simple lets only talk about the customer table. Lets say that
it has a phone, firstname, lastname and address fields in it. I would like
to setup a class or some mechanism to control the data being written so that
for example, I can format the phone number correctly based on parameters the
user sets up and have all the fields upper case.

However, I would like to set this up in a way that its not overly
complicated to display records in a grid for example, or in edit boxes on a
windows form.

By the way, this is 100% windows C# based app, no ASP stuff at the moment.

The reason I'd like to do this should be obvious, but I'd like to set up
this system so that when the GUI guys get ready to drop a field and link it
to the phone number field in my customer table, it will automatically taken
on the knowledge of how to format the phone number properly. And fields
linked to the other fields will know that they need to be uppercase.
WIthout the designer having to do anything at all. I'd like them to only
worry with GUI stuff, not underlying database stuff.

Can anyone point me to a book or article that would do something like this
using .NET C# so that I can see how others are doing this type of function.
I'm tired of programming each field in the program to handle its own
formatting depending on what form I"m on and what I"m doing. I'd somehow
like the data elements to know what to do no matter who drops them on a form
and no matter where in the program they are used.

Thanks,

glenn
Nov 17 '05 #1
0 803

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

Similar topics

9
by: Luke Vogel | last post by:
Hi all. This is a bit of a newbie type question. I am trying to figure out what is the best way to connect to a database; ado.net, odic others? I've found a couple of examples that show you...
6
by: lennon1 | last post by:
Hi, I have already started learning .NET and I have a question. If I want to do anything - Display Data, Navigate, Update - with database (SQL Server) in Visual Studio 2005, do I have to use all...
7
by: Fred Exley | last post by:
I have a traditional application using a database and procedural code that works fine. I'm re-writing it using the OOP methodology, just to see how this may be the better way to do things. I...
0
by: Tom | last post by:
I'm using the DB_DataObject script createTables.php to auto-generate the necessary database schema on two databases. Using the .ini approach (not the in-line PHP approach) to configure...
2
by: =?Utf-8?B?UGF0cmljayBSeWFu?= | last post by:
I'm trying to learn how to use databases and database controls through C#. I have been using "Visual C#.net" from Microsoft Press. I'm guessing it was based on Framework 1.0. SQLConnection and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.