Adding Table Cells and Images/Links (ASP.NET Controls) Dynamically

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hi

I am working on a site using ASP.NET, VB.NET and SQL Server. I have a page
that displays images, and I want to display additional links to other images
within the same category.

When the page loads I know how many pages are in the current category and
the current page (set of images to display). The images are displayed in
groups of 8 but a category may have more than 8 images. To provide a way to
view other images in the category, I would like to place links at the bottom
of the page.

I will know how many pages I have in the category by dividing by 8 and
rounding up.

The following link shows a screenshot of how the page might look with a
category of 48 images. It shows that we are on page 1 and there are 5 other
pages available.
http://uberand.com/images.jpg

I would therefore like to ask if anyone knows how to dynamically add these
links in the page load event.

The dividers are 1px wide so I was thinking of just using a load of <TD>'s
setting the dividers to 1px wide with a background color and then using
<ASP:HYPERLINK>'s for the numbers so I can dynamically set their target
URL's unless anyone has any better ideas.

So really I think it could just a case of inserting HTML from the code
behind file. If so, how can this be done?

Regards, Carl Gilbert


.



Relevant Pages

  • jpg / gif images smeared on IE6-Outlook6
    ... Red X Instead of Images - Can't see or save Images/Pictures ... Change the DPI setting from Large to Normal and see if that helps. ... unchecked to display pictures all the time. ... Please reply to the newsgroup so others may benefit. ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re: [opensuse] tall PNG images dont load in Firefox
    ... generated using GD and most of the images load OK, ... The little feedback I got on the Firefox forum was that Firefox on ... However Konqueror display the file normally. ...
    (SuSE)
  • Re: Old issues never die, just fade away
    ... images I try displaying in the e-mail body either by ... either don't display or when they do, they're represented by the red 'x', ... pictures in this message could not be found. ... same thing (using a jpg from another non-iconned sub folder of the same ...
    (microsoft.public.windowsxp.general)
  • re: gifs / jpgs washed out on web pages
    ... I posted before on the issue of not seeing graphics properly. ... I cannot get imiges to display properly. ... Red X Instead of Images - Can't see or save Images/Pictures ... Change the DPI setting from Large to Normal and see if that helps. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • RE: Adding staff photographs to my database
    ... You can display images, such as pictures, logos, and photographs, on your ... that has a connection to a database. ...
    (microsoft.public.access.gettingstarted)