HighTechTalks DotNet Forums  

Re: Designing database web application

ASP.net ASP.net discussions (microsoft.public.dotnet.framework.aspnet)


Discuss Re: Designing database web application in the ASP.net forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Scott Roberts
 
Posts: n/a

Default Re: Designing database web application - 12-21-2007 , 04:13 PM







"Łukasz Ledóchowski" <lukled (AT) tlen (DOT) pl> wrote

Quote:
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.



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.