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

Designing database web application

Hi!

I want to develop database web application. It will consist of many
similar webpages with grid and ability to edit, insert or delete rows.
All of these webpages will have grids with the same properties, ability
to export data to excel or pdf, the same buttons (edit, insert, delete,
export, print). What I want is to write code only once and use it in
every page. In Delphi, where I usually code, I would create base class
with all of these elements and use it by inheritance. I don't see this
possibility in ASP.NET. Some of common elements (header, footer, menu,
login redirection) of every page can by done by using master pages, but
it doesn't solve my problem with grid. I could also place grid on
master page, but I want to change its properties in visual design mode
on every page. I want to find right approach to this problem. I've
found many tutorials about creating simple database apps, but I've seen
none about bigger ones. Can You help me somehow? I will use VS 2005
with C#. Thank You:)

--
Lukasz Ledochowski
GG: 503647 lu****@tlen.pl
Dec 21 '07 #1
2 1344

"£ukasz Ledóchowski" <lu****@tlen.plwrote in message
news:fk**********@inews.gazeta.pl...
Hi!

I want to develop database web application. It will consist of many
similar webpages with grid and ability to edit, insert or delete rows.
All of these webpages will have grids with the same properties, ability
to export data to excel or pdf, the same buttons (edit, insert, delete,
export, print). What I want is to write code only once and use it in
every page. In Delphi, where I usually code, I would create base class
with all of these elements and use it by inheritance. I don't see this
possibility in ASP.NET. Some of common elements (header, footer, menu,
login redirection) of every page can by done by using master pages, but
it doesn't solve my problem with grid. I could also place grid on
master page, but I want to change its properties in visual design mode
on every page. I want to find right approach to this problem. I've
found many tutorials about creating simple database apps, but I've seen
none about bigger ones. Can You help me somehow? I will use VS 2005
with C#. Thank You:)

I assume you are referring to "visual form inheritance" in Delphi. Such a
beast does not exist in ASP.NET, but you can solve your problem quite easily
by either a) sub-classing the DataGrid and adding your own customizable
functionality or b) purchasing a commercial grid that already contains the
functionality you want. A third option is to create a re-usable User Control
containing your grid and various buttons, but that doesn't allow you to
change properties in visual design mode.

Dec 21 '07 #2
Czesc Lukasz,

The obvoius solution to your problem would be creating a set of reusable
components/controls, that can be easly customized through properties. There
two possible ways you could go: User Controls (it usually takes less time and
effort to implement a user control because of designer support) or Web Server
Controls (more generic and flexible but need to be coded manually) (Please
note it's still to mix both techniques by using ASP.NET new 2.0 compilation
model and tools like ILMerge or aspnet_merge). If you don't know where to
start, there are plenty of tutorials out there:
http://msdn2.microsoft.com/en-us/library/26db8ysc.aspx
http://msdn2.microsoft.com/en-us/lib...f6(VS.85).aspx
http://www.15seconds.com/issue/020319.htm

Hope it helps
--
Milosz
"Ā£ukasz LedĆ³chowski" wrote:
Hi!

I want to develop database web application. It will consist of many
similar webpages with grid and ability to edit, insert or delete rows.
All of these webpages will have grids with the same properties, ability
to export data to excel or pdf, the same buttons (edit, insert, delete,
export, print). What I want is to write code only once and use it in
every page. In Delphi, where I usually code, I would create base class
with all of these elements and use it by inheritance. I don't see this
possibility in ASP.NET. Some of common elements (header, footer, menu,
login redirection) of every page can by done by using master pages, but
it doesn't solve my problem with grid. I could also place grid on
master page, but I want to change its properties in visual design mode
on every page. I want to find right approach to this problem. I've
found many tutorials about creating simple database apps, but I've seen
none about bigger ones. Can You help me somehow? I will use VS 2005
with C#. Thank You:)

--
Lukasz Ledochowski
GG: 503647 lu****@tlen.pl
Dec 21 '07 #3

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

Similar topics

5
by: SuryaPrakash Patel via SQLMonster.com | last post by:
Dear Reader I am trying to design a database. How can I make best Judgement that Indexing (which I am trying to fix during Diagram Desingning process)is ok. I am able to identify the best...
7
by: Dave | last post by:
I have a system that basically stores a database within a database (I'm sure lots have you have done this before in some form or another). At the end of the day, I'm storing the actual data...
7
by: MuZZy | last post by:
HI, We have a pretty large application with hundreds of forms in it. Now some of our new clients request us to make some custom screens(forms), which basicly comes to rearranging controls on our...
1
by: slonocode | last post by:
I'm wondering if there are certain processes that I could follow to learn to design better classes? Where could I find these processes? Is designing classes more of an art that comes from...
7
by: dad | last post by:
REQ: any utilities for designing front-ends for databases
3
by: mystilleef | last post by:
Hello, I need to design a plug-in system for a project. The goal is to allow third party developers interact with an application via plug-ins in a clean and robust manner. At this point I am...
1
by: fullxml | last post by:
Hello NG, I have a feeling that this question might not be right for this NG but I got pointers in the past regarding where to look to find the solution so again I have hope someone will point...
6
by: S. Lorétan | last post by:
Hi guys. I am preparing the rewriting of an huge existing application in VB6. This software is a mess of 10 years of patchs and new functionalities added randomly, and didn't have any logical or...
1
weaknessforcats
by: weaknessforcats | last post by:
Introduction Polymorphism is the official term for Object-Oriented Programming (OOP). Polymorphism is implemented in C++ by virtual functions. This article uses a simple example hierarchy which...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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...

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.