Is this possible?!?!?!?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Here is my issue... I am working on creating a website
http://www.adoptabrick.com

The new site is in progress http://www.adoptabrick.com/pilot

The first website uses flash right now on the page marked "The Wall". I
would like to change the page to utilize aspx. Is it possible?

Here is the background. The brick images are on the file system. The
information displayed is based on a query to a backend database. the query
determines what to pull in. i.e. The database will only have the name of
the image to pull in and then flash will link the image name from the
database to that on the file system. The image is displayed as you can see
with the text overlayed on top.

ASPX
I have a basic datagrid created and it pulls the image from the file system
when putting the image name in the database, however I can not get it to
format similar to that of the one in flash. Also, I have not figured out how
to put the text on the image either. The image will be created dynamically
at run time! I hope all this makes sense... it is complicated and I am
wasting valuable time. I have read about GDI+. Basically each record in the
database will have an image associated with it. I want to take the image and
build a wall, if possible with text overlaying each image based on what the
customer entered.

What tools are better for doing this, or is it not possible?
 
You have a good ways to go before you're ready to build this application.
But I can give you a few clues. First, there is no need to store the image
name in a database. I have created an example, which may prove helpful to
you, at

http://www.takempis.com/wall.htm

As you should see by looking at the HTML source, each "brick" is actually a
table cell, with one of 3 CSS classes assigned to it. The CSS class
determines the background image used for that cell. So, if you want the user
to be able to select a specific brick style, all you would have to do is
store a number in the database, which would indicate which style to apply to
the cell that represents the brick.

The entire page is simply an HTML table with some CSS styles applied. The
background image of the table is a tiled GIF called "concrete.gif." Each
table cell has a background image applied via its style, either
"brick1.gif," "brick2.gif," or "brick3.gif."

In each cell that has a name, there is a div that contains the person's
(people's) name(s). This could be fetched from the database, along with,
optionally, a number (1, 2, 3) indicating which brick style to apply. Or you
could simply apply the brick style as you wish, and simply insert the divs
into the table cells.

I'll leave the programming methodology up to you. Personally, I would use a
Custom ServerControl or a UserControl for the table.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Chicken Salad Alchemist

Big thicks are made up of lots of little thins.
 
that is great! now the next question is how to build the html dynamically
based on the amount of records in the database? On top of that, make is so
the wall is able to modified based on some type of filter? For instance,
only show me the bricks by a certain affiliate...

I have tried using a datagrid for this, but it does not appear to be the
best option.

Since I am new to the .Net programming, can you provide more details on how
I do either of the following?

Custom ServerControl or a UserControl for the table?

Thanks! Your help has been greatly appreciated!

Steve
 
Hi steve,
Since I am new to the .Net programming, can you provide more details on
how
I do either of the following?

Custom ServerControl or a UserControl for the table?

You're going to have to learn this. See:

http://msdn.microsoft.com/library/en-us/cpguide/html/cpconwebformsusercontrols.asp?frame=true
http://msdn2.microsoft.com/en-us/library/zt27tfhy.aspx

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Chicken Salad Alchemist

Big thicks are made up of lots of little thins.
 
Back
Top