A Table and GDI+ challenge in ASP.NET

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Andrej Habazin (Andrej.Habazin_at_guest.arnes.si)
Date: 09/10/04


Date: Fri, 10 Sep 2004 11:47:16 +0200

Hello everyone

Firstly I have to apologise because this post will be a lengthy one. Having
Windows XP pro, VS.NET 2003 pro, SQL Server 2000 and .NET 1.1 properly
installed, I came upon an idea to make a web application, that will enable
users to play chess online with a fellow player. Following series of
excellent articles on security, authorization, authentication I successfully
built a relatively safe application that acts like some kind of forum (users
have to log on to play chess). Next challege is somehow more interesing and
in my opinion harder to realize (I am newbie to ASP.NET). I want to create
chessboard with figures as images (gif or png not so important). So I wanted
to use Table object to serve as chessboard, but I got stuck with the
problem, how to "paste" images to cells. There is a Text property that can
serve for rendering text, but does this mean that I will have to derive my
custom control and manually implement functionality to move image from cell
to cell (e.g. drag&drop, redrawing,.. etc) ?. Writing this post I came upon
another idea: why not use DataGrid, store images as blob fields in database
and display them in Datagrid (well, I am not keen of this idea, because this
means a lot of traffic and adds complexity. In short it is a no go). I am a
relatively experienced Delphi programmer in Win32 (in fact I am learning
.NET framework by rewriting my existing Delphi code) and there (in VCL) was
that fancy object TDrawGrid that enabled me to realize an application with
full functionality (I already have rewritten the logic that takes care of
moving figures properly). TIA for any useful ideas on how to solve this
problem.

PS I am not a native English speaker so I am sorry for any spelling or
grammar mistake.

Regards

Andrej



Relevant Pages

  • >>>> CELL IMAGES <<<<
    ... background cell image table, background image in table cell, images of ... cells, photoshop cell phone image, image motorola free cell phone ... wallpaper, live blood cell analysis photos images, brain cell image, ...
    (comp.graphics.algorithms)
  • Re: table td padding
    ... Rearrange the images so the vertical ones are above and under the vertical ones, ... Size them in standards, that is, keep the same width for the landscapes and another for all the portraits. ... Because the inner table shrinks to width and gets you the look you want, the cell it is in acts merely as grid space, the latter's size can happily be left to width itself by both content and the interactions of rows. ... This would happen if you made some compromises but yes, it would be harder to do given your fancy border requirements. ...
    (alt.html)
  • Re: Interactive Buttons not previewing correctly HELP
    ... >When you string images together like that in 1 cell w/o ... setting image alignment properties you are leaving to the ... >But your table and cell are also both set for 100% width ...
    (microsoft.public.frontpage.programming)
  • Re: Interactive Buttons not previewing correctly HELP
    ... When you string images together like that in 1 cell w/o setting image alignment properties you are leaving to the browser to decide ... After publishing and viewing | on different machines, on some machines the column of | interactive buttons stagger across the page like steps | towards the right which completely moves the Body text | way over to the right. ...
    (microsoft.public.frontpage.programming)
  • TIFF Creation Issues...
    ... the new images are rotated 90 degrees and occupies only ... Dim bm As Bitmap = CType, ... You may wonder why I'm simply reading an image and rewriting it to another ...
    (microsoft.public.dotnet.framework.drawing)