Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4 > ASP.NET 4 General Discussion
|
ASP.NET 4 General Discussion For ASP.NET 4 discussions not relating to a specific Wrox book
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 4 General Discussion section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 29th, 2011, 03:39 PM
Authorized User
 
Join Date: Dec 2011
Posts: 39
Thanks: 9
Thanked 0 Times in 0 Posts
Default What kind of server control and format should I use? (newbie)

I am creating a simple UFC fan page to try and learn ASP.NET but I am veru new to grids, listview, etc;

I would like to have a page that displays the following:

Code:
                        UFC XXX 
-----------------------------------------------------------------
Fighter A | Country (img) | vs | Fighter B | Country (img) | 
Fighter A | Country (img) | vs | Fighter B | Country (img) | 
Fighter A | Country (img) | vs | Fighter B | Country (img) | 
.....                                                             
-----------------------------------------------------------------
I store the fighters names and a link to pic of their home country's flag in the database so I figured I would try to put a table inside a grid so I could separate each column in and add a column to place the text "vs" inside. I don't think I am doing it correctly though.

I would like both the Fighter Name and Fighter Country Icon to be links so I was wondering what would be the best way to go about this? If I can get a server control to accomplish this then I could easily do it for the events themselves and the fighters themselves.

Thanks.
 
Old December 30th, 2011, 06:55 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

You may want to use a ListView instead as it gives you full control over the template. This way, you can easily accomplish this setup. You can then use a HyperLink control for the Name and Country fields.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old January 10th, 2012, 08:32 AM
abivojon
Guest
 
Posts: n/a
Default

Wow Such a great info. really good, nice .Very informative and trustworthy blog. Please keep updating with great posts like this one. I have booked marked your site and am about to email it to a few friends of mine
Received Infraction





Similar Threads
Thread Thread Starter Forum Replies Last Post
Format-Document (Control-K,D) btcomp BOOK: Beginning ASP.NET 4 : in C# and VB 6 July 31st, 2010 09:31 PM
"The server tag is not well formed" Newbie... daveyboy ASP.NET 1.0 and 1.1 Basics 5 June 6th, 2008 10:54 AM
HI I NEED TO KNOW WHAT KIND OF PROGRAM skoob Java Espanol 0 May 4th, 2005 03:07 PM
newbie want to know about control item davidwong C++ Programming 1 November 8th, 2004 02:44 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.